/* ===== VARIABLES ===== */
:root {
  --bg: #050505;
  --panel: rgba(12,12,12,.88);
  --panel-hover: rgba(25,25,25,.95);
  --text: #f5f5f5;
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.18);
  --gold: #c9b896;
  --neon: #5effff;
  --shadow: 0 0 10px rgba(255,255,255,0.2);
}

* { box-sizing: border-box; margin:0; padding:0; }
html { background: transparent; }
body {
  background: transparent;
  color:var(--text);
  font-family:system-ui, sans-serif;
  min-height:100vh;
  overflow-x:hidden;
  letter-spacing: 0.03em;
}
a { color:inherit; text-decoration:none; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/cool-stars.png") center/cover no-repeat;
  opacity: 0.65;
}

.logo, .section-title { font-family:"UnifrakturCook", serif; letter-spacing: 0.06em; }
.section-title {
  font-size:1.6rem;
  letter-spacing:0.4em;
  text-transform:uppercase;
  margin-bottom:2rem;
  color:var(--gold);
}

.sidebar {
  position:fixed; left:0; top:0;
  width:250px; height:100vh;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(15px);
  border-right:1px solid var(--line);
  padding-top:90px;
  display:flex; flex-direction:column;
  z-index:100;
  transition:.35s ease;
}
.sidebar.collapsed { transform:translateX(-100%); }
.sidebar a {
  padding:16px 32px;
  color:#bbb;
  font-size:.95rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  transition:.2s;
}
.sidebar a:hover, .sidebar a.active {
  background:rgba(255,255,255,.08);
  color:white;
}

.sidebar-toggle {
  position:fixed; top:18px; left:18px; z-index:101;
  background:#111; color:#c9b896; border:1px solid #333;
  font-size:1.5rem; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border-radius:6px;
  transition:.25s;
}
.sidebar-toggle.open { background:#444; color:#f0e6d2; border-color:#777; }

.main-content {
  margin-left:250px;
  padding:80px 40px 40px 40px;
  width:calc(100% - 250px);
}
.sidebar.collapsed ~ .main-content { margin-left:0; width:100%; }

.grid, .gallery-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:20px;
  width:100%;
}
.card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  min-height:100%;
  transition:.3s ease;
  margin:0 auto;
}
.card:hover { transform:translateY(-6px); background:var(--panel-hover); border-color:rgba(255,255,255,.35); }
.card-img {
  width:100%; height:260px; overflow:hidden; background:#000;
  display:flex; align-items:center; justify-content:center;
}
.card-img img { width:100%; height:100%; object-fit:cover; display:block; transition:.4s; }
.card:hover img { transform:scale(1.04); }
.card-body { padding:25px; text-align:center; }
.card-body h3 { font-size:1.2rem; margin-bottom:12px; letter-spacing:.1em; }
.card-body p { color:var(--muted); line-height:1.6; font-size:.95rem; letter-spacing:0.02em; }

.card-embed { width:100%; aspect-ratio:16/9; }
.card-embed iframe { width:100%; height:100%; border:0; }

