/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo i {
    color: #ffd700;
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main-content {
    padding: 2rem 0;
}

/* Status card */
.status-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.status-item:nth-child(1) {
    border-left-color: #e74c3c;
}

.status-item:nth-child(2) {
    border-left-color: #f39c12;
}

.status-item:nth-child(3) {
    border-left-color: #3498db;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.status-icon.active-fires {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.status-icon.evacuation {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.status-icon.alerts {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.status-item::after {
    content: '→';
    margin-left: auto;
    font-size: 1.2rem;
    color: #7f8c8d;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.status-item:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* Content sections */
.content-sections {
    display: grid;
    gap: 2rem;
}

.fires-section,
.evacuation-orders-section,
.evacuation-alerts-section,
.resources-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-updated {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.fires-section h2,
.evacuation-orders-section h2,
.evacuation-alerts-section h2,
.resources-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Special styling for evacuation orders section */
.evacuation-orders-section {
    border-left: 4px solid #dc2626;
}

.evacuation-orders-section h2 {
    color: #dc2626;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fire items */
.fire-item {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.fire-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fire-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.fire-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.fire-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.fire-status.out-of-control {
    background: #fed7d7;
    color: #c53030;
}

.fire-status.being-held {
    background: #fef5e7;
    color: #d69e2e;
}

.fire-status.under-control {
    background: #f0fff4;
    color: #38a169;
}

.fire-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fire-detail {
    display: flex;
    flex-direction: column;
}

.fire-detail-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.fire-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.fire-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Evacuation items */
.evacuation-item {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.evacuation-item.order-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
}

.evacuation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.evacuation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.evacuation-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.evacuation-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.evacuation-type.order {
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
}

.evacuation-type.alert {
    background: #fef5e7;
    color: #d69e2e;
}

.evacuation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.evacuation-detail {
    display: flex;
    flex-direction: column;
}

.evacuation-detail-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.evacuation-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.evacuation-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Resources section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.resource-card i {
    font-size: 2rem;
    color: #007bff;
}

.resource-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.resource-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.empty-state p {
    font-size: 0.9rem;
}

.empty-state-note {
    font-style: italic;
    color: #38a169;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-summary {
        grid-template-columns: 1fr;
    }
    
    .fire-header,
    .evacuation-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fire-details,
    .evacuation-details {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .fires-section,
    .evacuation-orders-section,
    .evacuation-alerts-section,
    .resources-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .status-item {
        padding: 0.75rem;
    }
    
    .status-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Floating Return to Top Button */
.return-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.return-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff5252, #d84315);
}

.return-to-top.show {
    display: flex;
}

/* Emergency Notice */
.emergency-notice {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.emergency-notice i {
    color: #fecaca;
    font-size: 1rem;
}

/* Status Controls */
.status-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.refresh-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.refresh-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

/* SEO Content Styling */
.seo-content {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.seo-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seo-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.seo-content-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ff6b6b;
}

.seo-content-block h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seo-content-block p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-section {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.faq-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.faq-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Map Section Styles */
.map-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-section .section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-control-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.map-control-btn.active {
    background: #27ae60;
}

.map-control-btn.active:hover {
    background: #229954;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.legend-icon.fire-marker {
    font-size: 16px;
}

.legend-icon.evacuation-order {
    background: #e74c3c;
}

.legend-icon.evacuation-alert {
    background: #f39c12;
}

/* Info Window Styles */
.info-window {
    max-width: 300px;
    font-family: 'Inter', sans-serif;
}

.info-window h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-window p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-window .info-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.info-window .info-label {
    font-weight: 500;
    color: #2c3e50;
}

.info-window .info-value {
    color: #4a5568;
}

/* Responsive design for map */
@media (max-width: 768px) {
    .map-section .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-controls {
        justify-content: center;
    }
    
    .map {
        height: 400px;
    }
    
    .map-legend {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        background: white;
    }
}

@media (max-width: 480px) {
    .map {
        height: 300px;
    }
    
    .map-control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Responsive design for SEO content */
@media (max-width: 768px) {
    .seo-content h2 {
        font-size: 1.1rem;
    }
    
    .seo-content p {
        font-size: 0.9rem;
    }
    
    .seo-section {
        padding: 1.5rem;
    }
    
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .seo-content-block {
        padding: 1rem;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
} 