/* FILE: /css/style.css */

:root {
    --bg: #0f1115;
    --panel: #1a1d24;
    --accent: #d0a84c;
    --text: #d9dbe0;
    --danger: #b33a3a;
    --radius: 8px;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    background: var(--panel);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    margin: 0;
}

nav a {
    margin-left: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

.content {
    padding: 2rem;
}

/* Forms */
.form-card {
    background: var(--panel);
    padding: 2rem;
    max-width: 400px;
    margin: auto;
    border-radius: var(--radius);
}

.form-card label {
    display: block;
    margin-top: 1rem;
}

.form-card input {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    border-radius: var(--radius);
    border: 1px solid #333;
    background: #0e0f12;
    color: var(--text);
}

button {
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    border: none;
    background: var(--accent);
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--radius);
}

button:hover {
    opacity: .85;
}

.form-error {
    background: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.form-alt {
    margin-top: 1rem;
    text-align: center;
}

/* Centered layout for auth pages */
.page-center {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center pages like home, about, contact */
.page-center-wide {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--panel);
    border-radius: var(--radius);
}

.content-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

.char-profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.char-profile-portrait {
    width: 256px;
    height: 256px;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.char-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-box {
    background: var(--panel);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.subtext {
    color: #aaa;
    font-size: .9rem;
}

/* Class list page */
.class-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.class-item {
    background: var(--panel);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}

.class-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.class-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.class-link:hover {
    text-decoration: underline;
}

/* Single class page video */
.class-video-wrapper {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.class-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.class-item {
    background: var(--panel);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}

.class-item h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.class-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.class-link:hover {
    text-decoration: underline;
}

.class-video-wrapper {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.class-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Filters bar */
.class-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin: 1.5rem 0;
}

.class-filters > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.class-filters select {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid #333;
    background: #0e0f12;
    color: var(--text);
}

.class-filters-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.class-filters-actions a {
    text-decoration: none;
    font-size: 0.9rem;
}

/* Category + class styling */
.class-category {
    margin-top: 1.5rem;
}

.class-category-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.class-item {
    background: var(--panel);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}

.class-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.class-item h4 {
    margin: 0;
}

.class-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid #555;
}

.badge-completed {
    border-color: #2e7d32;
}

.badge-corp {
    border-color: #b3892a;
}

.class-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.class-link:hover {
    text-decoration: underline;
}

.badge-prereqs {
    border-color: #4a7abf;
}

.class-category {
    margin-top: 1.5rem;
}

.class-category-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.class-item {
    background: var(--panel);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}

/* Row layout: text left, button right */
.class-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.class-main {
    flex: 1;
}

.class-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.class-item h4 {
    margin: 0;
}

.class-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid #555;
}

.badge-completed {
    border-color: #2e7d32;
}

.badge-prereqs {
    border-color: #4a7abf;
}

.badge-corp {
    border-color: #b3892a;
}

/* View Class button */
.class-actions {
    display: flex;
    align-items: center;
}

.class-view-btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.class-view-btn:hover {
    text-decoration: none;
    border-color: #777;
}

/* Prereqs line */
.class-prereqs {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #aaa;
}

.degree-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.degree-card {
    background: var(--panel);
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
}

.degree-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.degree-header-line h3 {
    margin: 0;
}

.degree-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.degree-progress {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.degree-classes-label {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.degree-classes {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.degree-classes li {
    margin-bottom: 0.2rem;
}

.badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid #555;
}

.badge-small {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    margin-left: 0.4rem;
}

.badge-completed {
    border-color: #2e7d32;
}
