/* Layout styles using Material Design color system */

/* Clean, minimal body styling */
body {
    background-color: var(--md-sys-color-surface-container-lowest);
}

/* Simplified header */
body > header {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-bottom: none;
}

body > header h1 {
    color: inherit;
}

body > header p {
    color: rgba(255, 255, 255, 0.9);
}

header nav a,
header nav a:visited {
    color: var(--md-sys-color-on-primary-container);
    border-color: var(--md-sys-color-primary-container);
    background: var(--md-sys-color-primary-container);
}

header nav a:hover,
header nav a[aria-current="page"] {
    background: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

/* Stats section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

/* Stats card styling - use with .card class: <div class="card stat-card"> */
.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 0.5rem;
}

/* Section styling */
section {
    margin: 2rem 0;
}

section h2 {
    color: var(--md-sys-color-primary);
    border-bottom: 2px solid var(--md-sys-color-outline-variant);
    padding-bottom: 0.5rem;
}

/* Mobile-first responsive design */
@media (max-width: 720px) {
    .stat-number {
        font-size: 2rem;
    }
    
    header nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
    
    header nav ul li {
        list-style: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body > header h1 {
        font-size: 1.5rem;
    }
    
    body > header p {
        font-size: 0.9rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
    body > header {
        max-width: 1200px;
        margin: 0 auto;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface-container);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 48px;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-size: 0.75rem;
    gap: 0.25rem;
}

.bottom-nav a[aria-current="page"] {
    color: var(--md-sys-color-on-surface);
}

.bottom-nav a.disabled {
    color: var(--md-sys-color-on-surface-variant);
    pointer-events: none;
    opacity: 0.5;
}

.bottom-nav a .icon {
    font-size: 1.5rem;
}

/* Add padding to bottom of main content to prevent overlap with bottom nav */
body:has(.bottom-nav) main {
    padding-bottom: 80px;
}