/* Classes Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Loading State */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-state.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Classes Container */
.classes-container {
    min-height: 100vh;
    background-color: #000;
}

/* Header Section */
.classes-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 64px 0;
}

.header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.header-text h1 {
    font-size: 80px;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 24px;
    line-height: 0.9;
}

.header-text p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    line-height: 1.5;
}

.header-pricing {
    text-align: right;
    flex-shrink: 0;
}

.price-display {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: -1px;
}

.price-period {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.price-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 500;
}

/* Classes Content */
.classes-content {
    padding: 64px 0;
}

.classes-list {
    margin-bottom: 96px;
}

/* Date Section */
.date-section {
    margin-bottom: 48px;
}

.date-section-header {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}

.date-section-header:hover .date-title {
    color: rgba(255, 255, 255, 0.8);
}

.date-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
}

.date-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.date-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.date-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
}

.date-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.date-chevron {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.date-section-header:hover .date-chevron {
    color: #fff;
}

.date-section.expanded .date-chevron {
    transform: rotate(90deg);
}

/* Classes Grid */
.classes-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Class Card */
.class-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.class-card-header {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 32px;
    transition: all 0.2s ease;
}

.class-card.available .class-card-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.class-card.completed .class-card-header {
    background: rgba(255, 255, 255, 0.05);
}

.class-card.preview .class-card-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.class-card.enrolled .class-card-header {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

.class-card.enrolled .class-card-header:hover {
    background: rgba(59, 130, 246, 0.15);
}

.class-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.class-header-left {
    display: flex;
    gap: 32px;
    flex: 1;
}

/* Date Block */
.class-date-block {
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.class-day {
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 4px;
}

.class-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Class Info */
.class-info {
    flex: 1;
}

.class-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.class-track {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.class-status {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.class-status.completed {
    color: #4ade80;
}

.class-status.preview {
    color: #fbbf24;
}

.class-status.enrolled {
    color: #3b82f6;
}

.class-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-indicator {
    display: flex;
    gap: 2px;
    align-items: center;
}

.difficulty-bar {
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.difficulty-bar.active {
    background: #fff;
}

.class-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.class-card.available .class-card-header:hover .class-title {
    color: rgba(255, 255, 255, 0.8);
}

.class-card.completed .class-title {
    color: rgba(255, 255, 255, 0.7);
}

.class-card.preview .class-title {
    color: rgba(255, 255, 255, 0.9);
}

.class-card.preview .class-card-header:hover .class-title {
    color: #fff;
}

.class-card.enrolled .class-title {
    color: rgba(255, 255, 255, 0.9);
}

.class-card.enrolled .class-card-header:hover .class-title {
    color: #fff;
}

.class-details {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.class-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-instructor {
    color: rgba(255, 255, 255, 0.5);
}

/* Class Header Right */
.class-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.class-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-status-icon.completed {
    background: #4ade80;
}

.class-status-icon.completed .status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.class-status-icon.preview {
    color: #fbbf24;
}

.class-status-icon.available {
    color: #4ade80;
}

.class-expand-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.class-card-header:hover .class-expand-icon {
    color: #fff;
}

.class-card.expanded .class-expand-icon {
    transform: rotate(90deg);
}

/* Class Details */
.class-details-content {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    padding: 32px;
    padding-left: 144px;
}

.class-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.class-topics {
    margin-bottom: 40px;
}

.topics-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 16px;
}

.topics-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.topic-bullet {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    margin-top: 12px;
    flex-shrink: 0;
}

.topic-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Track Progress */
.track-progress {
    margin-bottom: 40px;
}

.track-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 16px;
}

.track-classes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-class-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.track-class-number {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.track-class-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-class-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.track-class-dot.current {
    background: #fff;
}

.track-class-dot.available {
    background: rgba(255, 255, 255, 0.2);
}

.track-class-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.track-class-name.current {
    color: #fff;
    font-weight: 500;
}

.track-class-name.available {
    color: rgba(255, 255, 255, 0.5);
}

/* Class CTA */
.class-cta {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    padding: 24px;
}

.class-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.class-cta-text h4 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 4px;
}

.class-cta-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.class-cta-button {
    padding: 12px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.class-cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.class-cta-button.primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.class-cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.class-cta-button.locked {
    border-color: rgba(250, 204, 21, 0.3);
    color: #facc15;
    cursor: not-allowed;
    opacity: 0.6;
}

.class-cta-button.locked:hover {
    background: none;
}

/* FAQ Section */
.faq-section {
    padding: 64px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-section .section-content {
    text-align: center;
    margin-bottom: 64px;
}

.faq-section .section-content h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
    color: #ffffff;
}

.faq-section .section-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.faq-toggle h3 {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    color: inherit;
    line-height: 1.3;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: none;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 32px;
    text-align: left;
}

/* Bottom CTA Section */
.classes-cta {
    margin-top: 0;
    padding-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-content p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-bottom: 48px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 48px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-pricing {
    text-align: center;
}

.cta-price {
    margin-bottom: 8px;
}

.cta-amount {
    font-size: 48px;
    font-weight: 300;
}

.cta-period {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.cta-terms {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 300;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-modal-actions {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    background: none;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .header-text h1 {
        font-size: 64px;
    }
    
    .header-pricing {
        text-align: left;
    }
    
    .class-details-content {
        padding-left: 96px;
    }
}

@media (max-width: 768px) {
    .classes-header {
        padding: 48px 0;
    }
    
    .header-text h1 {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .header-text p {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 48px;
    }
    
    .price-period {
        font-size: 18px;
    }
    
    .date-title {
        font-size: 24px;
    }
    
    /* Mobile class card restructure */
    .class-card-header {
        padding: 20px 16px;
        position: relative;
    }
    
    .class-header-content {
        flex-direction: column;
        gap: 0;
    }
    
    .class-header-left {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        order: 1;
    }
    
    .class-header-right {
        position: absolute;
        top: 16px;
        right: 16px;
        order: 2;
    }
    
    .class-date-block {
        align-self: center;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .class-day {
        font-size: 20px;
    }
    
    .class-date {
        font-size: 12px;
    }
    
    .class-info {
        text-align: center;
    }
    
    .class-title {
        font-size: 20px;
        margin-bottom: 8px;
        order: 1;
    }
    
    .class-details {
        justify-content: center;
        margin-bottom: 12px;
        order: 2;
    }
    
    .class-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        order: 3;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .class-track,
    .class-status,
    .class-duration {
        font-size: 11px;
    }
    
    .difficulty-indicator {
        gap: 1px;
    }
    
    .difficulty-bar {
        width: 3px;
        height: 10px;
    }
    
    .class-details-content {
        padding: 20px 16px;
    }
    
    .class-description {
        font-size: 16px;
        text-align: left;
    }
    
    .cta-content h2 {
        font-size: 40px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
    
    .faq-section .section-content {
        margin-bottom: 48px;
    }
    
    .faq-section .section-content h2 {
        font-size: 28px;
    }
    
    .faq-section .section-content p {
        font-size: 16px;
    }
    
    .faq-toggle {
        padding: 24px 0;
    }
    
    .faq-toggle h3 {
        font-size: 20px;
    }
    
    .faq-content p {
        font-size: 16px;
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .classes-header {
        padding: 32px 0;
    }
    
    .header-text h1 {
        font-size: 36px;
    }
    
    .header-text p {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .class-card-header {
        padding: 24px 16px;
    }
    
    .class-details-content {
        padding: 16px;
    }
    
    .class-description {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .auth-modal-actions {
        flex-direction: column;
    }
    
    .faq-section .section-content {
        margin-bottom: 32px;
    }
    
    .faq-section .section-content h2 {
        font-size: 24px;
    }
    
    .faq-section .section-content p {
        font-size: 15px;
    }
    
    .faq-toggle {
        padding: 20px 0;
    }
    
    .faq-toggle h3 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .faq-content p {
        font-size: 15px;
        padding-bottom: 20px;
    }
    
    .faq-arrow {
        width: 20px;
        height: 20px;
    }
}