/* ============================================
   SCHEDULE PAGE STYLES
   Matches Training/Videos page theme patterns
   ============================================ */

/* ============================================
   HERO SECTION - Dark theme (matches Training hero)
   ============================================ */

.schedule-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-16)) var(--space-6) var(--space-16);
    overflow: hidden;
    background: #040a18;
}

.schedule-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: block;
    grid-template-columns: unset;
    gap: unset;
}

.schedule-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -1.5px;
    animation: fadeUp 1s ease-out 0.5s both;
}

.schedule-hero .hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--white-dim);
    margin-bottom: var(--space-10);
    line-height: 1.8;
    font-weight: 300;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease-out 0.7s both;
}

/* Delivery modes (stat badges in hero) */
.schedule-hero .delivery-modes-compact {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 1s ease-out 1.1s both;
}

.schedule-hero .delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--white-dim);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.schedule-hero .delivery-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--white);
}

.schedule-hero .delivery-badge.featured {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--blue-light);
}

.schedule-hero .delivery-badge.featured:hover {
    background: rgba(59, 130, 246, 0.25);
}

.schedule-hero .delivery-badge svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   COURSE CATALOG - Light theme (matches Training)
   ============================================ */

.schedule-catalog {
    padding: var(--space-16) 0;
    background: var(--section-bg);
    background-image: none;
    position: relative;
}

.schedule-catalog::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-10);
}

/* ============================================
   FILTERS SIDEBAR (matches Training sidebar)
   ============================================ */

.filters-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filter-section {
    background: #FFFFFF;
    border-radius: 20px;
    padding: var(--space-8);
    border: 1px solid #D1D9E6;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-sm);
}

.filter-section::-webkit-scrollbar {
    width: 8px;
}

.filter-section::-webkit-scrollbar-track {
    background: #E2E6EF;
    border-radius: 10px;
}

.filter-section::-webkit-scrollbar-thumb {
    background: var(--blue-primary);
    border-radius: 10px;
}

.filter-section::-webkit-scrollbar-thumb:hover {
    background: var(--blue-light);
}

.filter-section {
    scrollbar-width: thin;
    scrollbar-color: var(--blue-primary) #E2E6EF;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.5rem;
    color: var(--navy-mid);
    margin-bottom: var(--space-6);
}

.filter-title svg {
    color: var(--blue-primary);
}

.filter-group {
    margin-bottom: var(--space-8);
}

.filter-group h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    opacity: 0.6;
    margin-bottom: var(--space-4);
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-option {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-option:hover {
    background: rgba(59, 130, 246, 0.04);
}

.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D9E6;
    border-radius: 50%;
    margin-right: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-option input:checked ~ .radiomark {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
}

.filter-option input:checked ~ .radiomark::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.option-label {
    flex: 1;
    font-size: 0.95rem;
    color: var(--navy-mid);
}

/* Search input in sidebar */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-sm {
    position: absolute;
    left: 12px;
    color: #9B968A;
    pointer-events: none;
}

.search-filter-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) 38px;
    border: 2px solid #D1D9E6;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--navy-mid);
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.search-filter-input::placeholder {
    color: #9B968A;
}

.search-filter-input:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

/* Clear Filters Button */
.schedule-catalog .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #D1D9E6;
    background: #FFFFFF;
    color: var(--navy);
    opacity: 0.7;
    cursor: pointer;
}

.schedule-catalog .btn-outline:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: #fff;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.btn-block {
    width: 100%;
}

/* ============================================
   TOOLBAR (matches Training toolbar)
   ============================================ */

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.results-title {
    font-size: 1.5rem;
    color: var(--navy-mid);
    font-weight: 700;
}

.results-title span {
    color: var(--blue-primary);
}

.toolbar-right {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.sort-label {
    font-size: 0.95rem;
    color: var(--navy);
    opacity: 0.6;
    font-weight: 500;
}

.sort-select {
    padding: var(--space-3) var(--space-4);
    border: 2px solid #D1D9E6;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--navy-mid);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover {
    border-color: var(--blue-primary);
}

/* ============================================
   SCHEDULE CARDS - White cards on light bg
   ============================================ */

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    transition: all 0.3s ease;
}

.schedule-card-link {
    display: block;
}

.schedule-card-light {
    background: #FFFFFF;
    border: 2px solid #D1D9E6;
    border-radius: 16px;
    padding: var(--space-6);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-5);
    align-items: center;
    color: var(--navy-mid);
}
.schedule-card-light h3 {
    color: var(--navy-mid);
}

.schedule-card-light:hover {
    transform: translateY(-4px) !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
    border-color: var(--blue-primary) !important;
}

/* Date column */
.card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-2);
    background: linear-gradient(135deg, var(--blue-accent), #2563EB);
    border-radius: 12px;
    color: white;
    min-width: 72px;
}

.card-date-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.card-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin: 2px 0;
}

.card-date-year {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Info column */
.card-info {
    flex: 1;
    min-width: 0;
}

.card-code {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(59,130,246,0.1);
    color: var(--blue-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-2);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-mid);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.card-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--navy);
    opacity: 0.6;
}

.card-meta-item svg {
    color: var(--blue-primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Tags column */
.card-tags {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
}

.tag-duration {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--blue-primary);
    white-space: nowrap;
}

.tag-format {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #059669;
    white-space: nowrap;
}

.tag-category {
    display: inline-block;
    padding: 3px 10px;
    background: #E2E6EF;
    color: var(--navy-mid);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid #D1D9E6;
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
    text-align: center;
    padding: var(--space-20) var(--space-6);
}

.no-results svg {
    color: #D1D9E6;
    margin-bottom: var(--space-6);
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--navy-mid);
    margin-bottom: var(--space-3);
}

.no-results p {
    color: var(--navy);
    opacity: 0.6;
    margin-bottom: var(--space-6);
}

/* ============================================
   CTA SECTION - Dark theme (matches Training)
   ============================================ */

.cta-section {
    padding: var(--space-16) var(--space-6);
    background: #0a1120;
    text-align: center;
    display: block;
    gap: unset;
    margin-top: 0;
    padding-top: var(--space-16);
    border-top: none;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.15), transparent);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .catalog-layout {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .schedule-card-light {
        grid-template-columns: 72px 1fr;
    }

    .card-tags {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .schedule-hero {
        padding-top: calc(70px + var(--space-8));
        min-height: 50vh;
    }

    .toolbar-right {
        width: 100%;
        flex-direction: column;
    }

    .sort-select {
        width: 100%;
    }

    .schedule-card-light {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .card-date {
        flex-direction: row;
        gap: var(--space-3);
        width: 100%;
        justify-content: center;
        padding: var(--space-3) var(--space-5);
    }

    .card-date-day {
        font-size: 1.5rem;
    }

    .card-meta {
        justify-content: center;
    }

    .card-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .schedule-hero .delivery-modes-compact {
        padding: 0 var(--space-4);
    }

    .schedule-hero .delivery-badge {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8rem;
    }

    .schedule-hero .delivery-badge svg {
        width: 16px;
        height: 16px;
    }
}
