/*
Theme Name: Rave R Us
Theme URI: https://raversrus.com
Author: Ravers R Us
Author URI: https://raversrus.com
Description: A colorful nostalgic rave-inspired WordPress theme with a playful toy-store feel.
Version: 1.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rave-r-us
*/

:root {
  --rru-red:       #E31837;
  --rru-yellow:    #FFC907;
  --rru-blue:      #0057A8;
  --rru-green:     #009A44;
  --rru-black:     #1A1A1A;
  --rru-white:     #FFFFFF;
  --rru-bg:        #FFFFFF;
  --rru-text:      #1A1A1A;
  --rru-border:    3px solid #1A1A1A;
  --rru-shadow:    4px 4px 0 #1A1A1A;
  --rru-max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rru-text);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--rru-bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-wrap { overflow: hidden; }
.rru-container {
  width: min(var(--rru-max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* ── Rainbow Stripe ── */
.rru-rainbow-stripe {
  height: 8px;
  background: linear-gradient(to right,
    var(--rru-red)    0%,   var(--rru-red)    25%,
    var(--rru-yellow) 25%,  var(--rru-yellow) 50%,
    var(--rru-blue)   50%,  var(--rru-blue)   75%,
    var(--rru-green)  75%,  var(--rru-green)  100%
  );
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rru-white);
  border-bottom: var(--rru-border);
  box-shadow: 0 4px 0 var(--rru-black);
}

.rru-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

/* ── Site Branding ── */
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rru-star {
  width: 60px;
  height: 60px;
  background: var(--rru-yellow);
  color: var(--rru-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  transform: rotate(-10deg);
  flex-shrink: 0;
}

/* ── Multicolor Logo Letters ── */
.site-title {
  margin: 0;
  line-height: 1;
}

.site-title a {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rru-black);
}

.letter-r1  { color: var(--rru-red); }
.letter-a   { color: var(--rru-blue); }
.letter-v   { color: var(--rru-yellow); -webkit-text-stroke: 1px var(--rru-black); }
.letter-e   { color: var(--rru-green); }
.letter-r2  { color: var(--rru-red); }
.letter-s1  { color: var(--rru-blue); }
.letter-sep { display: inline-block; width: 0.25em; }
.letter-back-r { color: var(--rru-red); }
.letter-u   { color: var(--rru-yellow); -webkit-text-stroke: 1px var(--rru-black); }
.letter-s2  { color: var(--rru-green); }

.site-description {
  margin: 5px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  font-weight: 700;
}

/* ── Navigation ── */
.main-navigation .menu,
.rru-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation a,
.rru-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--rru-yellow);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  font-weight: 900;
  font-size: 14px;
  color: var(--rru-black);
  text-transform: uppercase;
  transition: transform 0.1s, box-shadow 0.1s;
}

.main-navigation a:hover,
.rru-pill-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
  background: var(--rru-red);
  color: #fff;
}

.rru-mobile-toggle {
  display: none;
  background: var(--rru-red);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.rru-mobile-toggle:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
}

/* ── Hero Section ── */
.hero-home {
  position: relative;
  padding: 60px 0 50px;
  background: var(--rru-white);
  border-bottom: var(--rru-border);
}

.rru-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

/* Hero badge */
.rru-badge {
  display: inline-block;
  background: var(--rru-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 18px;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(-2deg);
}

.hero-title {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--rru-black);
}
.hero-title span  { display: block; }
.hero-title .red  { color: var(--rru-red); }
.hero-title .yellow {
  color: var(--rru-yellow);
  -webkit-text-stroke: 1px var(--rru-black);
}
.hero-title .blue  { color: var(--rru-blue); }
.hero-title .green { color: var(--rru-green); }

.hero-copy,
.entry-content,
.entry-summary {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.rru-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

/* ── Buttons ── */
.rru-btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--rru-border);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--rru-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.1s, box-shadow 0.1s;
  border-radius: 0;
}

.rru-btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
}

.rru-btn-primary,
.wp-block-button__link,
input[type="submit"] {
  background: var(--rru-red);
  color: #fff;
}

.rru-btn-secondary,
button {
  background: var(--rru-blue);
  color: #fff;
}

/* ── Stats ── */
.rru-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rru-stat {
  padding: 20px;
  background: var(--rru-yellow);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  text-align: center;
}

.rru-stat:nth-child(2) { background: var(--rru-blue); color: #fff; }
.rru-stat:nth-child(3) { background: var(--rru-green); color: #fff; }

.rru-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 4px;
}

.rru-stat span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Ticket Card ── */
.rru-card.ticket-card {
  background: var(--rru-yellow);
  color: var(--rru-black);
  border: var(--rru-border);
  box-shadow: 6px 6px 0 var(--rru-black);
  padding: 28px;
  transform: rotate(2deg);
}

.rru-card.ticket-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--rru-black);
}

