/* Landing Page Styles - Board Game Data Explorer */

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1f2b47;
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(99, 102, 241, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.navbar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: var(--text-primary) !important;
}

.navbar-brand i {
    color: #6366f1 !important;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
    flex: 1;
}

h1 {
    font-weight: 700;
    font-size: 2.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section .lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Section Containers
   ========================================================================== */

.module-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.section-container {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Module Cards
   ========================================================================== */

.module-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.module-card-link.disabled {
    cursor: default;
}

.module-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    min-height: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, rgba(31, 43, 71, 0.9) 100%);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card.coming-soon {
    opacity: 0.5;
}

.module-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 33, 62, 0.8) 100%);
}

.module-card.coming-soon:hover::before {
    opacity: 0;
}

/* Module Icon */
.module-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.15);
}

/* Module Title */
.module-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.module-card:hover .module-title {
    color: #fff;
}

/* Module Description */
.module-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    color: #c4b5fd;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Icon Colors (matching the example)
   ========================================================================== */

/* Feature colors */
.icon-orange { color: #f97316; }
.icon-purple { color: #a855f7; }
.icon-green { color: #22c55e; }
.icon-blue { color: #3b82f6; }

/* Report colors */
.icon-red { color: #ef4444; }
.icon-cyan { color: #06b6d4; }
.icon-pink { color: #ec4899; }
.icon-yellow { color: #eab308; }

/* Monitoring colors */
.icon-teal { color: #14b8a6; }
.icon-indigo { color: #6366f1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text-muted) !important;
}

.footer a:hover {
    color: var(--accent-primary) !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-container {
        padding: 1rem;
    }

    .module-card {
        min-height: 160px;
        padding: 1.25rem 0.75rem;
    }

    .module-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    .about-section .lead {
        font-size: 1rem;
    }

    .module-card {
        min-height: 140px;
    }
}
