/* --- portal.css --- */

/* Import core variables to ensure color consistency */
@import url('details.css');

/* HERO SECTION */
.hero-section {
    background: var(--header-bg); /* Dark Blue */
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern for professional look */
.hero-section::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero-sub { font-size: 18px; color: #bdc3c7; margin-bottom: 30px; font-weight: 300; }

/* DASHBOARD SEARCH */
.dashboard-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.dashboard-search {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    outline: none;
    box-sizing: border-box; /* Ensures padding doesn't break mobile width */
}
.dashboard-search:focus { box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4); }

/* --- MAIN CONTENT --- */
.portal-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- COUNTY CARD GRID --- */
.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.county-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.county-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

/* Card Header */
.cc-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}
.state-badge {
    background: var(--header-bg);
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.cc-title { font-weight: 700; color: var(--text-main); font-size: 16px; }

/* Card Body */
.cc-body { padding: 20px; flex: 1; }
.cc-stat { font-size: 13px; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* Status Badges */
.status-badge {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
}
.status-free { background: #dff9fb; color: #2ecc71; border: 1px solid #2ecc71; }
.status-pro { background: #fdf2e9; color: #e67e22; border: 1px solid #e67e22; }

/* Card Actions */
.cc-actions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.btn-launch {
    flex: 2;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-launch:hover { background: #219150; }

.btn-mobile {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.btn-mobile:hover { background: #f9f9f9; }

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.feature-box { text-align: center; padding: 20px; }
.feat-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.feat-title { font-weight: bold; margin-bottom: 5px; color: var(--text-main); }
.feat-desc { font-size: 13px; color: var(--text-light); }

/* --- REQUEST FORM --- */
.request-area {
    background: #ecf0f1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}
.btn-request {
    background: var(--header-bg);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* --- DATA ACCURACY NOTICE --- */
.notice-container {
    max-width: 800px;
    margin: 40px auto 20px auto; 
    background: #fff8e1; /* Light yellow background */
    border: 1px solid #ffe082; /* Darker yellow border */
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #5d4037; /* Brownish text */
}

.notice-icon { font-size: 24px; flex-shrink: 0; }
.notice-content h4 { margin: 0 0 5px 0; font-size: 15px; font-weight: 700; text-transform: uppercase; color: #f57c00; }
.notice-content p { margin: 0; font-size: 13px; line-height: 1.5; }

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 600px) {
    /* Shrink Hero Text */
    .hero-section { padding: 40px 15px; }
    .hero-title { font-size: 26px; }
    .hero-sub { font-size: 15px; margin-bottom: 20px; }

    /* Force Grid to Single Column */
    .county-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Stack Action Buttons vertically (easier to tap) */
    .cc-actions { flex-direction: column; gap: 12px; }
    .btn-launch, .btn-mobile {
        width: 100%; 
        padding: 12px 0;
        font-size: 16px;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Stack features */
    .features-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
    
    /* Center Disclaimer */
    .notice-container { flex-direction: column; align-items: center; text-align: center; }
    .notice-icon { margin-bottom: 10px; font-size: 32px; }
}
