/* --- OSNOVNE POSTAVKE --- */
:root {
    --obsidian: #01110B; /* Tačna boja sa tvog grida */
    --terminal-green: #50fa7b; /* Figma Terminal Green */
    --atelier-gold: #f9e7b1; /* Svetlo zlato sa logotipa */
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--obsidian);
    font-family: 'Space Mono', monospace;
    color: white;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

.obsidian-bg {
    background-color: var(--obsidian);
}

.hidden {
    display: none;
    opacity: 0;
}

/* --- TERMINAL OVERLAY --- */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obsidian);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.terminal-content {
    width: 80%;
    max-width: 500px;
    color: var(--terminal-green);
    font-size: 14px;
    line-height: 1.6;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(80, 250, 123, 0.3);
}

#biometric-scanner {
    text-align: center;
    border: 1px solid var(--terminal-green);
    padding: 20px;
    position: relative;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--terminal-green);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 15px var(--terminal-green);
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* --- GLAVNI INTERFEJS --- */
#main-interface {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    transition: opacity 1s ease;
}

.gate-logo {
    height: 100px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(249, 231, 177, 0.2));
}

/* STATUS BADGE */
.status-badge {
    color: var(--terminal-green);
    font-size: 12px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(80, 250, 123, 0.4);
    padding: 10px 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Prevents the orphaned bracket bug */
    font-weight: bold;
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.4);
}

.pulse-dot {
    height: 8px;
    width: 8px;
    background-color: var(--terminal-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--terminal-green);
    animation: pulse 1.5s infinite;
}

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

/* TASTERI (Bespoke Buttons) */
.bespoke-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gate-btn {
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.gate-btn:hover {
    border-color: var(--atelier-gold);
    color: var(--atelier-gold);
    background: rgba(249, 231, 177, 0.05);
    text-shadow: 0 0 12px rgba(249, 231, 177, 0.5);
}

/* FOOTER */
footer {
    margin-top: 60px;
    padding-bottom: 40px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.footer-icons a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-icons a:hover {
    color: var(--atelier-gold);
    text-shadow: 0 0 8px rgba(249, 231, 177, 0.5);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* --- MOBILE RESPONSIVE OVERRIDES (320px - 400px) --- */
@media (max-width: 400px) {
    .status-badge {
        font-size: 10px;
        padding: 10px 12px;
        letter-spacing: 0.5px;
    }
    .gate-btn {
        padding: 15px;
        font-size: 12px;
    }
    .footer-icons {
        gap: 10px;
        font-size: 10px;
    }
}