/* --- FPV LEGION MASTER GCS STYLES --- */
:root {
    --primary-blue: #3498db;
    --osd-green: #2ecc71;
    --osd-red: #e74c3c;
    --dark-bg: #0a0a0a;
    --card-bg: #161616;
    --text-main: #e0e0e0;
    --osd-font: 'Courier New', monospace;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 100px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* GOGGLE VIEW OVERLAYS */
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 70%, rgba(0,0,0,0.6) 100%);
    pointer-events: none; z-index: 9999;
}

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%);
    background-size: 100% 4px;
    pointer-events: none; z-index: 9998;
}

header {
    background: #111; padding: 1.5rem 1rem; text-align: center;
    border-bottom: 2px solid var(--primary-blue);
}

.logo { max-width: 120px; filter: drop-shadow(0 0 10px var(--primary-blue)); }

nav {
    display: flex; justify-content: center; flex-wrap: wrap;
    background: #1c2833; padding: 10px; position: sticky; top: 0; z-index: 1000;
}

nav a {
    color: #fff; text-decoration: none; margin: 5px 15px;
    font-weight: bold; text-transform: uppercase; font-size: 0.8rem;
}

.container {
    max-width: 1100px; margin: 30px auto; padding: 35px 20px 20px 20px;
    background: rgba(20, 20, 20, 0.9); border: 1px solid rgba(52, 152, 219, 0.2);
    position: relative; width: 95%;
}

/* OSD MARKERS */
.container::after {
    content: "REC  00:14:23"; position: absolute; top: 10px; left: 15px;
    font-family: var(--osd-font); color: var(--osd-red); font-size: 0.7rem;
    animation: blink 1s steps(5, start) infinite;
}

.container::before {
    content: "4.2V"; position: absolute; top: 10px; right: 15px;
    font-family: var(--osd-font); color: var(--osd-green); font-size: 0.8rem;
}

@keyframes blink { to { visibility: hidden; } }

/* SPLIT-PANE HANGAR (DESKTOP) */
@media (min-width: 992px) {
    .build-card {
        display: flex; flex-direction: row; gap: 0; align-items: stretch;
        background: var(--card-bg); border: 1px solid #222; min-height: 450px;
    }
    .build-image-side {
        flex: 1; position: relative; overflow: hidden;
        border-right: 2px solid var(--primary-blue);
    }
    .build-image-side img {
        width: 100%; height: 100%; object-fit: cover;
    }
    .build-info-side {
        flex: 1.2; padding: 25px; overflow-y: auto; max-height: 500px;
    }
}

/* MOBILE FALLBACK */
@media (max-width: 991px) {
    .build-card { display: block; }
    .build-image-side img { width: 100%; height: auto; }
}

.media-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { background: var(--card-bg); padding: 18px; border: 1px solid #222; }

/* VAULT DRAG & DROP */
#drop-zone {
    border: 2px dashed #333; padding: 25px; text-align: center;
    color: #666; cursor: pointer; transition: 0.3s; margin-top: 15px;
    font-family: var(--osd-font); font-size: 0.75rem;
}
#drop-zone.dragover { border-color: var(--primary-blue); color: white; background: rgba(52, 152, 219, 0.1); }

/* MISC TACTICAL */
.specs-trigger, .spot-trigger {
    background: #1a1a1a; border: 1px solid #333; color: var(--primary-blue);
    width: 100%; padding: 12px; cursor: pointer; text-align: left;
    font-family: var(--osd-font); text-transform: uppercase; font-weight: bold;
}
.specs-content, .spot-content { padding: 15px; background: #0f0f0f; border: 1px solid #222; border-top: none; }
.specs-content li { position: relative; padding-left: 20px; margin-bottom: 8px; color: #aaa; border-bottom: 1px solid #1a1a1a; padding-bottom: 4px; font-family: var(--osd-font); font-size: 0.85rem; }
.specs-content li::before { content: "■"; position: absolute; left: 0; color: var(--primary-blue); font-size: 0.6rem; top: 2px; }
.specs-content li strong { color: var(--osd-green); font-weight: normal; margin-right: 5px; }

/* FLOATING PROMPT */
#osd-floating-prompt {
    position: fixed; bottom: 20px; left: 5%; width: 90%; z-index: 10002;
    background: rgba(15, 15, 15, 0.98); border-left: 5px solid var(--osd-red);
    padding: 15px; display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 768px) {
    #osd-floating-prompt { flex-direction: row; left: 50%; transform: translateX(-50%); max-width: 850px; }
}
