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

:root {
    --urbex-red: #ff0000;
    --dark-bg: #050505;
    --border: #1a1a1a;
}

body { background-color: var(--dark-bg); color: #eee; font-family: 'Oswald', sans-serif; margin: 0; overflow-x: hidden; }

/* --- GLITCH --- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg); }
.glitch::before { left: 2px; text-shadow: -2px 0 #fff; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--urbex-red); clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }

@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 20px, 0); } 100% { clip: rect(40px, 9999px, 50px, 0); } }
@keyframes glitch-anim2 { 0% { clip: rect(30px, 9999px, 40px, 0); } 100% { clip: rect(70px, 9999px, 80px, 0); } }

/* --- ARCHIVE GRID --- */
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
@media (max-width: 1200px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }

.card { position: relative; height: 500px; background: #000; overflow: hidden; cursor: pointer; }
.img-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.4); transition: 0.8s; }
.card:hover img { filter: grayscale(0%) brightness(0.8); transform: scale(1.05); }

.card-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, #000 80%); box-sizing: border-box; }
.ref-id { font-family: 'Share Tech Mono'; color: var(--urbex-red); font-size: 0.7rem; }
.card h3 { margin: 5px 0; letter-spacing: 1px; }

/* DESCRIPTION BRIEF STYLE */
.loc-brief { 
    font-family: 'Share Tech Mono'; 
    font-size: 0.75rem; 
    color: #666; 
    margin: 0; 
    line-height: 1.4;
    max-width: 90%;
}

