/**
 * THINKSim - Module Detail Page
 */

.module-page {
    background: #1a1a2e;
    min-height: 100vh;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.module-header .site-logo-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 100;
}


.site-logo {
    height: 50px;
    width: auto;
    }


.module-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-nav .user-name {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.module-nav .nav-link {
    color: white;
    font-size: 0.95rem;
}

.module-nav .btn-cta {
    background: linear-gradient(135deg, #ff6b6b, #ff8c42);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.module-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.module-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.module-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.module-hero-content .gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-enroll {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8c42);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.btn-enroll:hover {
    opacity: 0.95;
}

.enroll-actions .enroll-hint {
    display: block;
    margin-top: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.enroll-actions .enroll-hint a {
    color: #ff8c42;
}

.enrolled-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
}

.module-hero-image img,
.module-hero-image video {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.module-hero-image video {
    max-height: 400px;
    background: #000;
}

@media (max-width: 768px) {
    .module-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .module-header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .module-nav {
        width: 100%;
        order: 3;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        flex-wrap: wrap;
    }

    .module-main {
        padding: 2rem 1rem;
    }

    .module-hero-content h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .module-header {
        padding: 0.75rem 1rem;
    }

    .module-main {
        padding: 1.5rem 0.75rem;
    }

    .module-hero-content h1 {
        font-size: 1.4rem;
    }

    .module-hero-content p {
        font-size: 1rem;
    }

    .btn-enroll {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
}
