/* ===========================================
   AVSOPS State Page Styles
   Drop this at the bottom of your style.css
   or enqueue as a separate file
=========================================== */

/* --- Layout Wrapper --- */
.avsops-state-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* --- Breadcrumb --- */
.avsops-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.avsops-breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.2s;
}

.avsops-breadcrumb a:hover {
    color: #1a3d6e;
    text-decoration: underline;
}

.avsops-breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* --- State Title with Flag --- */
.state-title-with-flag {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c9302c;
}

.state-flag-icon {
    width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* --- Basic Info Paragraphs --- */
.avsops-state-wrapper > p {
    font-size: 1.1rem;
    color: #444;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.avsops-state-wrapper > p strong {
    color: #1a2b4a;
    font-weight: 600;
}

/* --- Section Dividers --- */
.avsops-state-wrapper hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
}

/* --- Section Headers --- */
.avsops-state-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c5aa0;
    display: inline-block;
}

.avsops-state-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

/* ===========================================
   Veteran Statistics Section
=========================================== */
.avsops-veteran-stats {
    background: linear-gradient(135deg, #1a2b4a 0%, #2c5aa0 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.avsops-veteran-stats h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

.avsops-veteran-stats h3 {
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

/* --- Stats Grid --- */
.veteran-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}

.stat-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Veterans by Era Table --- */
.veteran-era-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.veteran-era-table thead {
    background: rgba(0,0,0,0.2);
}

.veteran-era-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9);
}

.veteran-era-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.veteran-era-table tbody tr:hover {
    background: rgba(255,255,255,0.08);
}

.veteran-era-table td:first-child {
    font-weight: 500;
}

.veteran-era-table td:nth-child(2),
.veteran-era-table td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===========================================
   State Introduction
=========================================== */
.avsops-state-intro {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    margin: 2rem 0;
}

.avsops-state-intro h2 {
    margin-top: 0;
}

.avsops-state-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* ===========================================
   Counties List
=========================================== */
.avsops-county-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.avsops-county-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.avsops-county-list li:last-child {
    border-bottom: none;
}

.avsops-county-list a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
}

.avsops-county-list a:hover {
    color: #c9302c;
}

.avsops-county-list a::before {
    content: "›";
    margin-right: 0.5rem;
    color: #999;
}

/* ===========================================
   Organizations & Events Lists
=========================================== */
.avsops-org-list,
.avsops-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avsops-org-list li,
.avsops-event-list li {
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.avsops-org-list li:hover,
.avsops-event-list li:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #2c5aa0;
}

.avsops-org-list a,
.avsops-event-list a {
    color: #1a2b4a;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.avsops-org-list a:hover,
.avsops-event-list a:hover {
    color: #2c5aa0;
}

/* ===========================================
   Resources / Quick Links
=========================================== */
.avsops-state-links {
    background: #1a2b4a;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.avsops-state-links h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

.avsops-state-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.avsops-state-links li {
    flex: 1 1 auto;
}

.avsops-state-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.avsops-state-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.avsops-state-links a::after {
    content: "↗";
    font-size: 0.85em;
    opacity: 0.7;
}

/* ===========================================
   Empty States
=========================================== */
.avsops-state-counties p,
.avsops-state-orgs p,
.avsops-state-events p {
    color: #666;
    font-style: italic;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* ===========================================
   Responsive Adjustments
=========================================== */
@media (max-width: 768px) {
    .avsops-state-wrapper {
        padding: 1rem;
    }
    
    .state-title-with-flag {
        font-size: 1.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .state-flag-icon {
        width: 100px;
    }
    
    .veteran-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .avsops-veteran-stats {
        padding: 1.25rem;
    }
    
    .veteran-era-table th,
    .veteran-era-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .avsops-county-list {
        grid-template-columns: 1fr;
    }
    
    .avsops-state-links ul {
        flex-direction: column;
    }
    
    .avsops-state-links a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .veteran-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .state-title-with-flag {
        font-size: 1.5rem;
    }
}