/* SPRINGLOCK SECURITY SYSTEMS — CORRUPTED */
/* [!] UNAUTHORIZED MODIFICATION BY ENTITY: GLITCHTRAP.EXE */
/* [!] FAZBEAR ENTERTAINMENT v3.1 */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;500;700;900&family=VT323&display=swap');

:root {
    --gt-gold: #c9a84c;
    --gt-gold-bright: #e8c060;
    --gt-gold-dark: #8a6a20;
    --gt-purple: #7b15d4;
    --gt-purple-dark: #4e0d85;
    --gt-purple-bright: #a040ff;
    --gt-green: #39ff14;
    --gt-green-dim: #1a8a08;
    --gt-red: #ff2020;
    --gt-dark: #060408;
    --gt-darker: #030206;
    --gt-mid: #120a1e;
    --gt-panel: rgba(18, 10, 30, 0.9);
    --text-primary: #dcc870;
    --text-secondary: #886e3a;
    --text-muted: #4a3d1e;
    --text-terminal: #c8ff80;
    --glow-gold: 0 0 20px rgba(201, 168, 76, 0.55);
    --glow-green: 0 0 15px rgba(57, 255, 20, 0.8);
    --glow-purple: 0 0 20px rgba(123, 21, 212, 0.55);
    --glow-red: 0 0 10px rgba(255, 32, 32, 0.5);
    --gradient-main: linear-gradient(135deg, var(--gt-gold), var(--gt-purple));
    --gradient-danger: linear-gradient(135deg, var(--gt-red), var(--gt-purple));
    --border-radius: 3px;
    --border-radius-lg: 6px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: var(--gt-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* CRT scanlines */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 9997;
}

/* Background Layers */
.bg-gradient {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg,
        var(--gt-darker) 0%,
        var(--gt-dark) 40%,
        var(--gt-mid) 100%
    );
    z-index: -3;
}

.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 15% 75%, rgba(123, 21, 212, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 25%, rgba(201, 168, 76, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(57, 255, 20, 0.02) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
    animation: bg-shift 20s ease-in-out infinite;
}

.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glitch text effect */
.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--gt-gold);
    animation: glitch-idle 6s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.glitch-text::before {
    color: #ff2020;
    animation: glitch-before 6s infinite;
    clip-path: inset(40% 0 45% 0);
}

.glitch-text::after {
    color: var(--gt-green);
    animation: glitch-after 6s infinite;
    clip-path: inset(60% 0 10% 0);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Status Bar */
.status-bar {
    background: rgba(255, 32, 32, 0.1);
    border-bottom: 1px solid rgba(255, 32, 32, 0.25);
    padding: 6px 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--gt-red);
    text-align: center;
    letter-spacing: 0.15em;
    animation: flicker 8s ease-in-out infinite;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
}

.status-bar-inner {
    display: inline-block;
    animation: marquee-scroll 35s linear infinite;
}

/* Header */
.site-header {
    position: fixed;
    left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 4, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    padding: 10px 0;
    animation: flicker 12s ease-in-out infinite;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-icon { font-size: 1.8rem; filter: drop-shadow(var(--glow-gold)); }

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

.logo-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    color: var(--gt-red);
    letter-spacing: 0.2em;
    margin-top: 2px;
    animation: flicker 3s ease-in-out infinite;
}

/* Navigation */
.main-nav { display: flex; gap: 4px; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--border-radius);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    transition: var(--transition);
    border: 1px solid transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--gt-gold);
    background: rgba(201, 168, 76, 0.07);
    border-color: rgba(201, 168, 76, 0.22);
}

.nav-link.active::after {
    content: '_';
    animation: cursor-blink 1s step-end infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: transparent;
    color: var(--gt-gold);
    border: 1px solid var(--gt-gold);
    box-shadow: var(--glow-gold), inset 0 0 12px rgba(201, 168, 76, 0.04);
}

.btn-primary:hover {
    background: rgba(201, 168, 76, 0.08);
    box-shadow: var(--glow-gold), inset 0 0 25px rgba(201, 168, 76, 0.08);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--gt-red);
    border: 1px solid var(--gt-red);
}

.btn-secondary:hover {
    background: rgba(255, 32, 32, 0.08);
    box-shadow: var(--glow-red);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Cards */
.card {
    background: rgba(18, 10, 30, 0.7);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.03), transparent);
    transition: left 0.6s ease;
}

.card:hover::before { left: 150%; }

.card:hover {
    border-color: rgba(201, 168, 76, 0.28);
    box-shadow: var(--glow-gold);
    transform: translateY(-3px);
}

.card-glass { backdrop-filter: blur(10px); }

/* Camera Feed Frame */
.cam-frame {
    border: 2px solid rgba(201, 168, 76, 0.28);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background: rgba(6, 4, 8, 0.92);
}

