/* FILENAME: bond-style.css 
   VERSION: 11.1.6 (Final Consolidated)
*/

/* --- 1. GLOBAL RESET & FONTS --- */
body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #d4af37; }

/* Typography */
h1, h2, h3, h4, .bond-font { font-family: 'Playfair Display', serif; letter-spacing: 1px; font-weight: bold; }
.mono-font, .security-input, .input-mission-code { font-family: 'Share Tech Mono', monospace; }
.gold-text { color: #d4af37; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }

/* --- 2. UTILITIES & ANIMATIONS --- */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease-in; }
.fade-in-section { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.typing::after, .ai-cursor::after { content: '▋'; animation: blink 1s infinite; color: #d4af37; margin-left: 4px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- 3. BORDERS & CONTAINERS --- */
.gold-border { border: 1px solid #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }
.blue-border { border: 1px solid #60a5fa; box-shadow: 0 0 15px rgba(96, 165, 250, 0.2); }
.red-border { border: 1px solid #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }

/* Agent Frame (Mobile Styling) */
.secure-pad-frame { width: 100%; transition: all 0.5s ease; }
@media (min-width: 768px) { 
    .secure-pad-frame { 
        max-width: 420px; background-color: #0a0a0a; border: 1px solid #333; 
        border-top: 4px solid #d4af37; border-bottom: 1px solid #d4af37; 
        border-radius: 12px; padding: 40px; 
        box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.1); 
        margin-top: 2rem; margin-bottom: 2rem; position: relative; 
    } 
    .secure-pad-frame::after { 
        content: ':: MI6 SECURE TERMINAL ::'; position: absolute; bottom: 10px; left: 0; right: 0; 
        text-align: center; font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; color: #333; letter-spacing: 2px; 
    } 
}
.bg-grid::before {
    content: ""; position: fixed; inset: 0; 
    background-image: linear-gradient(rgba(20, 20, 20, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 20, 20, 0.5) 1px, transparent 1px); 
    background-size: 40px 40px; z-index: -1; opacity: 0.3; pointer-events: none; 
}

/* --- 4. UI COMPONENTS: BUTTONS & INPUTS --- */
.gold-btn {
    background-color: #c5a035; color: #000; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    padding: 16px; border-radius: 4px; border: none; width: 100%; transition: transform 0.1s;
}
.gold-btn:active { transform: scale(0.98); background-color: #b08d2b; }
.gold-btn:disabled { background-color: #444; color: #888; cursor: not-allowed; }

.option-btn {
    background-color: #0f172a; color: white; width: 100%; padding: 24px; margin-bottom: 12px; border-radius: 6px;
    font-weight: bold; font-size: 1.1rem; border: 1px solid #1e293b; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.option-btn:active { transform: scale(0.98); border-color: #d4af37; }
.option-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.option-btn.selected { background-color: #d4af37; color: black; border-color: #fff; box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }

/* Standard Input */
.bond-input, .security-input, .input-field {
    background-color: #111827; border: 1px solid #374151; color: white; text-align: center;
    border-radius: 4px; outline: none; transition: all 0.3s ease;
}
.bond-input:focus { border-color: #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }

/* SPECIAL: MISSION CODE INPUT (Dark Slate Look) */
.input-mission-code {
    background-color: #0f172a; /* Dark Slate Blue */
    border: 1px solid #334155;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    padding: 20px;
    outline: none;
    margin-bottom: 20px;
    letter-spacing: 0.5em;
    transition: all 0.3s;
    text-transform: uppercase;
}
.input-mission-code:focus { border-color: #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
.input-mission-code::placeholder { color: #334155; letter-spacing: 0.5em; opacity: 0.5; }

/* Agent Specific Input Tweaks */
.input-field { font-size: 1.1rem; padding: 14px; background-color: #e6f0fa; color: #000; } 

/* --- 5. UI COMPONENTS: MODALS --- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
    width: 100%; max-width: 450px; background: #050505; border: 1px solid #d4af37;
    border-radius: 8px; padding: 24px; position: relative; box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* --- 6. STATUS INDICATORS & TOOLTIPS --- */
.status-container { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; gap: 0.75rem; }

.stat-green { background-color: #22c55e !important; box-shadow: 0 0 8px #22c55e !important; border-color: #166534 !important; }
.stat-yellow { background-color: #eab308 !important; box-shadow: 0 0 8px #eab308 !important; border-color: #854d0e !important; animation: pulse 1s infinite; }
.stat-red { background-color: #ef4444 !important; box-shadow: 0 0 8px #ef4444 !important; border-color: #991b1b !important; }
.stat-gray { background-color: #4b5563 !important; box-shadow: none !important; border-color: #374151 !important; }

/* Unified Tooltip */
.bond-tooltip {
    position: absolute; top: 100%; margin-top: 8px;
    background: rgba(15, 15, 15, 0.98); border: 1px solid #333;
    color: #ccc; padding: 8px 12px; border-radius: 4px;
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px;
    white-space: nowrap; z-index: 2000; pointer-events: none;
    opacity: 0; visibility: hidden; transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8); min-width: 140px;
}
.tooltip-right { right: 0; border-right: 4px solid #d4af37; text-align: right; }
.tooltip-left { left: 0; border-left: 4px solid #d4af37; text-align: left; }
.group:hover .bond-tooltip { opacity: 1; visibility: visible; transform: translateY(2px); }

.status-legend-item { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #888; font-size: 0.55rem; }
.status-legend-item.right { justify-content: flex-end; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #333; }

/* --- 7. TABLES & GRIDS --- */
/* Hall of Fame - Desktop Grid */
.hof-grid { 
    display: grid; 
    grid-template-columns: 40px 1fr 60px 60px 60px 140px; 
    gap: 12px; 
    align-items: center; 
    border-bottom: 1px solid #222; 
    padding: 12px 0; 
    font-size: 0.8rem; 
}

.hof-header { 
    font-weight: bold; 
    color: #666; 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 1px; 
    border-bottom: 2px solid #d4af37; 
    padding-bottom: 12px; 
    margin-bottom: 12px; 
}

/* Spectator Small Grid */
.spectator-grid { display: grid; grid-template-columns: 30px 1fr 50px; gap: 8px; align-items: center; border-bottom: 1px solid #222; padding: 6px 0; font-size: 0.75rem; }

/* HOF Status Colors */
.status-00 { color: #d4af37; font-weight: bold; text-shadow: 0 0 5px rgba(212, 175, 55, 0.4); }
.status-agent { color: #60a5fa; }
.status-candidate { color: #4ade80; } 
.status-rookie { color: #9ca3af; }
.status-desk { color: #4b5563; font-style: italic; font-size: 0.7rem; }

/* --- 8. VERSIONS TIMELINE --- */
.version-card { background-color: #111; border-left: 4px solid #333; margin-bottom: 2rem; padding: 1.5rem; transition: all 0.3s ease; position: relative; scroll-margin-top: 150px; }
.version-card:hover { background-color: #161616; border-left-color: #d4af37; }
.version-card::before { content: ''; position: absolute; left: -36px; top: 1.8rem; width: 12px; height: 12px; background-color: #050505; border: 2px solid #333; border-radius: 50%; z-index: 10; transition: all 0.3s ease; }
.version-card:hover::before { border-color: #d4af37; background-color: #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.version-card.latest { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(22, 163, 74, 0.05) 0%, rgba(0,0,0,0) 100%); }
.version-card.latest::before { background-color: #22c55e; border-color: #22c55e; box-shadow: 0 0 15px rgba(34, 197, 94, 0.8); }

.timeline { border-left: 2px solid #333; margin-left: 20px; padding-left: 30px; }
.tag { font-size: 0.65rem; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; font-weight: bold; display: inline-block; margin-bottom: 2px; }
.tag-stable { background-color: #064e3b; color: #34d399; border: 1px solid #059669; }
.tag-fix { background-color: #7f1d1d; color: #fca5a5; border: 1px solid #dc2626; }
.tag-ai { background-color: #713f12; color: #facc15; border: 1px solid #ca8a04; }
.tag-opt { background-color: #1e3a8a; color: #60a5fa; border: 1px solid #2563eb; }

/* --- 9. LOADERS --- */
.lobby-loader {
    width: 80px; height: 80px;
    border: 4px solid transparent;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 2rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }