/*
Theme Name: RaveRadar Underground
Theme URI: https://raveradar.ac8.ru
Description: Dark underground child theme for Hello Elementor. Graffiti, tags, neon acid, zine-paste aesthetic. Built for use with Elementor page builder — every section is rewritable via drag-and-drop while keeping the brand look intact.
Template: hello-elementor
Author: Acre Studio
Author URI: https://acrestudio.ru
Version: 0.1.0
License: GPL-2.0-or-later
Text Domain: raveradar
*/

/* === Design tokens ==================================================== */
:root {
  /* Surfaces */
  --rr-bg:        #0a0a0a;   /* near-black canvas */
  --rr-bg-2:      #131313;   /* lifted panel */
  --rr-bg-3:      #1c1c1c;   /* card */
  --rr-line:      rgba(255,255,255,0.08);
  --rr-line-2:    rgba(255,255,255,0.16);

  /* Text */
  --rr-text:      #f5f5f4;   /* primary */
  --rr-muted:     #8a8a88;   /* secondary */
  --rr-dim:       #565654;   /* tertiary */

  /* Accents — acid neon + spray red */
  --rr-acid:      #d9ff00;   /* electric yellow-green */
  --rr-acid-hot:  #baff00;
  --rr-spray:     #ff2d2d;   /* spray-paint red */
  --rr-ink:       #4a7dff;   /* marker blue */

  /* Radii */
  --rr-r-sm:      4px;
  --rr-r-md:      10px;
  --rr-r-lg:      18px;

  /* Spacing */
  --rr-gap:       clamp(16px, 2vw, 32px);
  --rr-pad-x:     clamp(20px, 5vw, 96px);

  /* Type */
  --rr-display:   "Permanent Marker", "Rubik Mono One", "Impact", sans-serif;
  --rr-heading:   "Bungee Inline", "Bungee", "Arial Black", sans-serif;
  --rr-body:      "Space Grotesk", "Inter", system-ui, sans-serif;
  --rr-mono:      "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Motion */
  --rr-ease:      cubic-bezier(.2, .8, .2, 1);
}

/* === Base reset ======================================================== */
html {
  background: var(--rr-bg);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: var(--rr-body);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
::selection { background: var(--rr-acid); color: #000; }

/* Subtle noise texture on the whole page — pure CSS, no image request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Everything else sits above the noise */
.elementor, main, header, footer { position: relative; z-index: 1; }

/* === Typography ======================================================== */
h1, h2, h3, .rr-display {
  font-family: var(--rr-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}
h1 { font-size: clamp(56px, 11vw, 180px); }
h2 { font-size: clamp(40px, 7vw, 104px); }
h3 { font-size: clamp(28px, 4vw, 56px); }

.rr-marker {
  font-family: var(--rr-display);
  font-weight: 400;
  text-transform: none;
  color: var(--rr-acid);
  transform: rotate(-2deg);
  display: inline-block;
}
.rr-mono {
  font-family: var(--rr-mono);
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

/* Links */
a {
  color: var(--rr-text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s var(--rr-ease);
}
a:hover { color: var(--rr-acid); }

/* === Utility classes Elementor can target ============================= */
.rr-tape {
  display: inline-block;
  background: var(--rr-acid);
  color: #000;
  padding: 4px 14px 5px;
  font-family: var(--rr-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.rr-tape--red   { background: var(--rr-spray); color: #fff; }
.rr-tape--blue  { background: var(--rr-ink);   color: #fff; }
.rr-tape--ghost { background: transparent; color: var(--rr-acid); border: 1px dashed var(--rr-acid); }

.rr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--rr-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--rr-acid);
  color: #000;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s var(--rr-ease), background 0.2s var(--rr-ease);
  box-shadow: 4px 4px 0 #000;
}
.rr-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: var(--rr-acid-hot);
  color: #000;
}
.rr-btn--ghost {
  background: transparent;
  color: var(--rr-text);
  border: 2px solid var(--rr-text);
  box-shadow: none;
}
.rr-btn--ghost:hover {
  background: var(--rr-text);
  color: #000;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--rr-acid);
}

.rr-card {
  background: var(--rr-bg-3);
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-r-md);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--rr-ease), border-color 0.3s var(--rr-ease);
}
.rr-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--rr-acid);
}
.rr-card--tilt { transform: rotate(-0.8deg); }
.rr-card--tilt:nth-child(2n) { transform: rotate(0.8deg); }

/* "Spray stroke" underline — SVG clip-path, no image */
.rr-spray-line {
  position: relative;
  display: inline-block;
}
.rr-spray-line::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -4px;
  height: 10px;
  background: var(--rr-acid);
  clip-path: polygon(0% 60%, 3% 40%, 7% 55%, 12% 30%, 18% 50%, 24% 35%, 30% 55%, 37% 40%, 44% 60%, 52% 35%, 60% 55%, 68% 40%, 76% 55%, 84% 30%, 92% 50%, 100% 40%, 100% 100%, 0% 100%);
  opacity: 0.9;
}

/* Sticker label — rotated chip */
.rr-sticker {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  color: #000;
  font-family: var(--rr-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
  clip-path: polygon(
    2% 0%, 98% 1%, 100% 96%, 96% 100%, 3% 99%, 0% 5%
  );
}

/* Marquee of tags for hero backdrop */
.rr-tag-marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--rr-display);
  font-size: clamp(80px, 14vw, 240px);
  color: transparent;
  -webkit-text-stroke: 1px var(--rr-line-2);
  line-height: 0.9;
  opacity: 0.35;
  user-select: none;
}
.rr-tag-marquee__track {
  display: inline-block;
  animation: rr-marq 40s linear infinite;
}
@keyframes rr-marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* "Graffiti wall" section background — layered tags */
.rr-wall {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(217,255,0,0.04), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,45,45,0.04), transparent 50%),
    var(--rr-bg);
}
.rr-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><g fill='none' stroke='%23333' stroke-width='1' stroke-dasharray='4 6'><path d='M20 80 L80 40 L160 90 L240 50' /><path d='M40 200 Q120 160 200 210 T380 200' /><path d='M10 320 L90 280 L180 340 L260 300 L360 360' /></g></svg>");
  background-size: 600px 600px;
  opacity: 0.25;
  pointer-events: none;
}

/* Hide Hello theme's default header/footer — Elementor will build them */
.site-header,
.site-footer { display: none !important; }

/* Hide page title on the front page — the hero has its own H1 */
.page .page-header,
.page .entry-header,
.home .page-header,
.home .entry-header { display: none !important; }

/* Pull content up against viewport edge since we kill the header */
.site-main > article > .entry-content,
.site-main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* === Events calendar tweaks =========================================== */
.tribe-events,
.tribe-events * { color: var(--rr-text) !important; }
.tribe-events .tribe-events-calendar-list__event,
.tribe-events-list .tribe-events-event {
  background: var(--rr-bg-3) !important;
  border: 1px solid var(--rr-line) !important;
  border-radius: var(--rr-r-md);
  padding: 24px;
}

/* === Mobile ============================================================ */
@media (max-width: 767px) {
  .rr-btn { padding: 12px 20px; font-size: 14px; }
  .rr-card { padding: 20px; }
}

/* === Accessibility ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .rr-tag-marquee__track { animation: none; }
  .rr-card, .rr-btn, a { transition: none; }
}
