/**
 * Home Page Styles - Interactive Cases
 * Home Page Styles - Interactive Cases
 */

/* ═══════════════════════════════════════════════════════════════
   WELCOME BANNER
   ═══════════════════════════════════════════════════════════════ */

.welcome-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
}

/* [REMOVED] Mesh backgrounds for clinical authority */

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-hq);
}

.stat-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-mute);
    font-weight: 600;
}

/* Stat Colors */
.stat-xp .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-completed .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-streak .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-accuracy .stat-icon-wrapper {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.stat-trust .stat-icon-wrapper {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
}

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════════════════════════ */

/* 2026 Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 2rem;
    transition: var(--transition-hq);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

/* Spans */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation: slideUpFade 0.6s var(--spring-gentle) 0.1s both;
}

.stagger-2 {
    animation: slideUpFade 0.6s var(--spring-gentle) 0.2s both;
}

.stagger-3 {
    animation: slideUpFade 0.6s var(--spring-gentle) 0.3s both;
}

.stagger-4 {
    animation: slideUpFade 0.6s var(--spring-gentle) 0.4s both;
}

.stagger-5 {
    animation: slideUpFade 0.6s var(--spring-gentle) 0.5s both;
}

.action-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.action-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ═══════════════════════════════════════════════════════════════
   MODULE GRID
   ═══════════════════════════════════════════════════════════════ */

.filter-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mute);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin-inline-end: 0.5rem;
    font-weight: 500;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.module-icon {
    background: var(--module-icon-bg);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
}

.module-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.module-count {
    font-size: 0.85rem;
    color: var(--text-mute);
}

/* ═══════════════════════════════════════════════════════════════
   DAILY CHALLENGE
   ═══════════════════════════════════════════════════════════════ */

.daily-challenge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.challenge-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: black;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.challenge-time {
    font-family: 'Inter', monospace;
    color: var(--text-mute);
    font-weight: 600;
}

.challenge-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.challenge-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.challenge-reward {
    color: var(--text-mute);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   SPECIALTIES GRID (for home page featured)
   ═══════════════════════════════════════════════════════════════ */

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.specialty-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.specialty-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.specialty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.specialty-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.4rem;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .module-card {
        padding: 1rem;
    }

    .hide-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .module-card {
        padding: 1rem;
    }

    .module-card .module-icon {
        font-size: 1.2rem;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}