/* ===================================
   NUCLEAR SURVIVAL WEBSITE - STYLES
   =================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-tertiary: #12121a;
    --bg-card: #161622;
    --bg-input: #1a1a28;
    
    --accent-red: #dc2626;
    --accent-orange: #ea580c;
    --accent-yellow: #ca8a04;
    --accent-green: #16a34a;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;
    
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: #27272a;
    --border-accent: #3f3f46;
    
    --glow-red: rgba(220, 38, 38, 0.5);
    --glow-green: rgba(22, 163, 74, 0.5);
    --glow-cyan: rgba(8, 145, 178, 0.5);
    
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', monospace;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-red);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.radiation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 70%);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Critical Alert Banner */
.critical-banner {
    background: linear-gradient(90deg, var(--bg-secondary), var(--accent-red), var(--bg-secondary));
    background-size: 200% 100%;
    animation: bannerGlow 3s ease infinite;
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--accent-red);
}

@keyframes bannerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 500;
}

.banner-content i {
    color: var(--accent-yellow);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.alert-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Header */
.main-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--glow-cyan);
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: var(--bg-tertiary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-box i {
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.stat-box span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-box small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-box.radiation-box {
    border-color: var(--accent-green);
}

.stat-box.radiation-box i {
    color: var(--accent-green);
}

/* Navigation */
.main-nav {
    max-width: 1400px;
    margin: 20px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 0.85rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Accordion Sections */
.accordion-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-section:hover {
    border-color: var(--border-accent);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg-card);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-title i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    width: 30px;
    text-align: center;
}

.accordion-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-status {
    background: var(--accent-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accordion-status.safe { background: var(--accent-green); }
.accordion-status.warning { background: var(--accent-yellow); }
.accordion-status.danger { background: var(--accent-red); }

.accordion-status.live-pulse {
    background: var(--accent-red);
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.accordion-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-section.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
}

.accordion-section.open .accordion-content {
    max-height: 5000px;
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

/* Sub-Accordion */
.sub-accordion {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    overflow: hidden;
}

.sub-accordion-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-accordion-header:hover {
    background: var(--bg-card);
}

.sub-accordion-header span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.sub-accordion-header i:last-child {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.sub-accordion.open .sub-accordion-header i:last-child {
    transform: rotate(90deg);
}

.sub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-primary);
}

.sub-accordion.open .sub-accordion-content {
    max-height: 2000px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* News Section */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.filter-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.news-card .news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-card .country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.news-card .news-source {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-card .news-date {
    font-size: 0.75rem;
    color: var(--accent-red);
    margin-left: auto;
}

.news-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-card .threat-level {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.threat-indicator {
    height: 4px;
    flex: 1;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.threat-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.threat-fill.low { background: var(--accent-green); }
.threat-fill.medium { background: var(--accent-yellow); }
.threat-fill.high { background: var(--accent-orange); }
.threat-fill.critical { background: var(--accent-red); }

/* Radiation Dashboard */
.radiation-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .radiation-dashboard {
        grid-template-columns: 1fr;
    }
}

.radiation-main {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.geiger-display {
    text-align: center;
}

.geiger-screen {
    background: #000;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 20px;
    border: 2px solid var(--accent-green);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--glow-green);
}

.geiger-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--glow-green);
    line-height: 1;
}

.geiger-unit {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-top: 5px;
}

.geiger-status {
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(22, 163, 74, 0.2);
    border-radius: 20px;
    color: var(--accent-green);
    font-weight: 600;
    display: inline-block;
}

.geiger-status.elevated {
    background: rgba(202, 138, 4, 0.2);
    color: var(--accent-yellow);
}

.geiger-status.warning {
    background: rgba(234, 88, 12, 0.2);
    color: var(--accent-orange);
}

.geiger-status.danger {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent-red);
    animation: dangerPulse 1s ease infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.geiger-bar-container {
    margin-top: 20px;
}

.geiger-bar {
    height: 20px;
    background: linear-gradient(90deg, 
        var(--accent-green) 0%, 
        var(--accent-yellow) 40%, 
        var(--accent-orange) 70%, 
        var(--accent-red) 100%);
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

.geiger-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 30px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 10px white;
    transition: left 0.5s ease;
}

.geiger-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.radiation-legend {
    margin-top: 25px;
}

.radiation-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.radiation-legend .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.radiation-legend .legend-item.safe .legend-color { background: var(--accent-green); }
.radiation-legend .legend-item.elevated .legend-color { background: var(--accent-yellow); }
.radiation-legend .legend-item.warning .legend-color { background: var(--accent-orange); }
.radiation-legend .legend-item.danger .legend-color { background: var(--accent-red); }

.radiation-cities {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.radiation-cities h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cities-list {
    max-height: 350px;
    overflow-y: auto;
}

.city-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.city-item .city-name {
    font-weight: 500;
}

.city-item .city-reading {
    font-family: var(--font-display);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
}

.city-item .city-reading.safe {
    background: rgba(22, 163, 74, 0.2);
    color: var(--accent-green);
}

.city-item .city-reading.elevated {
    background: rgba(202, 138, 4, 0.2);
    color: var(--accent-yellow);
}

.data-source {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Map Section */
.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
}

.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.map-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-filter input {
    display: none;
}

.filter-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transition: all 0.3s ease;
}

.map-filter input:checked + .filter-icon {
    background: currentColor;
}

.filter-icon.bunker { color: var(--accent-green); }
.filter-icon.water { color: var(--accent-blue); }
.filter-icon.danger { color: var(--accent-red); }
.filter-icon.hospital { color: var(--accent-orange); }
.filter-icon.military { color: var(--accent-purple); }
.filter-icon.safe-zone { color: var(--accent-cyan); }

.map-search {
    display: flex;
    gap: 10px;
}

.map-search input {
    padding: 10px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    width: 250px;
}

.map-search button {
    padding: 10px 15px;
    background: var(--accent-cyan);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-search button:hover {
    background: var(--accent-blue);
}

#survivalMap {
    height: 550px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    z-index: 1;
}

.map-legend {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.legend-marker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-marker::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.bunker::before { background: var(--accent-green); }
.legend-marker.water::before { background: var(--accent-blue); }
.legend-marker.danger::before { background: var(--accent-red); }
.legend-marker.hospital::before { background: var(--accent-orange); }
.legend-marker.military::before { background: var(--accent-purple); }
.legend-marker.safe-zone::before { background: var(--accent-cyan); }

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.leaflet-popup-tip {
    background: var(--bg-card);
}

.leaflet-popup-content {
    margin: 15px;
}

.leaflet-popup-content h4 {
    margin-bottom: 8px;
    color: var(--accent-cyan);
}

/* Chat Section */
.chat-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: 550px;
}

@media (max-width: 900px) {
    .chat-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .chat-sidebar {
        display: none;
    }
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-setup, .online-users-panel, .chat-rooms {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.user-setup h3, .online-users-panel h3 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.user-setup input, .user-setup select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.btn-join {
    width: 100%;
    padding: 12px;
    background: var(--accent-green);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-join:hover {
    background: #15803d;
}

.users-list {
    max-height: 150px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.user-item:hover {
    background: var(--bg-card);
}

.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-rooms h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-btn {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.room-btn:hover, .room-btn.active {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header span {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 350px;
}

.system-message {
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid var(--accent-cyan);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.message {
    max-width: 75%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
}

.message.received {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.message.sent {
    background: var(--accent-cyan);
    color: white;
    align-self: flex-end;
}

.message .msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.message .msg-author {
    font-weight: 600;
    color: var(--accent-green);
}

.message.sent .msg-author {
    color: rgba(255, 255, 255, 0.9);
}

.message .msg-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.message.sent .msg-time {
    color: rgba(255, 255, 255, 0.7);
}

.message .msg-region {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-left: 8px;
}

.message .msg-text {
    line-height: 1.5;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.emoji-btn {
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-yellow);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.chat-input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-area button:last-child {
    padding: 12px 20px;
    background: var(--accent-cyan);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button:last-child:hover:not(:disabled) {
    background: var(--accent-blue);
}

.chat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Supplies Section */
.supplies-intro {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-cyan);
}

.supplies-intro p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.supply-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supply-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.supply-item .priority {
    font-weight: 900;
    text-align: center;
}

.supply-item.critical .priority { color: var(--accent-red); }
.supply-item.high .priority { color: var(--accent-orange); }
.supply-item.medium .priority { color: var(--accent-yellow); }
.supply-item.low .priority { color: var(--accent-green); }

.supply-item .item-name {
    font-weight: 500;
}

.supply-item .item-qty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

.supply-tip {
    margin-top: 15px;
    padding: 15px;
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.supply-tip i {
    color: var(--accent-cyan);
    margin-top: 2px;
}

.supply-tip.warning {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-red);
}

.supply-tip.warning i {
    color: var(--accent-red);
}

/* Knowledge Content */
.knowledge-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.knowledge-content h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-size: 1.05rem;
}

.knowledge-content h4:first-child {
    margin-top: 0;
}

.knowledge-content ul, .knowledge-content ol {
    padding-left: 25px;
    margin: 10px 0;
}

.knowledge-content li {
    margin-bottom: 8px;
}

.knowledge-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.knowledge-content table th,
.knowledge-content table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.knowledge-content table th {
    background: var(--bg-card);
    color: var(--text-primary);
}

.knowledge-content table td {
    background: var(--bg-tertiary);
}

.info-table {
    margin-top: 20px;
}

.warning-box {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--accent-red);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.warning-box i {
    color: var(--accent-red);
    margin-top: 2px;
}

/* Radio Section */
.radio-intro {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-purple);
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.radio-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.radio-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.radio-card.emergency h3 { color: var(--accent-red); }
.radio-card.amateur h3 { color: var(--accent-purple); }
.radio-card.pmr h3 { color: var(--accent-green); }
.radio-card.greece h3 { color: var(--accent-cyan); }
.radio-card.shortwave h3 { color: var(--accent-orange); }
.radio-card.survival h3 { color: var(--accent-yellow); }

.freq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.freq-item .freq {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

.freq-item .desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: right;
}

.freq-item.important {
    background: rgba(202, 138, 4, 0.15);
    border: 1px solid var(--accent-yellow);
}

.radio-card .note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.radio-tip {
    margin-top: 25px;
    padding: 15px 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.radio-tip i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        var(--accent-red), 
        var(--accent-orange), 
        var(--accent-yellow), 
        var(--accent-green),
        var(--accent-cyan));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker span {
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid;
}

.timeline-item.critical .timeline-marker span { border-color: var(--accent-red); color: var(--accent-red); }
.timeline-item.high .timeline-marker span { border-color: var(--accent-orange); color: var(--accent-orange); }
.timeline-item.medium .timeline-marker span { border-color: var(--accent-yellow); color: var(--accent-yellow); }
.timeline-item.low .timeline-marker span { border-color: var(--accent-green); color: var(--accent-green); }
.timeline-item.info .timeline-marker span { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.timeline-content h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.timeline-item.critical h4 { color: var(--accent-red); }
.timeline-item.high h4 { color: var(--accent-orange); }
.timeline-item.medium h4 { color: var(--accent-yellow); }
.timeline-item.low h4 { color: var(--accent-green); }
.timeline-item.info h4 { color: var(--accent-cyan); }

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Checklist Section */
.checklist-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-secondary {
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.checklist-progress {
    margin-bottom: 25px;
}

.progress-bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow), var(--accent-green));
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

#progressText {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.9rem;
}

.checklist-item.checked {
    border-color: var(--accent-green);
    background: rgba(22, 163, 74, 0.1);
}

.checklist-item.checked label {
    text-decoration: line-through;
    color: var(--text-muted);
}

.readiness-result {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.readiness-result.show {
    display: block;
}

.readiness-result h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.readiness-result.critical h3 { color: var(--accent-red); }
.readiness-result.low h3 { color: var(--accent-orange); }
.readiness-result.medium h3 { color: var(--accent-yellow); }
.readiness-result.high h3 { color: var(--accent-green); }

/* Emergency Button */
.emergency-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--accent-red);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: emergencyPulse 2s ease infinite;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.emergency-btn i {
    font-size: 1.5rem;
}

.emergency-btn:hover {
    transform: scale(1.1);
}

@keyframes emergencyPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--accent-red);
    overflow: hidden;
}

.modal-header {
    background: var(--accent-red);
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
}

.modal-body {
    padding: 25px;
}

.emergency-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
}

.emergency-warning {
    margin-top: 20px;
    padding: 15px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-red);
    font-weight: 600;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    padding: 15px 40px;
    background: var(--accent-red);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #b91c1c;
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
    }
    
    .header-stats {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .accordion-title h2 {
        font-size: 1rem;
    }
    
    .timeline-container {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-container {
        grid-template-columns: 1fr;
    }
}
