/* =========================================
   State Explorer CSS - Multi-State Support
   ========================================= */

/* State Selector Page Styles */
.state-selector-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.state-selector-header {
    text-align: center;
    margin-bottom: 30px;
}

.state-selector-header h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.state-selector-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Region Tabs */
.region-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.region-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.region-tab.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* State Cards Grid */
.state-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* State Card */
.state-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.state-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.state-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.state-card.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.state-card-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.state-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.state-card-nickname {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.state-card-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.state-stat {
    text-align: center;
}

.state-stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.state-stat-label {
    font-size: 0.7rem;
    color: #888;
}

/* State Explorer Page - Main Container */
.state-explorer-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    padding: 20px;
}

.state-explorer-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 15px;
}

.state-explorer-header h1 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.state-explorer-header h1 .emoji {
    font-size: 1.5rem;
}

.state-explorer-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.state-explorer-header .back-btn {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.state-explorer-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* State Explorer Sidebar */
.state-explorer-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.state-explorer-sidebar .sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.state-explorer-sidebar .sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.state-explorer-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* View Toggle Buttons */
.state-view-toggles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.state-view-toggle-btn {
    padding: 10px 15px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.state-view-toggle-btn:hover {
    background: #e5e7eb;
}

.state-view-toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Region Filter Buttons */
.state-region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.state-region-btn {
    padding: 6px 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-region-btn:hover {
    background: #e5e7eb;
}

.state-region-btn.active {
    background: #667eea;
    color: white;
}

/* Search */
.state-search {
    position: relative;
}

.state-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.state-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.state-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* Fun Stats */
.state-fun-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.state-stat-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.state-stat-card .stat-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.state-stat-card .stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.state-stat-card .stat-label {
    font-size: 0.7rem;
    color: #666;
}

/* Quick Fact */
.state-quick-fact {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.state-quick-fact .fact-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.state-quick-fact .fact-text {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.4;
}

.state-fact-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.state-fact-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.state-fact-nav-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Explore Button */
.state-explore-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.state-explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* State Explorer Map */
.state-explorer-map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-left: 15px;
}

#state-explorer-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* State Hover Card */
.state-hover-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    transition: all 0.3s ease;
}

.state-hover-card .location-emoji {
    font-size: 2rem;
    margin-bottom: 5px;
}

.state-hover-card .location-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.state-hover-card .location-type {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-hover-card .location-fact {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
    line-height: 1.4;
}

.state-hover-card .click-hint {
    font-size: 0.75rem;
    color: #667eea;
    margin-top: 8px;
    font-weight: 600;
}

/* State Map Legend */
.state-map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.state-map-legend .legend-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.state-map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #1f2937;
    font-weight: 600;
}

.state-map-legend .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.state-map-legend .legend-color.county {
    background: #667eea;
}

.state-map-legend .legend-color.city {
    background: #f59e0b;
}

.state-map-legend .legend-color.landmark {
    background: #10b981;
}

/* State Reset Button */
.state-map-reset-btn {
    position: absolute;
    top: 80px;
    left: 10px;
    z-index: 1000;
    width: 26px;
    height: 26px;
    border-radius: 0 0 2px 2px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: none;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.state-map-reset-btn:hover {
    background: #f4f4f4;
}

/* State Modal */
.state-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.state-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.state-modal {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.state-modal-overlay.active .state-modal {
    transform: scale(1);
}

.state-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.state-modal-header .modal-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.state-modal-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.state-modal-header .modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 5px;
}

.state-modal-header .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.state-modal-body {
    padding: 25px;
}

/* Modal Section styling */
.state-modal-body .modal-section {
    background: rgba(248, 250, 252, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.state-modal-body .modal-section h3 {
    color: #7c3aed;
    font-size: 1.1rem;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.state-modal-body .modal-section p {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.state-modal-body .fun-fact-text {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Fun Facts Grid in state modal */
.state-modal-body .fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.state-modal-body .fun-fact-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.2));
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.state-modal-body .fun-fact-item .fact-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.state-modal-body .fun-fact-item .fact-label {
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.state-modal-body .fun-fact-item .fact-value {
    color: #7c3aed;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 3px;
}

/* Quick Facts Chips in state modal */
.state-modal-body .quick-facts-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.state-modal-body .quick-fact-chip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.35));
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 15px;
    padding: 8px 14px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Fun Facts List in state modal */
.state-modal-body .fun-facts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.state-modal-body .fun-fact-item-text {
    background: rgba(16, 185, 129, 0.25);
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Cities Chips in state modal */
.state-modal-body .cities-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.state-modal-body .city-chip {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.45));
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 20px;
    padding: 8px 15px;
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-modal-body .city-chip:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.state-modal-body .info-section {
    margin-bottom: 20px;
}

.state-modal-body .info-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.state-modal-body .info-section p {
    color: #666;
    line-height: 1.6;
}

.state-modal-body .quick-facts-list,
.state-modal-body .fun-facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.state-modal-body .quick-facts-list li,
.state-modal-body .fun-facts-list li {
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.state-modal-body .quick-facts-list li::before {
    content: '📍';
}

.state-modal-body .fun-facts-list li::before {
    content: '⭐';
}

.state-modal-body .cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.state-modal-body .city-chip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #78350f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.state-modal-body .city-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .state-explorer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        height: auto;
        max-height: none;
    }
    
    .state-explorer-sidebar {
        order: 3;
    }
    
    .state-explorer-map-wrapper {
        margin-left: 0;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .state-selector-header h1 {
        font-size: 1.8rem;
    }
    
    .state-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .state-card {
        padding: 15px;
    }
    
    .state-card-emoji {
        font-size: 2.5rem;
    }
    
    .state-card-name {
        font-size: 1.1rem;
    }
    
    .state-explorer-header {
        padding: 10px 15px;
        padding-top: 50px; /* Space for back button */
        position: relative;
    }
    
    .state-explorer-header h1 {
        font-size: 1.2rem;
    }
    
    .state-explorer-header .back-btn {
        position: absolute;
        left: 10px;
        top: 10px;
        transform: none;
        padding: 6px 12px;
        font-size: 0.85rem;
        z-index: 10;
    }
    
    .state-hover-card {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .state-map-legend {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
    }
    
    /* Mobile modal fix - centered and properly sized */
    .state-modal-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .state-modal {
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: calc(100vh - 100px);
        margin: 0 auto;
        border-radius: 20px;
    }
    
    .state-modal-header {
        padding: 15px;
        border-radius: 20px 20px 0 0;
    }
    
    .state-modal-header .modal-emoji {
        font-size: 2rem;
    }
    
    .state-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .state-modal-body {
        padding: 15px;
    }
    
    .state-modal-body .modal-section {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .state-modal-body .modal-section h3 {
        font-size: 0.95rem;
    }
}

/* Loading Animation */
.state-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.state-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.state-loading p {
    margin-top: 15px;
    font-size: 1.1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Results Dropdown */
.state-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.state-search-results.active {
    display: block;
}

.state-search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.state-search-result-item:hover {
    background: #f8fafc;
}

.state-search-result-item:last-child {
    border-bottom: none;
}

.state-search-result-item .result-name {
    font-weight: 600;
    color: #333;
}

.state-search-result-item .result-type {
    font-size: 0.75rem;
    color: #666;
}

/* State Search Marker Styles */
.state-search-marker-icon {
    background: transparent !important;
    border: none !important;
}

.state-search-marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.state-search-marker-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: state-marker-pulse 1s ease-out infinite;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.state-search-marker-pin {
    font-size: 2.5rem;
    animation: state-marker-bounce 0.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    z-index: 10;
}

.state-search-marker-label {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-top: -5px;
    max-width: 140px;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
}

@keyframes state-marker-pulse {
    0% { transform: translateX(-50%) scale(0.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

@keyframes state-marker-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Coming Soon Box */
.coming-soon-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 2px dashed rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    animation: coming-soon-glow 2s ease-in-out infinite;
}

.coming-soon-icon {
    font-size: 1.8rem;
    animation: coming-soon-bounce 2s ease-in-out infinite;
}

.coming-soon-text {
    display: flex;
    flex-direction: column;
}

.coming-soon-text strong {
    color: #a855f7;
    font-size: 0.95rem;
}

.coming-soon-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

@keyframes coming-soon-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
    50% { box-shadow: 0 0 15px 3px rgba(139, 92, 246, 0.3); }
}

@keyframes coming-soon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== NEUTRAL/LITE MODE OVERRIDES ===== */
body.lite-mode .state-explorer-header {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

body.lite-mode .state-explorer-header h1 {
    color: #1e293b;
}

body.lite-mode .state-explorer-header .state-flag {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

body.lite-mode .state-explorer-header .back-btn {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: #0f172a;
    font-weight: 700;
}

body.lite-mode .state-explorer-header .back-btn:hover {
    background: rgba(0, 0, 0, 0.25);
}

body.lite-mode .state-explorer-sidebar {
    background: rgba(255, 255, 255, 0.98);
}

body.lite-mode .state-explorer-sidebar h3 {
    color: #1e293b;
}

body.lite-mode .state-control-btn {
    background: #f1f5f9;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    font-weight: 600;
}

body.lite-mode .state-control-btn:hover {
    background: #e2e8f0;
    border-color: #667eea;
}

body.lite-mode .state-map-legend {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.lite-mode .state-map-legend .legend-title {
    color: #0f172a;
    font-weight: 700;
}

body.lite-mode .state-map-legend .legend-item {
    color: #1e293b;
    font-weight: 600;
}
