@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0e1a;
    --primary: #00ff41;
    --warning: #ffa500;
    --danger: #ff3333;
    --critical: #ff00ff;
    --text: #00ff41;
    --text-dim: #00ff4180;
    --border: #00ff4140;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

header {
    background: rgba(0, 255, 65, 0.05);
    border-bottom: 2px solid var(--primary);
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    animation: pulse 1.5s infinite;
    color: var(--danger);
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.timestamp {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.top-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--primary);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-card:hover {
    border-color: var(--text);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: scale(1.02);
}

.stat-card.warning {
    border-color: var(--warning);
}

.stat-card.danger {
    border-color: var(--danger);
}

.stat-card.critical {
    border-color: var(--critical);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 15px currentColor;
    margin: 0.5rem 0;
}

.stat-card.warning .stat-value {
    color: var(--warning);
}

.stat-card.danger .stat-value {
    color: var(--danger);
}

.stat-card.critical .stat-value {
    color: var(--critical);
}

.stat-sub {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.map-container, .stats-panel {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid var(--border);
    padding: 1.5rem;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.map {
    position: relative;
    height: 600px;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.1), transparent);
    border: 1px solid var(--border);
    overflow: hidden;
}

.country {
    position: absolute;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.country:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.iran {
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--danger);
}

.israel {
    top: 60%;
    left: 35%;
}

.bahrain {
    top: 70%;
    left: 60%;
}

.uae {
    bottom: 10%;
    right: 20%;
}

.saudi {
    bottom: 25%;
    left: 25%;
}

.qatar {
    bottom: 30%;
    right: 35%;
}

.jordan {
    top: 55%;
    left: 28%;
}

.country-label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.missile-count {
    color: var(--danger);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--danger);
}

.hit-count {
    color: var(--warning);
    font-size: 1.1rem;
}

.missile-trails {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trail {
    stroke: var(--danger);
    stroke-width: 2;
    stroke-dasharray: 10 5;
    opacity: 0.6;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.trail-2 {
    animation-delay: 0.5s;
}

.trail-3 {
    animation-delay: 1s;
}

.trail-4 {
    animation-delay: 1.5s;
}

.trail-5 {
    animation-delay: 2s;
}

.trail-6 {
    animation-delay: 2.5s;
}

.target-list {
    margin-bottom: 2rem;
}

.target-item {
    margin-bottom: 1.5rem;
}

.target-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-bar {
    height: 20px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--warning));
    box-shadow: 0 0 10px var(--danger);
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
}

.target-count {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

.alert-box {
    background: rgba(255, 163, 0, 0.1);
    border: 2px solid var(--warning);
    padding: 1rem;
    margin-bottom: 2rem;
}

.alert-title {
    font-size: 1rem;
    color: var(--warning);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--warning);
}

.alert-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline {
    margin-top: 2rem;
}

.timeline h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
}

.activity-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-left-color: var(--text);
}

.time {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.event {
    font-size: 0.9rem;
}

footer {
    background: rgba(0, 255, 65, 0.05);
    border-top: 2px solid var(--primary);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

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

.classification {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.credit {
    font-size: 0.9rem;
}

.credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--primary);
}

.credit a:hover {
    color: var(--text);
    text-shadow: 0 0 15px var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .map {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .top-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}