button {
  margin-top:18px; padding:10px 24px;
  background:#090909; color:white;
  border:1px solid var(--line); cursor:pointer;
  letter-spacing:.18em; transition:.25s;
}
button:hover { background:white; color:black; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.gallery-page .card { background: #111; border-radius: 8px; cursor: pointer; }
.gallery-page .card-img { height: 280px; }
.gallery-page .card-img img { object-fit: contain; }
.gallery-page .card-body { padding: 15px; }

.modal {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: transparent; z-index: 200; overflow: hidden;
}
.modal-content {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
}
.modal-slide {
  min-width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; scroll-snap-align: start;
}
.modal-slide img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.modal-caption { color: #ddd; font-size: 1.1rem; margin-top: 20px; text-align: center; }
.modal-close { position: absolute; top: 30px; right: 40px; color: #ddd; font-size: 2.5rem; cursor: pointer; }

.blog-page .section-title {
  font-family: 'UnifrakturCook', cursive;
  color: var(--neon);
  font-size: clamp(5rem, 15vw, 9rem);
  margin: 2rem 0 4rem;
  text-shadow: 0 0 20px var(--neon);
}
.blog-modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.97); z-index: 9999;
}
.blog-modal.open { display: flex; align-items: center; justify-content: center; }
.blog-modal-content {
  width: 100%; max-width: 900px; height: 100vh; background: #141414;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.blog-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2.8rem; color: #fff; background: none; border: none; cursor: pointer; }
.blog-body { flex: 1; overflow-y: auto; padding: 3rem; font-size: 1.25rem; line-height: 1.9; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px; max-width: 1400px; margin: 0 auto; padding-bottom: 4rem;
}
.video-card {
  background: #111; border-radius: 12px; overflow: hidden;
  border: 1px solid #222; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px var(--neon); border-color: var(--neon); }
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-info { padding: 1.2rem; }
.video-info h3 { font-family: 'UnifrakturCook', cursive; color: #f0e6d2; font-size: 1.3rem; letter-spacing:0.05em; }
.video-info p { color: #aaa; font-size: 0.9rem; letter-spacing:0.02em; }
.empty-message {
  grid-column: 1/-1; text-align: center; color: #555;
  font-family: 'Special Elite', monospace; font-size: 1.5rem;
  padding: 4rem; border: 2px dashed #333; border-radius: 12px;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.podcasts-page audio { width: 100%; margin-top: 0.8rem; filter: invert(0.9); }
.podcasts-page .card-embed iframe { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.music-page .card-embed iframe { border-radius: 8px; box-shadow: var(--shadow); width: 100%; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px; max-width: 1200px; margin: 0 auto; padding-bottom: 4rem;
}
.product-card {
  background: rgba(20,20,20,0.9); backdrop-filter: blur(10px);
  border: 1px solid #333; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px var(--neon); border-color: var(--neon); }
.product-image { width: 100%; height: 220px; background-size: cover; background-position: center; }
.product-info { padding: 1.2rem; flex: 1; }
.product-info h3 { font-family: 'UnifrakturCook', cursive; color: #f0e6d2; font-size: 1.4rem; letter-spacing:0.05em; }
.product-info p { color: #aaa; font-size: 0.95rem; letter-spacing:0.02em; }
.price { font-family: 'Special Elite', monospace; color: var(--neon); font-size: 1.3rem; margin-bottom: 1rem; }
.buy-btn {
  background: transparent; border: 1.5px solid var(--text); color: var(--text);
  padding: 0.6rem; font-family: 'UnifrakturCook', cursive; font-size: 1.1rem;
  letter-spacing: 2px; border-radius: 6px; cursor: pointer; text-align: center;
  transition: all 0.3s;
}
.buy-btn:hover { background: var(--text); color: #000; box-shadow: 0 0 20px var(--text); }
.empty-shop {
  grid-column: 1/-1; text-align: center; color: #666; font-size: 1.5rem;
  padding: 4rem; border: 2px dashed #333; border-radius: 12px;
}

.contributors-page .card-body button {
  text-shadow: var(--shadow); background: rgba(255,255,255,0.05);
  border: 1px solid var(--text); color: var(--text); transition: all 0.2s;
}
.contributors-page .card-body button:hover { background: var(--text); color: #000; }

.hashtags a.hashtag {
  display: inline-block; margin: 0.2rem 0.3rem 0 0;
  padding: 0.2rem 0.5rem; border: 1px solid var(--text); border-radius: 4px;
  font-size: 0.75rem; color: var(--text); transition: all 0.2s;
}
.hashtags a.hashtag:hover { background: var(--text); color: #000; }

.pdf-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); z-index: 300; flex-direction: column;
}
.pdf-modal.open { display: flex; }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #111; }
.pdf-toolbar button { background: transparent; border: 1px solid #666; color: #c9b896; padding: 0.4rem 0.8rem; margin: 0 0.2rem; border-radius: 4px; cursor: pointer; }
.pdf-page-info { color: #ccc; font-family: 'Special Elite', monospace; }
.pdf-canvas-container { flex: 1; overflow: auto; display: flex; justify-content: center; padding: 1rem; }
#pdf-canvas { max-width: 100%; box-shadow: 0 0 20px rgba(0,0,0,0.8); }

.live-page .main-content { max-width: 900px; margin: 0 auto; padding: 4.5rem 2.5rem; }
.live-container { background: rgba(0,0,0,0.6); border: 1px solid #222; border-radius: 12px; padding: 2rem; text-align: center; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; font-family: 'Special Elite', monospace; color: #4ade80; margin-bottom: 2rem; }
.live-dot { width: 10px; height: 10px; background: #4ade80; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
.stream-embed { width: 100%; padding-bottom: 56.25%; position: relative; background: #111; border-radius: 8px; overflow: hidden; margin-bottom: 2rem; }
.stream-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.chat-box { width: 100%; height: 300px; background: #111; border: 1px solid #333; border-radius: 8px; color: #f0e6d2; padding: 1rem; overflow-y: auto; font-family: 'Special Elite', monospace; margin-bottom: 1rem; }
.chat-input-row { display: flex; gap: 0.5rem; }
.chat-input-row input { flex: 1; padding: 0.7rem; background: #111; border: 1px solid #333; color: #f0e6d2; border-radius: 8px; }
.chat-input-row button { background: #c9b896; color: #000; border: none; padding: 0.7rem 1.2rem; border-radius: 8px; }

.rolodex-title { font-family: 'UnifrakturCook', cursive; color: var(--neon); font-size: clamp(2.5rem, 7vw, 4rem); text-align: center; margin-bottom: 1.5rem; text-shadow: 0 0 10px var(--neon); }
.category-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.category-btn { background: transparent; border: 1px solid #333; color: #aaa; padding: 0.3rem 0.8rem; border-radius: 20px; font-family: 'Special Elite', monospace; font-size: 0.7rem; cursor: pointer; transition: all 0.2s; }
.category-btn.active, .category-btn:hover { background: #c9b896; color: #000; border-color: #c9b896; }
.carousel-stage { position: relative; width: 100%; max-width: 700px; margin: 0 auto 2rem; height: 360px; overflow: hidden; perspective: 1000px; }
.carousel-track { display: flex; align-items: center; justify-content: center; height: 100%; transform-style: preserve-3d; }
.carousel-card { position: absolute; width: 200px; height: 260px; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.6); cursor: pointer; opacity: 0; pointer-events: none; transition: transform 0.5s, opacity 0.5s, border-color 0.2s; }
.carousel-card.active { opacity: 1; pointer-events: auto; border-color: #c9b896; }
.carousel-card.left, .carousel-card.right { opacity: 0.5; }
.card-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: #c9b896; margin-bottom: 0.5rem; font-family: 'Special Elite', monospace; }
.card-name { font-family: 'UnifrakturCook', cursive; color: #f0e6d2; font-size: 1.4rem; letter-spacing:0.05em; }
.card-desc { color: #aaa; font-size: 0.85rem; margin-bottom: 1rem; }
.card-visit-hint { color: #666; font-size: 0.75rem; }
.rolodex-controls { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.nav-btn { background: transparent; border: 1px solid #333; color: #c9b896; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nav-btn:hover { background: rgba(201,184,150,0.1); border-color: #c9b896; }
.detail-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 200; justify-content: center; align-items: center; }
.detail-modal.open { display: flex; }
.detail-card { background: #1a1a1a; border: 1px solid #c9b896; border-radius: 12px; padding: 2rem; max-width: 400px; width: 90%; text-align: center; }
.detail-card h2 { font-family: 'UnifrakturCook', cursive; color: #f0e6d2; }
.detail-card p { color: #ccc; }
.detail-card .detail-category { color: #c9b896; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; }
.detail-card a.button { display: inline-block; margin-top: 1rem; background: transparent; border: 1px solid #c9b896; color: #c9b896; padding: 0.5rem 1.5rem; text-decoration: none; border-radius: 6px; font-family: 'UnifrakturCook', cursive; }
.detail-card a.button:hover { background: #c9b896; color: #000; }
.modal-close { background: none; border: none; color: #c9b896; font-size: 1.2rem; cursor: pointer; }

.admin-section { margin-bottom: 2rem; border: 1px solid #222; padding: 1.5rem; border-radius: 12px; background: rgba(0,0,0,0.3); }
.admin-section h2 { font-family: 'UnifrakturCook', cursive; color: var(--neon); font-size: 2rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.admin-delete-btn { background: crimson; border: none; color: white; padding: 2px 8px; cursor: pointer; }
.admin-edit-btn { background: #c9b896; border: none; color: black; padding: 2px 8px; cursor: pointer; }
form label { display: block; margin-top: 0.8rem; color: #f0e6d2; }
form input, form textarea { width: 100%; padding: 0.5rem; background: #111; border: 1px solid #333; color: #f0e6d2; border-radius: 4px; }
form textarea { min-height: 120px; }
.add-btn { background: #c9b896; border: none; color: black; padding: 0.3rem 0.8rem; margin-bottom: 0.5rem; cursor: pointer; }

/* ===== GATE PAGE ===== */
body.gate-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  background: transparent !important;
}
.gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 20px;
  background: transparent !important;
}
#enter {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}
#ufo {
  display: block;
  max-width: 280px;
  height: auto;
  transition: transform 0.15s, filter 0.15s;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.4));
}
#ufo.pressed {
  transform: scale(0.92);
  filter: drop-shadow(0 0 40px #fff);
}
.gate.fade {
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

/* HOME PAGE */
.home-page {
  padding-top: 4.5rem;
  padding-left: 20px;
}

/* MOBILE */
@media(max-width:900px) {
  .sidebar { width:80%; }
  .main-content { margin-left:0; width:100%; padding:80px 20px 40px; }
  .grid, .gallery-grid { grid-template-columns:1fr; }
  .card-img { height:220px; }
}