/* ========================================
   Module Page Specific Styles
   ======================================== */

/* Module Hero */
.module-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: 140px 0 80px;
    margin-top: -80px;
}

.module-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.module-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;
}

.module-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.module-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.3);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sb-yellow);
    margin-bottom: 1.5rem;
}

.module-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: 1rem;
}

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

.module-hero-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: var(--sb-text-muted);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* Category Sections */
.modules-category-section {
    background: var(--sb-dark-1);
    padding: 80px 0;
    position: relative;
}

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

.modules-category-section.alt-bg {
    background: linear-gradient(180deg, var(--sb-dark-2) 0%, var(--sb-dark-1) 100%);
}

.category-header {
    margin-bottom: 50px;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sb-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.category-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.category-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--sb-text-muted);
}

/* Module Cards */
.module-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 237, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.module-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.2) 0%, rgba(255, 195, 0, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--sb-yellow);
    transition: all 0.3s ease;
}

.module-card:hover .module-card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.3) 0%, rgba(255, 195, 0, 0.2) 100%);
}

.module-card-icon.primary {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    color: #4facfe;
}

.module-card:hover .module-card-icon.primary {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(0, 150, 255, 0.2) 100%);
}

.module-card-icon.coming-soon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 77, 77, 0.1) 100%);
    color: #ff6b6b;
}

.module-card:hover .module-card-icon.coming-soon {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 77, 77, 0.2) 100%);
}

.module-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.module-card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

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

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.module-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.module-badge.coming {
    background: rgba(255, 237, 0, 0.1);
    color: var(--sb-yellow);
    border: 1px solid rgba(255, 237, 0, 0.3);
}

.module-badge.experiment {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.module-card-arrow {
    position: absolute;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.module-card:hover .module-card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 237, 0, 0.15);
    color: var(--sb-yellow);
}

/* Stats Section */
.stats-banner {
    background: linear-gradient(90deg, var(--sb-yellow) 0%, var(--sb-yellow-dark) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.stats-banner::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.05'/%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--sb-dark-2);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sb-dark-3);
}

/* Responsive */
@media (max-width: 768px) {
    .module-hero {
        padding: 120px 0 60px;
    }

    .module-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}
