/* =========================================
   CLAVE DANCE SCHOOL
   TIMETABLE + STUDENT PORTAL
   Uses the colours and fonts from styles.css
   ========================================= */

/* SMALL BUTTONS + DISABLED STATE */

.button.small {
    padding: 11px 17px;
    font-size: 11px;
    gap: 8px;
}

.button.ghost {
    background: transparent;
    color: var(--cream);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

button.button {
    border-style: solid;
    background: transparent;
    color: var(--text);
}

button.button.primary {
    border: none;
}


/* =========================================
   TIMETABLE PAGE
   ========================================= */

.timetable-section {
    min-height: calc(100vh - 80px);
    padding: 110px clamp(28px, 6vw, 92px) 100px;
}

.timetable-container {
    max-width: 1200px;
    margin: 0 auto;
}

.timetable-heading h1 {
    font-size: clamp(60px, 8vw, 120px);
    max-width: 100%;
}

.timetable-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
}

.timetable-note a {
    color: #f2b5a3;
}

.timetable-note strong {
    color: var(--cream);
    font-weight: 600;
}


/* WEEK SWITCHER */

.tt-weekbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 64px 0 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.tt-week-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: -0.02em;
    color: #fff5f2;
}

.tt-week-buttons {
    display: flex;
    gap: 10px;
}

.tt-week-buttons button {
    min-width: 43px;
    height: 43px;
    padding: 0 16px;
    border: 1px solid rgba(248, 213, 194, 0.25);
    border-radius: 40px;
    background: transparent;
    color: var(--cream);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tt-week-buttons button:hover:not(:disabled) {
    background: rgba(213, 82, 74, 0.18);
}

.tt-week-buttons button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ONE DAY */

.tt-day {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.tt-day-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff5f2;
}

.tt-day-date {
    display: block;
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 13px;
}

.tt-day.is-today .tt-day-date {
    color: var(--accent-soft);
}


/* ONE CLASS ROW (timetable + dashboard) */

.tt-classes {
    display: grid;
    gap: 12px;
}

.tt-class {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(26, 12, 17, 0.66), rgba(15, 7, 11, 0.62));
}

.tt-class.is-booked {
    border-color: rgba(234, 122, 111, 0.55);
    background: linear-gradient(180deg, rgba(64, 20, 26, 0.7), rgba(26, 9, 14, 0.66));
}

.tt-class.is-past,
.tt-class.is-cancelled {
    opacity: 0.5;
}

.tt-class.is-cancelled h3 {
    text-decoration: line-through;
}

.tt-time {
    color: var(--cream);
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tt-time small {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 400;
}

.tt-info h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.15;
    color: #fff5f2;
}

.tt-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.tt-meta span + span::before {
    content: "/";
    margin: 0 9px;
    color: var(--muted-2);
}