/* --- PERMANENT MISSING DATA STYLE --- */
.corrupted-card { cursor: default; opacity: 0.5; }
.missing-data-aesthetic { 
    background: repeating-linear-gradient(45deg, #000, #000 10px, #050505 10px, #050505 20px);
    font-family: 'Share Tech Mono';
    color: #222;
}

/* --- UI --- */
.flicker-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,0,0,0.03) 0%, transparent 90%); pointer-events: none; z-index: 2000; animation: flicker 6s infinite; }
@keyframes flicker { 0%, 10%, 100% { opacity: 1; } 11% { opacity: 0.4; } }
nav { display: flex; justify-content: space-between; padding: 20px 40px; border-bottom: 1px solid var(--border); background: #000; }
nav { position: relative; z-index: 2; }
.logo span { color: var(--urbex-red); font-weight: bold; }
.nav-links a { color: #555; text-decoration: none; margin-left: 20px; font-family: 'Share Tech Mono'; }
.nav-links a.active { color: var(--urbex-red); }
header { padding: 60px 40px; }
.status-bar { font-family: 'Share Tech Mono'; color: #333; font-size: 0.8rem; margin-top: 10px; }
.filter-container { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn { background: transparent; border: 1px solid #222; color: #555; padding: 10px 20px; cursor: pointer; font-family: 'Share Tech Mono'; margin-right: 0; }
.filter-btn:hover { color: #fff; border-color: var(--urbex-red); }
.filter-btn.active { color: #fff; border-color: var(--urbex-red); box-shadow: 0 0 12px rgba(255,0,0,0.2); }

/* --- HOME --- */
body.home { min-height: 100vh; position: relative; background-color: #070707; }
body.home::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05), transparent 55%), radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03), transparent 60%); opacity: 0.8; pointer-events: none; z-index: 0; }
body.home::after { content: ""; position: fixed; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 4px), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 8px); opacity: 0.25; mix-blend-mode: soft-light; pointer-events: none; z-index: 0; }
.home .flicker-overlay { display: none; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; padding: 50px 40px 30px; position: relative; z-index: 2; align-items: center; }
.home-layout { display: flex; justify-content: center; padding: 60px 40px 80px; }
.home-hero { background: rgba(0,0,0,0.92); border: 1px solid #1b1b1b; padding: 50px; box-shadow: 0 0 70px rgba(0,0,0,0.9); position: relative; overflow: hidden; max-width: 760px; width: 100%; }
.home-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #5b1b1b; box-shadow: 0 0 12px rgba(120,30,30,0.4); }
.simple-hero { background: rgba(0,0,0,0.9); }
.home-hero > * { position: relative; z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.home-title { font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: 2px; margin: 16px 0 20px; }
.home-title span { color: var(--urbex-red); }
.home-lead { font-family: 'Share Tech Mono'; color: #8a8a8a; line-height: 1.8; font-size: 0.95rem; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-actions .yt-btn { margin: 0; }
.yt-btn.primary { background: #7a1f1f; color: #fff; border-color: #7a1f1f; font-weight: 700; }
.hero-foot { margin-top: 25px; display: flex; flex-direction: column; gap: 6px; font-family: 'Share Tech Mono'; font-size: 0.7rem; color: #444; letter-spacing: 0.5px; }

.home-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 40px 40px; position: relative; z-index: 2; }
.home-card { background: rgba(0,0,0,0.9); border: 1px solid #1b1b1b; padding: 28px; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.section-title { font-family: 'Share Tech Mono'; color: #666; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 14px; }
.section-text { font-family: 'Share Tech Mono'; color: #7f7f7f; line-height: 1.7; font-size: 0.85rem; margin: 0 0 20px; }
.section-note { font-family: 'Share Tech Mono'; color: #555; font-size: 0.7rem; letter-spacing: 0.5px; margin-top: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-chip { border: 1px solid #1a1a1a; padding: 12px 14px; font-family: 'Share Tech Mono'; font-size: 0.7rem; color: #777; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.stat-value { display: block; color: #7a2a2a; font-size: 0.85rem; margin-bottom: 6px; }
.protocol { display: grid; gap: 10px; font-family: 'Share Tech Mono'; font-size: 0.75rem; color: #777; letter-spacing: 0.5px; }

.home-gallery { padding: 0 40px 50px; position: relative; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; display: block; min-height: 220px; border: 1px solid #1b1b1b; background-size: cover; background-position: center; overflow: hidden; text-decoration: none; color: #eee; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.2) 60%, transparent); }
.feature-overlay { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.feature-overlay h3 { margin: 6px 0; letter-spacing: 1px; }
.feature-overlay p { margin: 0; font-family: 'Share Tech Mono'; font-size: 0.7rem; color: #8a8a8a; line-height: 1.5; }

.home-cta { padding: 0 40px 70px; position: relative; z-index: 2; }
.cta-card { background: rgba(0,0,0,0.92); border: 1px solid #1b1b1b; padding: 30px; text-align: center; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.cta-card .section-text { margin-bottom: 20px; }

/* --- MAP FIELD --- */
.terrain-field { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.terrain-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 140px 140px; opacity: 0.2; }
.terrain-contours { position: absolute; inset: -10% -10% 0; background-image: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,0.04) 0 1px, transparent 1px 26px); opacity: 0.3; }
.terrain-stains { position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.08), transparent 45%), radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05), transparent 50%), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 10px); opacity: 0.5; }


/* --- LOCATION PAGE STYLES --- */
.slider-wrapper { position: relative; width: 100%; height: 70vh; background: #000; border-bottom: 2px solid var(--urbex-red); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slider-img { width: 100%; height: 100%; object-fit: contain; display: none; animation: fadeIn 0.5s; }
.slider-img.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; padding: 40px; }
.photo-grid img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(40%) brightness(0.7); border: 1px solid #1a1a1a; transition: 0.5s; cursor: pointer; }
.photo-grid img:hover { filter: grayscale(0%) brightness(1); border-color: var(--urbex-red); }
.yt-btn { display: inline-block; padding: 15px 30px; border: 1px solid var(--urbex-red); color: var(--urbex-red); text-decoration: none; font-family: 'Share Tech Mono'; margin: 20px 40px; }
.slider-nav { position: absolute; top: 50%; background: rgba(0,0,0,0.8); color: white; border: 1px solid var(--urbex-red); padding: 15px; cursor: pointer; z-index: 10; font-family: 'Share Tech Mono'; }

@media (max-width: 700px) {
    nav { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
    .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
    header { padding: 40px 20px; }
    .filter-btn { margin-right: 0; }
    .home-layout { padding: 30px 20px 60px; }
    .home-hero { padding: 30px 24px; }
    .home-title { font-size: 2.2rem; }
    .home-lead { font-size: 0.85rem; }
    .terrain-grid { background-size: 100px 100px; }
    .home-sections { grid-template-columns: 1fr; padding: 0 20px 30px; }
    .stats-row { grid-template-columns: 1fr; }
    .home-gallery { padding: 0 20px 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .home-cta { padding: 0 20px 60px; }
    .card { height: 360px; }
    .slider-wrapper { height: 50vh; }
    .photo-grid { grid-template-columns: 1fr; }
}
