/* ─────────────────────────────────────────────────────────
   YourSMP · style.css
   Theme: Dark cave / deep underground · pixel brutalism
   ───────────────────────────────────────────────────────── */

/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --bg:          #07060f;
  --bg-2:        #0d0b1a;
  --bg-3:        #110f20;
  --surface:     #18153a;
  --border:      #2a2050;
  --border-glow: #5c3fa8;

  --accent:      #b86fff;
  --accent-dim:  #6a28c8;
  --accent-glow: rgba(184, 111, 255, 0.18);

  --red:         #ff4060;
  --gold:        #e8c0ff;

  --text-1:  #ede8ff;
  --text-2:  #9080c0;
  --text-3:  #4a3a70;

  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'Rajdhani', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;

  --radius:  4px;
  --radius-lg: 8px;
  --trans:   250ms ease;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── PARTICLE CANVAS ─────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ─── HELPERS ─────────────────────────────────────────── */
.pixel-text { font-family: var(--font-pixel); }
.accent     { color: var(--accent); }
.glow-text  { text-shadow: 0 0 24px var(--accent), 0 0 60px var(--accent-dim); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  border: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}

.btn-primary {
  background: var(--accent);
  color: #0d0820;
}
.btn-primary:hover {
  background: #cb9aff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,111,255,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-glow);
}
.btn-ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(to bottom, rgba(7,12,7,0.95) 0%, transparent 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(30,48,32,0.4);
}

.nav-brand {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--trans);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--trans);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

/* Vignette + noise overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184,111,255,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(7,12,7,0.9) 0%, transparent 50%);
  pointer-events: none;
}

/* Pixel grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,111,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,111,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
  background: rgba(61,255,90,0.06);
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-logo-wrap {
  margin-bottom: 2.5rem;
  animation: fadeDown 0.9s ease 0.1s both;
}

.logo-placeholder {
  width: 300px;
  height: 180px;
  border: 2px dashed var(--border-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.logo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(184,111,255,0.03) 8px,
    rgba(184,111,255,0.03) 16px
  );
}

.logo-placeholder-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--accent);
}

.logo-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.4rem;
}

.logo-img {
  max-width: 340px;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(184,111,255,0.35));
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  animation: fadeDown 1s ease 0.2s both;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fadeDown 1s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeDown 1s ease 0.4s both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1rem;
  color: var(--text-3);
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── ABOUT CARDS ─────────────────────────────────────── */
.about-section {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  opacity: 0;
  transform: translateY(20px);
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--trans), box-shadow var(--trans);
}

.about-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184,111,255,0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-1);
}

.about-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── LEAKS / SCREENSHOTS ─────────────────────────────── */
.leaks-section {
  background: var(--bg-3);
}

.leaks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.leak-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: border-color var(--trans), transform var(--trans);
  opacity: 0;
  transform: scale(0.97);
}

.leak-card.wide {
  grid-column: span 2;
  aspect-ratio: 32/10;
}

.leak-card.visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--trans);
}

.leak-card:hover {
  border-color: var(--accent-dim);
  transform: scale(1.02);
}

/* Image inside leak card */
.leak-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder (replace with img) */
.leak-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-3);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(184,111,255,0.025) 10px,
    rgba(184,111,255,0.025) 20px
  );
}

.leak-placeholder .pixel-text {
  font-size: 0.55rem;
  text-align: center;
  line-height: 1.8;
  color: var(--text-3);
}

.leak-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Classified blur overlay on data-redacted="true" cards */
.leak-card[data-redacted="true"] > img,
.leak-card[data-redacted="true"] .leak-placeholder {
  filter: blur(6px) brightness(0.4);
  transition: filter 0.3s ease;
}

.leak-card[data-redacted="true"]:hover > img,
.leak-card[data-redacted="true"]:hover .leak-placeholder {
  filter: blur(3px) brightness(0.6);
}

.leak-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

.leak-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}

.leak-classified {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--red);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--red);
  background: rgba(255,64,64,0.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(184,111,255,0.2);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity var(--trans);
}

.lightbox-close:hover { opacity: 1; }

#lightboxCaption {
  font-family: var(--font-mono);
  color: var(--text-2);
  font-size: 0.8rem;
}

/* ─── IP SECTION ──────────────────────────────────────── */
.ip-section {
  background: var(--bg-2);
  text-align: center;
}

.ip-block {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Locked state ── */
.ip-locked {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

/* Hide live state by default */
.ip-live { display: none; }

/* Show live state when data-live="true" */
.ip-block[data-live="true"] .ip-locked { display: none; }
.ip-block[data-live="true"] .ip-live   { display: block; }

.lock-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.lock-text {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.lock-sub {
  color: var(--text-2);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.coming-soon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  background: rgba(184,111,255,0.05);
}

.cs-label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
  animation: pulse 2.5s infinite;
}

/* ── Live state ── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--accent);
  background: rgba(61,255,90,0.08);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.ip-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.ip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.2rem 2rem;
  margin: 0 auto 1rem;
  max-width: 480px;
}

.ip-address {
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.05em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #0d0820;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  transition: background var(--trans), transform var(--trans);
}

.copy-btn:hover {
  background: #cb9aff;
  transform: scale(1.04);
}

.copy-btn.copied {
  background: var(--accent-dim);
  color: var(--text-1);
}

.ip-version {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.footer-tagline,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: color var(--trans);
}

.footer-link:hover {
  color: var(--accent);
}

/* ─── KEYFRAMES ───────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,255,90,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(61,255,90,0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.2rem; }
  .nav-links { gap: 1.2rem; }

  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-title { font-size: 1.8rem; }

  .section { padding: 4rem 1.5rem; }
  .section-title { font-size: 2rem; }

  .leaks-grid { grid-template-columns: 1fr 1fr; }
  .leak-card.wide { grid-column: span 2; }

  .notify-form { flex-direction: column; align-items: stretch; }
  .notify-input { min-width: unset; }
}

@media (max-width: 500px) {
  .leaks-grid { grid-template-columns: 1fr; }
  .leak-card.wide { grid-column: span 1; aspect-ratio: 16/10; }
  .nav-links { display: none; }
  .ip-display { flex-direction: column; }
}
