/**
 * Module Timetable Styles - Dark Theme
 * SkoolBeez Landing Page
 */

/* ========================================
   Hero Section
   ======================================== */
.timetable-hero {
    background: linear-gradient(135deg, var(--sb-dark-1) 0%, var(--sb-dark-2) 50%, var(--sb-dark-3) 100%);
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    margin-top: -80px;
}

.timetable-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.timetable-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.timetable-hero-honeycomb {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23ffed00' fill-opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.timetable-hero-content {
    position: relative;
    z-index: 10;
}

.timetable-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.timetable-breadcrumb a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sb-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.timetable-breadcrumb a:hover {
    color: var(--sb-yellow);
}

.timetable-breadcrumb a.active {
    color: var(--sb-yellow);
}

.timetable-breadcrumb iconify-icon {
    color: var(--sb-text-muted);
    font-size: 1rem;
}

.timetable-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #818cf8;
    margin-bottom: 1.5rem;
}

.timetable-hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.timetable-hero-title .highlight {
    color: var(--sb-yellow);
    position: relative;
}

.timetable-hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 237, 0, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.timetable-hero-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: var(--sb-text-muted);
    line-height: 1.8;
    max-width: 600px;
}

.timetable-hero-image {
    position: relative;
    z-index: 10;
}

.timetable-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    animation: timetableHeroFloat 6s ease-in-out infinite;
}

@keyframes timetableHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   Features Section
   ======================================== */
.timetable-features {
    background: linear-gradient(180deg, var(--sb-dark-2) 0%, var(--sb-dark-1) 100%);
    padding: 100px 0;
    position: relative;
}

.timetable-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

.timetable-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.timetable-feature-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timetable-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.timetable-feature-card:hover::before {
    transform: scaleX(1);
}

.timetable-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.timetable-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.timetable-feature-icon.indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(129, 140, 248, 0.1) 100%);
    color: #818cf8;
}

.timetable-feature-card:hover .timetable-feature-icon.indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(129, 140, 248, 0.2) 100%);
    transform: scale(1.1);
}

.timetable-feature-icon.violet {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    color: #a78bfa;
}

.timetable-feature-card:hover .timetable-feature-icon.violet {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(167, 139, 250, 0.2) 100%);
    transform: scale(1.1);
}

.timetable-feature-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: #22d3ee;
}

.timetable-feature-card:hover .timetable-feature-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(34, 211, 238, 0.2) 100%);
    transform: scale(1.1);
}

.timetable-feature-icon.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #fbbf24;
}

.timetable-feature-card:hover .timetable-feature-icon.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(251, 191, 36, 0.2) 100%);
    transform: scale(1.1);
}

.timetable-feature-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.timetable-feature-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   How It Works Section
   ======================================== */
.timetable-how-it-works {
    background: var(--sb-dark-2);
    padding: 100px 0;
    position: relative;
}

.timetable-how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

.timetable-step-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.timetable-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 0 0 4px 4px;
}

.timetable-step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.timetable-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s ease;
}

.timetable-step-card:hover .timetable-step-number {
    transform: scale(1.1);
}

.timetable-step-icon {
    font-size: 2.5rem;
    color: #818cf8;
    margin-bottom: 1.5rem;
}

.timetable-step-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.timetable-step-description {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
    margin: 0;
}

.timetable-step-connector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.timetable-step-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

.timetable-step-connector iconify-icon {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: var(--sb-text-muted);
    background: var(--sb-dark-2);
    padding: 0 1rem;
}

/* ========================================
   Tabs Section
   ======================================== */
.timetable-tabs-section {
    background: linear-gradient(180deg, var(--sb-dark-1) 0%, var(--sb-dark-2) 100%);
    padding: 100px 0;
    position: relative;
}

.timetable-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

.timetable-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0;
    list-style: none;
    width: 100%;
}

.timetable-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.timetable-tab-btn {
    width: 100%;
    padding: 20px 24px;
    background: var(--sb-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--sb-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timetable-tab-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

.timetable-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: #6366f1;
    color: #818cf8;
}

.timetable-tab-btn iconify-icon {
    font-size: 1.5rem;
}

.timetable-tab-content {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    overflow: hidden;
}

.timetable-tab-image {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.timetable-tab-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.timetable-tab-info {
    padding: 2.5rem;
}

.timetable-tab-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.timetable-accordion {
    border: none;
}

.timetable-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sb-glass-border);
}

.timetable-accordion .accordion-button {
    background: transparent;
    padding: 1.25rem 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: none;
}

.timetable-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.timetable-accordion .accordion-button:not(.collapsed) {
    color: #818cf8;
    background: transparent;
}

.timetable-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(61%) sepia(75%) saturate(1887%) hue-rotate(210deg) brightness(101%) contrast(96%);
}

.timetable-accordion .accordion-body {
    padding: 0 0 1.25rem 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
}

/* ========================================
   Benefits Section
   ======================================== */
.timetable-benefits {
    background: var(--sb-dark-1);
    padding: 100px 0;
    position: relative;
}

.timetable-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

.timetable-benefit-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.timetable-benefit-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
}

.timetable-benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 237, 0, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.timetable-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.2) 0%, rgba(255, 195, 0, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--sb-yellow);
    transition: transform 0.3s ease;
}

.timetable-benefit-card:hover .timetable-benefit-icon {
    transform: scale(1.1);
}

.timetable-benefit-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.timetable-benefit-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--sb-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.timetable-cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timetable-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 33L15 25V8l15-8 15 8v17l-15 8z' fill='%23000' fill-opacity='0.08'/%3E%3C/svg%3E");
}

.timetable-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.timetable-cta-logo {
    width: 100px;
    margin-bottom: 2rem;
    animation: timetableCtaBounce 2s ease-in-out infinite;
}

@keyframes timetableCtaBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.timetable-cta-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.timetable-cta-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.timetable-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timetable-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s ease;
}

.timetable-cta-btn:hover::before {
    left: 100%;
}

.timetable-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
    color: #6366f1;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 992px) {
    .timetable-hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .timetable-breadcrumb {
        justify-content: center;
    }

    .timetable-hero-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .timetable-hero-image {
        margin-top: 3rem;
    }

    .timetable-tabs {
        flex-wrap: wrap;
    }

    .timetable-tabs .nav-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 150px;
    }

    .timetable-step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .timetable-hero-title {
        font-size: 2rem;
    }

    .timetable-feature-card {
        padding: 1.5rem;
    }

    .timetable-benefit-card {
        padding: 1.5rem;
    }

    .timetable-tabs .nav-item {
        flex: 1 1 100%;
    }

    .timetable-tab-btn {
        justify-content: center;
    }

    .timetable-tab-content {
        border-radius: 16px;
    }

    .timetable-tab-info {
        padding: 1.5rem;
    }

    .timetable-step-card {
        padding: 1.5rem;
    }
}
