/* ================================================================
# DACOG Search Engine – System Architecture
# File: state-page.css
# Path: /static/css/state-page.css
# Version: 3.0.0
# Description: Mathematical-Unit Sub-National Profile (Light/Hero)
# ================================================================*/

/* 1. Base Container & Hero Architecture */
.state-wrapper {
    padding-bottom: 3.125rem; /* 50px */
}

.state-hero {
    min-height: 28.125rem; /* 450px */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    border-bottom: 0.3125rem solid var(--dacog-accent-warning, #ffc107); /* 5px */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* 2. Theme-Aware Data Cards */
.intel-card {
    background-color: var(--dacog-bg-nav);
    padding: 2rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    -webkit-box-shadow: var(--dacog-shadow-sm);
    -moz-box-shadow: var(--dacog-shadow-sm);
    box-shadow: var(--dacog-shadow-sm);
    margin-bottom: 1.5rem;
    border: 0.0625rem solid var(--dacog-border-color);
}

.intel-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dacog-text-main);
    border-bottom: 0.125rem solid var(--dacog-border-color);
    padding-bottom: 0.5rem;
}

/* 3. Data Tables */
.data-table {
    width: 100%;
}

.data-table td {
    padding: 0.625rem 0; /* 10px */
    border-bottom: 0.0625rem solid var(--dacog-border-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: var(--dacog-text-muted);
    font-size: 0.9rem;
}

.data-value {
    text-align: right;
    font-weight: 700;
    color: var(--dacog-accent-primary);
}

/* 4. Sector Bars */
.sector-bar {
    height: 0.5rem; /* 8px */
    background: var(--dacog-border-color);
    -webkit-border-radius: 0.625rem;
    -moz-border-radius: 0.625rem;
    border-radius: 0.625rem;
    overflow: hidden;
}

.sector-fill {
    height: 100%;
    background: var(--dacog-accent-warning, #ffc107);
}

/* 5. Dark Sidebar Box (Fundamentals) */
.sidebar-box {
    background: linear-gradient(135deg, var(--dacog-bg-topbar), #000000);
    color: #ffffff !important;
    padding: 2rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    border: none;
}

.sidebar-box .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   6. MEDIA QUERIES (AFRICAN TARGET OPTIMIZATION)
   ========================================================================== */

@media screen and (max-width: 48em) { /* 768px */
    .state-hero {
        text-align: center;
        min-height: 22rem;
        border-bottom: none; /* Remove bottom border on mobile */
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%);
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
    
    .sidebar-box {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 30em) { /* 480px */
    .intel-card {
        padding: 1.25rem;
    }
    
    .hero-content h1.display-2 {
        font-size: 2.5rem;
    }
}