.rru-ticket {
  background: var(--rru-white);
  padding: 18px;
  border: 3px dashed var(--rru-black);
  margin-top: 12px;
}

.rru-ticket p {
  color: var(--rru-black);
  font-size: 15px;
  margin: 6px 0;
  font-weight: 700;
}

/* ── Sections ── */
.home-section,
.site-main {
  padding-bottom: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2,
.entry-title,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  font-weight: 900;
  color: var(--rru-black);
  letter-spacing: 1px;
}

.section-header h2 {
  display: inline-block;
  background: var(--rru-blue);
  color: var(--rru-yellow);
  padding: 10px 28px;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
}

.section-header p,
.archive-description {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 16px;
  color: #444;
}

/* ── Cards Grids ── */
.rru-cards-grid,
.posts-grid,
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Event Cards ── */
.rru-event,
.post-card,
.widget {
  background: var(--rru-white);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.rru-event:hover,
.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rru-black);
}

.rru-event-top {
  min-height: 160px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background: var(--rru-red);
}

.rru-event-top.alt-1 { background: var(--rru-green); }
.rru-event-top.alt-2 { background: var(--rru-blue); }

.rru-event-top h3 {
  color: #fff;
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card .entry-title {
  font-size: 20px;
  color: var(--rru-black);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.rru-event-body,
.post-card {
  padding: 20px;
}

.rru-date,
.post-meta {
  color: var(--rru-red);
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1px;
}

.rru-mini-btn,
.read-more-link {
  display: inline-block;
  background: var(--rru-yellow);
  color: var(--rru-black);
  padding: 10px 18px;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 14px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.rru-mini-btn:hover,
.read-more-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
}

/* ── Features Grid ── */
.rru-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rru-feature {
  padding: 28px 20px;
  text-align: center;
  background: var(--rru-white);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
}

.rru-feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rru-black);
}

.rru-feature:nth-child(4n+1) { background: var(--rru-red); color: #fff; }
.rru-feature:nth-child(4n+2) { background: var(--rru-yellow); color: var(--rru-black); }
.rru-feature:nth-child(4n+3) { background: var(--rru-blue); color: #fff; }
.rru-feature:nth-child(4n+4) { background: var(--rru-green); color: #fff; }

.rru-feature .icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
}

.rru-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 900;
}

.rru-feature p { margin: 0; font-size: 14px; opacity: 0.92; }

/* ── Newsletter ── */
.rru-newsletter {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: var(--rru-red);
  border: var(--rru-border);
  box-shadow: 6px 6px 0 var(--rru-black);
  text-align: center;
  color: #fff;
}

.rru-newsletter h2 {
  color: var(--rru-yellow);
  margin: 0 0 10px;
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 900;
  -webkit-text-stroke: 1px var(--rru-black);
}

.rru-newsletter p { margin: 0; font-size: 16px; }

.rru-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: min(320px, 100%);
  max-width: 100%;
  padding: 14px 18px;
  border: var(--rru-border);
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  color: var(--rru-black);
  border-radius: 0;
}

textarea {
  min-height: 140px;
  width: 100%;
}

/* ── Content Area ── */
.content-area {
  padding: 50px 0 70px;
}

.post-card,
.entry-card,
.archive-shell,
.single-shell,
.page-shell,
.not-found {
  padding: 28px;
}

.single-shell,
.page-shell,
.archive-shell,
.not-found {
  max-width: 900px;
  margin: 0 auto;
}

.single-shell,
.page-shell {
  background: var(--rru-white);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
}

/* ── Footer ── */
.site-footer {
  padding: 32px 0 48px;
  background: var(--rru-white);
  border-top: var(--rru-border);
  color: var(--rru-black);
}

.site-info {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  display: inline-block;
  background: var(--rru-yellow);
  margin: 0 auto;
}

.site-info-wrap {
  text-align: center;
  padding: 20px 0;
}

.site-footer .footer-tagline {
  color: var(--rru-red);
  font-weight: 900;
}

/* ── Accessibility ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  padding: 12px 20px;
  background: var(--rru-yellow);
  color: var(--rru-black);
  font-weight: 900;
  z-index: 9999;
  border: var(--rru-border);
}
.skip-link:focus { top: 0; }

/* ── Post Featured Image ── */
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-card-thumb-wrap {
  overflow: hidden;
}

