/* --- FPV LEGION MASTER OS 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', Tahoma, Geneva, Verdana, 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: 2.5rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

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

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

nav a i { margin-right: 8px; color: var(--primary-blue); }

.nav-request {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    padding: 5px 12px !important;
}

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

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

.container::before {
    content: "4.2V";
    position: absolute;
    top: 12px; right: 25px;
    font-family: var(--osd-font);
    color: var(--osd-green);
    font-size: 0.85rem;
    font-weight: bold;
}

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

/* --- GRID SYSTEM --- */
.media-grid {
    display: grid;
    grid-template-columns: 1fr; /* Optimized for collapsible high-density lists */
    gap: 20px;
}

.card { 
    background: var(--card-bg); 
    padding: 18px; 
    border: 1px solid #222;
    border-radius: 4px;
}

.card img { 
    width: 100%; 
    border-radius: 2px; 
    margin-bottom: 12px; 
    border: 1px solid #333;
}

.osd-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 15px;
    font-family: var(--osd-font);
    font-size: 0.7rem;
    color: var(--osd-green);
    border-top: 1px solid #222;
}

/* --- COLLAPSIBLE TACTICAL ELEMENTS --- */
.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;
    letter-spacing: 1px;
}

.specs-trigger:hover, .spot-trigger:hover {
    background: #222;
    border-color: var(--primary-blue);
}

.specs-content, .spot-content { 
    padding: 15px; 
    background: #0f0f0f; 
    border: 1px solid #222; 
    border-top: none;
}

/* Note: Spots are hidden by default via inline style in the PHP logic, 
   while Hangar specs are visible by default. CSS handles the look for both. */

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

.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; 
}

/* --- VAULT EDITOR COMPONENT GRID --- */
.comp-grid { 
    display: none; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-top: 15px; 
    padding: 15px; 
    background: #111; 
    border: 1px solid #333; 
}

.comp-grid div { display: flex; flex-direction: column; }
.comp-grid label { 
    font-size: 0.65rem; 
    color: #666; 
    text-transform: uppercase; 
    margin-bottom: 4px; 
    font-family: var(--osd-font); 
}

.comp-grid input { 
    background: #000; 
    color: var(--osd-green); 
    border: 1px solid #222; 
    padding: 8px; 
    font-family: var(--osd-font); 
    font-size: 0.8rem; 
}

/* --- FLOATING OSD PROMPT --- */
#osd-floating-prompt {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background: rgba(15, 15, 15, 0.98);
    border-left: 6px solid var(--osd-red);
    padding: 15px 25px;
    z-index: 10002;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.osd-prompt-text { font-family: var(--osd-font); font-size: 0.85rem; color: #eee; margin: 0; }
.btn-osd-close { 
    background: transparent; 
    border: 1px solid var(--osd-red); 
    color: var(--osd-red); 
    padding: 6px 15px; 
    cursor: pointer; 
    font-weight: bold;
}

.osd-exit { transform: translate(-50%, 200%) !important; opacity: 0; }

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--osd-font);
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s;
}

.btn-primary:hover { background: #2980b9; }

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    #osd-floating-prompt { flex-direction: column; text-align: center; }
    .btn-osd-close { margin-top: 12px; width: 100%; }
    .comp-grid { grid-template-columns: 1fr; }
    .container { margin: 15px; padding: 20px; }
}
