/* tactical-map.css */

#tactical-map-root {
    width: 100%;
    max-width: 800px; /* Etwas schmaler für bessere Deutschland-Form */
    margin: 0 auto;
    background: radial-gradient(circle at center, #0a0a0a, #000);
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    min-height: 700px;
}

/* Radar-Gitter */
#tactical-map-root::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none;
}

/* Die Deutschland-Karte (SVG) */
.germany-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 5px rgba(0,0,0,1));
    transform: scale(0.95);
}

.state-path {
    fill: #111;
    stroke: #333;
    stroke-width: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
}
.state-path:hover {
    fill: #1a1a1a;
    stroke: var(--gold, #FFCC00);
}
.state-path.active {
    fill: #221a00;
    stroke: var(--gold, #FFCC00);
    stroke-width: 3;
}

/* Die Tauben (Punkte) */
.pigeon-dot {
    position: absolute;
    width: 12px; height: 12px; /* Größer zum Klicken */
    background: var(--gold, #FFCC00);
    border: 2px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 0 15px var(--gold, #FFCC00);
    transition: top 0.1s linear, left 0.1s linear; /* WICHTIG für Smoothness */
}
/* Klick-Zone vergrößern (unsichtbar) */
.pigeon-dot::before {
    content: ''; position: absolute; top: -15px; left: -15px; 
    width: 40px; height: 40px; border-radius: 50%; 
}

/* MODAL STYLES (DIE AKTE) */
.agent-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none; /* Hidden */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.agent-file {
    width: 100%; max-width: 700px;
    background: #111;
    border: 1px solid #444;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    display: flex; flex-direction: column;
}

.file-header {
    background: #222; padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--gold, #FFCC00);
    color: #888; font-size: 0.8rem; letter-spacing: 2px;
}
.close-file-btn {
    background: none; border: 1px solid #555; color: #fff;
    cursor: pointer; padding: 5px 10px; font-family: inherit;
    transition: 0.2s;
}
.close-file-btn:hover { background: #333; }

.file-body {
    padding: 30px;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px;
}

/* Linke Spalte */
.agent-photo-frame {
    position: relative;
    border: 5px solid #fff;
    transform: rotate(-2deg);
    margin-bottom: 20px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}
.agent-photo-frame img { width: 100%; display: block; filter: grayscale(20%) contrast(1.2); }
.stamp-overlay {
    position: absolute; top: 10px; right: -10px;
    border: 2px solid #ff3333; color: #ff3333;
    padding: 5px 10px; font-weight: bold; font-size: 1.2rem;
    transform: rotate(20deg); letter-spacing: 3px;
    opacity: 0.8;
}

.stat-row {
    display: flex; justify-content: space-between;
    border-bottom: 1px solid #333; padding: 8px 0;
    color: #ccc; font-size: 0.9rem;
}

/* Rechte Spalte */
.file-intel h4 {
    margin: 0 0 10px 0; color: #fff; border-bottom: 1px solid #444; padding-bottom: 5px;
    text-transform: uppercase; font-size: 0.9rem;
}
#agent-bio { font-size: 0.9rem; line-height: 1.5; color: #aaa; }

.media-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.media-item {
    background: #000; height: 80px; border: 1px solid #333;
    position: relative; overflow: hidden; cursor: pointer;
}
.media-item:hover { border-color: var(--gold); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

/* Mobile Anpassung */
@media (max-width: 700px) {
    .file-body { grid-template-columns: 1fr; }
    .agent-photo-frame { width: 150px; margin: 0 auto 20px; }
}