.cam-frame::before {
    content: 'LIVE ● REC';
    position: absolute;
    top: 8px; right: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    color: var(--gt-red);
    letter-spacing: 0.12em;
    z-index: 2;
    animation: flicker 2.2s ease-in-out infinite;
}

.cam-frame::after {
    content: '';
    position: absolute;
    top: -20%; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.15), transparent);
    animation: scan-line 4s linear infinite;
    z-index: 3;
}

/* Log Entry */
.log-entry {
    display: grid;
    grid-template-columns: 90px 100px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 13px 20px;
    background: rgba(18, 10, 30, 0.55);
    border: 1px solid rgba(201, 168, 76, 0.07);
    border-radius: var(--border-radius);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.84rem;
    transition: var(--transition);
}

.log-entry:hover {
    background: rgba(201, 168, 76, 0.04);
    border-color: rgba(201, 168, 76, 0.18);
}

.log-cam { color: var(--gt-gold); font-weight: 700; font-size: 0.88rem; }
.log-time { color: var(--text-secondary); font-size: 0.78rem; }
.log-desc { color: var(--text-primary); letter-spacing: 0.04em; }
.log-desc.corrupted { color: var(--gt-purple-bright); font-style: italic; }

.log-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.log-status.critical {
    color: var(--gt-red);
    border: 1px solid rgba(255, 32, 32, 0.28);
    background: rgba(255, 32, 32, 0.07);
}

.log-status.high {
    color: var(--gt-gold);
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.07);
}

.log-status.unknown {
    color: var(--gt-purple-bright);
    border: 1px solid rgba(160, 64, 255, 0.28);
    background: rgba(160, 64, 255, 0.07);
    animation: flicker 4s ease-in-out infinite;
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(6, 4, 8, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.form-input:focus {
    outline: none;
    border-color: var(--gt-gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.12), var(--glow-gold);
}

.form-input::placeholder { color: var(--text-muted); }

/* Search */
.search-box { position: relative; }

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: rgba(6, 4, 8, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    background: rgba(201, 168, 76, 0.09);
    color: var(--gt-gold);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--border-radius);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tag-red {
    background: rgba(255, 32, 32, 0.09);
    color: var(--gt-red);
    border-color: rgba(255, 32, 32, 0.2);
}

.tag-purple {
    background: rgba(160, 64, 255, 0.09);
    color: var(--gt-purple-bright);
    border-color: rgba(160, 64, 255, 0.2);
}

/* Footer */
.site-footer {
    background: rgba(3, 2, 6, 0.96);
    border-top: 1px solid rgba(201, 168, 76, 0.07);
    padding: 50px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--gt-gold);
    margin-bottom: 16px;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.footer-links a:hover { color: var(--gt-gold); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

/* Animations */
@keyframes bg-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    91% { opacity: 1; }
    92% { opacity: 0.45; }
    93% { opacity: 1; }
    95% { opacity: 0.8; }
    96% { opacity: 1; }
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes marquee-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

@keyframes scan-line {
    0% { top: -10%; }
    100% { top: 110%; }
}

@keyframes eye-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.9)); opacity: 1; }
    50% { filter: drop-shadow(0 0 22px rgba(57, 255, 20, 1)); opacity: 0.85; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(201, 168, 76, 0.7)); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch-idle {
    0%, 89% { transform: translate(0); filter: none; }
    90% { transform: translate(-1px, 1px); filter: hue-rotate(90deg); }
    91% { transform: translate(1px, -1px); filter: hue-rotate(-90deg); }
    92% { transform: translate(0); filter: none; }
    93% { transform: translate(2px, 0); }
    94% { transform: translate(0); }
    100% { transform: translate(0); filter: none; }
}

@keyframes glitch-before {
    0%, 89% { transform: translate(0); opacity: 0; }
    90% { transform: translate(-3px, 1px); opacity: 1; }
    91% { transform: translate(3px, -1px); opacity: 0.8; }
    92% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes glitch-after {
    0%, 89% { transform: translate(0); opacity: 0; }
    90% { transform: translate(3px, -1px); opacity: 0.8; }
    91% { transform: translate(-2px, 2px); opacity: 1; }
    92% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes ring-expand {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes corrupt-fade {
    from { opacity: 0; transform: skewX(-1deg) translateX(-5px); }
    to { opacity: 1; transform: skewX(0) translateX(0); }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.5s ease-out forwards; }

/* Hidden Miku signal — present in DOM, not rendered */
.miku-signal {
    display: none;
    color: #39c5bb;
    background: #ff6b9d;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .nav-link { padding: 6px 10px; font-size: 0.78rem; }
    .hero-grid { grid-template-columns: 1fr !important; text-align: center; }
    .container { padding: 0 12px; }
    .log-entry { grid-template-columns: auto 1fr; gap: 8px; }
    .log-time, .log-status { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gt-darker); }
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.55); }

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.28);
    color: var(--gt-gold-bright);
}