.tt-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.tt-state {
    color: var(--accent-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tt-empty {
    padding: 50px 0;
    color: var(--muted);
    line-height: 1.7;
}


/* PRICES */

.tt-prices {
    margin-top: 90px;
}

.tt-prices h2 {
    font-size: clamp(40px, 4.5vw, 64px);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.price-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff5f2;
}

.price-amount {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    letter-spacing: -0.03em;
    color: var(--cream);
}

.price-per {
    color: var(--muted-2);
    font-size: 13px;
}

.price-who {
    margin-top: auto;
    padding-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.price-card .button {
    margin-top: 12px;
    align-self: flex-start;
}


/* STATUS MESSAGE (floating, bottom of screen) */

.portal-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2000;
    transform: translate(-50%, 20px);
    max-width: min(560px, calc(100vw - 40px));
    padding: 16px 22px;
    border: 1px solid rgba(234, 122, 111, 0.4);
    border-radius: 16px;
    background: rgba(24, 9, 14, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    color: var(--cream);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portal-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.portal-toast.is-error {
    border-color: rgba(255, 155, 145, 0.6);
    color: #ffc2bb;
}


/* =========================================
   STUDENT DASHBOARD ADDITIONS
   ========================================= */

.balance-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
}

.balance-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(96px, 12vw, 170px);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: #fff5f2;
}

.balance-text h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 400;
    color: #fff5f2;
}

.balance-text p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.balance-text .button {
    margin-top: 22px;
}

.pass-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.pass-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.pass-row strong {
    color: var(--cream);
    font-weight: 600;
}

.pass-row span {
    color: var(--muted);
}

.pending-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.pending-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border: 1px dashed rgba(234, 122, 111, 0.45);
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.pending-row strong {
    color: var(--cream);
    font-weight: 600;
}

.portal-hint {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.7;
    max-width: 720px;
}

.dashboard-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-links .button {
    margin-top: 0;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .timetable-section {
        padding: 110px 20px 70px;
    }

    .tt-weekbar {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 44px;
    }

    .tt-day {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    .tt-class {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .tt-action {
        justify-content: flex-start;
    }

    .balance-card {
        grid-template-columns: 1fr;
    }

    .pass-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pending-row {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-toast {
        transition: none;
    }
}


/* =========================================
   GUEST PRICE CARD
   ========================================= */

.price-card {
    position: relative;
}

.price-card.is-available {
    border-color: rgba(234, 122, 111, 0.45);
    background: linear-gradient(160deg, rgba(64, 20, 28, 0.75), rgba(22, 8, 13, 0.8));
}

.price-card.is-locked {
    border-style: dashed;
    border-color: rgba(248, 213, 194, 0.16);
    background: rgba(255, 255, 255, 0.015);
}

.price-card.is-locked h3,
.price-card.is-locked .price-amount,
.price-card.is-locked .price-per {
    opacity: 0.45;
}

.price-badge {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 6px 11px;
    border: 1px solid rgba(248, 213, 194, 0.2);
    border-radius: 40px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-card.is-locked .price-badge::before {
    content: "🔒";
    margin-right: 6px;
    font-size: 9px;
    filter: grayscale(1);
}

.price-card.is-available .price-badge {
    border-color: rgba(234, 122, 111, 0.5);
    color: var(--accent-soft);
}

.guest-picker {
    display: grid;
    gap: 8px;
}

.guest-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #24101a;
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.guest-form select:focus {
    outline: none;
    border-color: rgba(234, 122, 111, 0.7);
}

.course-prices {
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.course-prices .price-grid {
    margin-top: 22px;
}


/* =========================================
   GUEST BOOKING WINDOW
   ========================================= */

.guest-dialog {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(248, 213, 194, 0.18);
    border-radius: 26px;
    background: linear-gradient(160deg, #2a0f18, #14070c);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    color: var(--text);
    overflow-y: auto;
}

.guest-dialog::backdrop {
    background: rgba(8, 3, 5, 0.72);
    backdrop-filter: blur(6px);
}

.guest-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--cream);
    font-size: 22px;
    line-height: 1;
}

.guest-close:hover {
    background: rgba(213, 82, 74, 0.18);
}

.guest-dialog h2 {
    margin-top: 18px;
    font-size: clamp(34px, 5vw, 46px);
}

.guest-when {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.guest-form {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.guest-form label {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guest-form label span {
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted-2);
}

.guest-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.guest-form input:focus {
    outline: none;
    border-color: rgba(234, 122, 111, 0.7);
    background: rgba(255, 255, 255, 0.07);
}

.guest-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.guest-total strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--cream);
}

.guest-error {
    min-height: 1.4em;
    color: #ffb0a6;
    font-size: 14px;
}

.guest-form .button {
    justify-self: start;
}

.guest-member {
    margin-top: 24px;
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.7;
}

.guest-member strong {
    color: var(--cream);
}

.guest-member a {
    color: #f2b5a3;
    margin-left: 4px;
}

.guest-done-button {
    margin-top: 26px;
}


/* =========================================
   COURSES PAGE: LEVEL DETAILS
   ========================================= */

a.course-card {
    color: inherit;
    text-decoration: none;
}

.course-card.is-active {
    border-color: rgba(234, 122, 111, 0.65);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(234, 122, 111, 0.35);
}

.course-card.is-active .course-card-content h3 {
    color: #f4b29d;
}

.course-detail {
    margin-top: 40px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(48, 17, 26, 0.78), rgba(17, 7, 12, 0.85));
    scroll-margin-top: 30px;
    animation: course-in 0.45s ease both;
}

@keyframes course-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.course-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
}

.course-detail h2 {
    margin-top: 22px;
    font-size: clamp(44px, 5vw, 72px);
}

.course-detail .section-copy {
    margin-top: 22px;
    max-width: 560px;
}

.course-facts {
    display: grid;
    gap: 0;
    align-self: start;
}

.course-facts div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.course-facts div:first-child {
    border-top: 1px solid var(--line);
}

.course-facts dt {
    color: var(--accent-soft);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 3px;
}

.course-facts dd {
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.course-detail-classes {
    margin-top: 50px;
}

.course-detail-classes [data-clave-classes] {
    margin: 22px 0 24px;
}


/* =========================================
   HOME PAGE: PRICES
   ========================================= */

.home-prices {
    padding: 110px clamp(28px, 6vw, 92px) 120px;
    background:
        radial-gradient(circle at 20% 30%, rgba(168, 42, 56, 0.16), transparent 45%),
        #16090f;
}

.home-prices-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-prices h2 {
    margin-top: 22px;
    font-size: clamp(48px, 6vw, 88px);
}

.home-prices .section-copy {
    margin-top: 22px;
    max-width: 640px;
}

.home-prices-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 44px;
}

@media (max-width: 900px) {
    .course-detail-top {
        grid-template-columns: 1fr;
    }

    .course-facts div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .guest-dialog {
        padding: 30px 24px;
    }

    .home-prices {
        padding: 80px 22px 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .course-detail {
        animation: none;
    }
}


/* =========================================
   LOGIN PAGE: "Forgot your password?" link
   ========================================= */

.login-text-button {
    justify-self: start;
    margin-top: 4px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: #f2b5a3;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


/* =========================================
   "ADMIN" ITEM IN THE SIDE MENU (admins only)
   ========================================= */

.nav-links a.nav-admin-link {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--accent-soft);
}


/* =========================================
   EVENTS PAGES (loaded from the admin system)
   ========================================= */

.event-description {
    margin-top: 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.event-no-photo {
    display: grid;
    place-items: center;
    min-height: 320px;
    color: var(--muted-2);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =========================================
   TEAM PAGE
   ========================================= */

.team-section {
    min-height: auto;
    padding: 110px clamp(28px, 6vw, 92px) 100px;
}

.team-group {
    min-height: auto;
    margin-top: 80px;
    padding: 0;
}

.team-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.team-group-head h2 {
    font-size: clamp(38px, 4.5vw, 64px);
}

.team-group-count {
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(26px, 3vw, 44px);
    margin-top: 34px;
}

.team-card {
    display: flex;
    flex-direction: column;
}


/* Photos + video */

.team-media {
    position: relative;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(234, 122, 111, 0.35), transparent 55%),
        linear-gradient(160deg, #4a1822, #1a0a10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.team-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 5s ease;
}

.team-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.team-slide img,
.team-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-media::after {
    content: "";
    position: absolute;
    inset: 55% 0 0 0;
    background: linear-gradient(transparent, rgba(10, 3, 6, 0.55));
    pointer-events: none;
}

.team-media.is-empty {
    display: grid;
    place-items: center;
}

.team-initial {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(110px, 12vw, 170px);
    font-style: italic;
    color: rgba(255, 235, 228, 0.82);
}

.team-dots {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.team-dot {
    position: relative;
    flex: 1;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    cursor: pointer;
}

.team-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    background: #fff5f2;
}

.team-dot.is-active::after {
    animation: team-progress var(--duration, 4.5s) linear forwards;
}

@keyframes team-progress {
    to { transform: scaleX(1); }
}


/* Text under the photos */

.team-card-copy {
    padding: 24px 4px 0;
}

.team-styles {
    display: block;
    color: var(--accent-soft);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.team-name {
    margin-top: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff5f2;
}

.team-role {
    margin-top: 8px;
    color: var(--cream);
    font-size: 14px;
}

.team-description {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 800px) {
    .team-section {
        padding: 110px 20px 70px;
    }

    .team-group {
        margin-top: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-slide {
        transition: none;
        transform: none;
    }

    .team-dot.is-active::after {
        animation: none;
        transform: scaleX(1);
    }
}