/* ── Post Navigation ── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: var(--rru-border);
  flex-wrap: wrap;
}

.nav-previous, .nav-next { flex: 1; }
.nav-next { text-align: right; }

.post-navigation a {
  display: inline-block;
  background: var(--rru-yellow);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  padding: 12px 18px;
  font-weight: 900;
  font-size: 14px;
  color: var(--rru-black);
  text-transform: uppercase;
  transition: transform 0.1s, box-shadow 0.1s;
}

.post-navigation a:hover {
  background: var(--rru-red);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
}

/* ── Pagination ── */
.rru-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.rru-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--rru-white);
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  font-weight: 900;
  font-size: 15px;
  color: var(--rru-black);
  transition: transform 0.1s, box-shadow 0.1s;
}

.rru-pagination .page-numbers.current,
.rru-pagination .page-numbers:hover {
  background: var(--rru-red);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rru-black);
}

/* ── 404 ── */
.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
}

.not-found-wrap .rru-404-emoji {
  font-size: 80px;
  margin-bottom: 16px;
  display: block;
}

.not-found-wrap h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  color: var(--rru-red);
  text-transform: uppercase;
  margin: 0 auto 20px;
  display: inline-block;
  padding: 8px 28px;
  border: var(--rru-border);
  box-shadow: var(--rru-shadow);
  background: var(--rru-yellow);
}

.not-found-wrap p {
  font-size: 18px;
  color: #333;
  margin: 0 0 28px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .rru-hero-grid,
  .rru-cards-grid,
  .posts-grid,
  .rru-features-grid,
  .footer-widgets,
  .rru-stats {
    grid-template-columns: 1fr;
  }
  .rru-card.ticket-card { transform: none; }
  .rru-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rru-mobile-toggle { display: inline-flex; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation .menu { flex-direction: column; align-items: stretch; }
  .main-navigation a { width: 100%; }
  .site-title a { font-size: 22px; }
  .hero-title { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .rru-features-grid { grid-template-columns: 1fr; }
  .rru-newsletter { padding: 28px 20px; }
}

/* ════════════════════════════════════════════════
   Interactive / Animation Additions  (v2.0)
════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
.rru-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0;
  background: linear-gradient(to right,
    var(--rru-red)    0%,
    var(--rru-yellow) 33%,
    var(--rru-blue)   66%,
    var(--rru-green)  100%
  );
  z-index: 10001;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(227,24,55,0.45);
}

/* ── Rainbow Stripe scrolling shimmer ── */
@keyframes rruStripeSlide {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 0; }
}
.rru-stripe-animated {
  background-size: 400% 100%;
  background-image: linear-gradient(to right,
    var(--rru-red)    0%,   var(--rru-red)    18%,
    var(--rru-yellow) 18%,  var(--rru-yellow) 36%,
    var(--rru-blue)   36%,  var(--rru-blue)   54%,
    var(--rru-green)  54%,  var(--rru-green)  72%,
    var(--rru-red)    72%,  var(--rru-red)    90%,
    var(--rru-yellow) 90%,  var(--rru-yellow) 100%
  );
  animation: rruStripeSlide 2.5s linear infinite;
}

/* ── Scroll-triggered Fade-in ── */
.rru-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rru-fade-in.rru-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Badge Pulse ── */
@keyframes rruBadgePulse {
  0%,100% { transform: scale(1)    rotate(-1deg); }
  50%     { transform: scale(1.06) rotate(-1deg); }
}
.rru-hero-badge {
  animation: rruBadgePulse 2.4s ease-in-out infinite;
  transform-origin: center center;
}

/* ── Ticket Card gentle bob ── */
@keyframes rruTicketBob {
  0%,100% { transform: translateY(0)      rotate(2deg); }
  50%     { transform: translateY(-6px)   rotate(2deg); }
}
.rru-ticket-card {
  animation: rruTicketBob 3.5s ease-in-out infinite;
}

/* ── Stat numbers subtle glow on viewport entry ── */
@keyframes rruStatPop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.rru-stat-num.rru-visible {
  animation: rruStatPop 0.55s cubic-bezier(.17,.67,.32,1.3) forwards;
}

/* ── Party Mode ── */
@keyframes rruPartyRainbow {
  0%   { filter: hue-rotate(0deg)   saturate(1.2); }
  100% { filter: hue-rotate(360deg) saturate(1.2); }
}
.rru-party-mode {
  animation: rruPartyRainbow 1.8s linear infinite;
}
.rru-party-mode .rru-rainbow-stripe {
  height: 14px;
}

/* ── Section title underline wipe ── */
.rru-section-title {
  position: relative;
  display: inline-block;
}
.rru-section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--rru-yellow);
  border: 1px solid var(--rru-black);
  transition: width 0.5s ease;
}
.rru-section-title.rru-visible::after {
  width: 100%;
}

/* ── Confetti dots (base – animated via JS inline styles) ── */
.rru-confetti-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}
