/*
Theme Name:  RedDevils Together
Theme URI:   https://reddevilstogether.be
Author:      RedDevils Together
Description: Fan support wall for the Belgian Red Devils national football team
Version:     1.0.0
Text Domain: reddevils
*/

/* ── RESET & VARIABLES ───────────────────────────────────── */
:root {
  --red:   #C8102E;
  --black: #0A0A0A;
  --gold:  #F5C518;
  --white: #F8F8F8;
  --gray:  #1E1E1E;
  --muted: #888888;
  --card-bg: #161616;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s ease;
}

.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: #a50d26; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid #333;
}
.btn-ghost:hover { border-color: #666; background: #111; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid #444;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e1e1e;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.logo-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.12em;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* WordPress menu reset */
.primary-menu { display: flex; gap: 24px; list-style: none; align-items: center; }
.primary-menu a { font-size: 0.875rem; color: #aaa; transition: color 0.15s; }
.primary-menu a:hover { color: var(--white); }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-wrap { background: var(--red); overflow: hidden; padding: 10px 0; }
.ticker-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span::before { content: '⚽'; margin-right: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 40px 80px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(200,16,46,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  max-width: 520px;
  margin: 0 auto 36px;
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #1e1e1e;
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: var(--red);
}
.stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; margin-top: 4px; }

/* ── QUOTE SECTION ───────────────────────────────────────── */
.quote-section { padding: 60px 0; }
.quote-card {
  background: var(--gray);
  border-left: 4px solid var(--red);
  padding: 36px 40px;
  border-radius: 0 10px 10px 0;
  position: relative;
}
.quote-card::before {
  content: '"';
  font-family: 'Oswald', sans-serif;
  font-size: 8rem;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: -10px; left: 24px;
  line-height: 1;
  pointer-events: none;
}
.quote-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 16px;
  padding-top: 12px;
}
.quote-attr  { color: var(--muted); font-size: 0.85rem; }
.quote-attr strong { color: var(--red); }
.quote-nav   { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.quote-arrow {
  background: #2a2a2a;
  border: none;
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.15s;
}
.quote-arrow:hover { background: var(--red); }

/* ── SECTION HEADING ─────────────────────────────────────── */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-heading h2 { font-size: 2rem; }
.section-heading h2 span { color: var(--red); }
.section-note { color: var(--muted); font-size: 0.82rem; }

/* ── MESSAGE WALL ────────────────────────────────────────── */
.wall-section { padding: 60px 0; }
.message-wall {
  columns: 3 280px;
  column-gap: 16px;
}
.message-card {
  break-inside: avoid;
  background: var(--card-bg);
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.2s;
  animation: cardIn 0.4s ease both;
}
.message-card:hover { border-color: var(--red); transform: translateY(-3px); }
@keyframes cardIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
}
.card-user   { margin-left: 10px; }
.card-name   { font-weight: 600; font-size: 0.875rem; }
.card-loc    { color: var(--muted); font-size: 0.75rem; }
.card-date   { color: var(--muted); font-size: 0.75rem; }
.card-body   { font-size: 0.93rem; line-height: 1.65; color: #ccc; }
.card-likes  {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem; color: var(--muted);
  background: none; border: none;
  padding: 0;
  transition: color 0.15s;
}
.card-likes:hover { color: var(--red); cursor: pointer; }

/* ── WALL LOADING STATE ──────────────────────────────────── */
.wall-placeholder {
  background: var(--gray);
  border-radius: 10px;
  height: 160px;
  animation: pulse 1.5s ease infinite;
  margin-bottom: 16px;
}
@keyframes pulse { 0%,100% { opacity:0.4; } 50% { opacity:0.7; } }

/* ── SHUFFLE BUTTON ──────────────────────────────────────── */
.shuffle-wrap { display: flex; justify-content: center; padding: 32px 0 60px; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 40px;
  width: 100%; max-width: 520px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.modal-box h3 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-box p  { color: var(--muted); font-size: 0.875rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.char-count { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 5px; }

.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #1e1e1e;
  padding: 48px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer strong { color: var(--red); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.footer-links a { color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
/* ── PAGE HERO (About / Contact / Wall) ──────────────────── */
.page-hero {
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1a1a1a;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200,16,46,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.page-hero .hero-sub { max-width: 560px; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-section { padding: 60px 0 80px; }

.about-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.about-icon {
  font-size: 2rem;
  padding-top: 4px;
  text-align: center;
}
.about-text h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--white);
}
.about-text p {
  color: #999;
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.about-stat { text-align: center; }
.about-stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--red);
}
.about-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
}

.about-cta {
  text-align: center;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  margin-top: 40px;
}
.about-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.about-cta p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-section { padding: 60px 0 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
}

.contact-form-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-group select {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  cursor: pointer;
}
.form-group select:focus { border-color: var(--red); }
.form-group select option { background: #1e1e1e; }

.contact-success {
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.3);
  color: #4ade80;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--red); }
.info-icon { font-size: 1.4rem; margin-bottom: 8px; }
.info-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.info-card p { font-size: 0.85rem; color: #999; line-height: 1.5; }

/* ── WALL PAGE EXTRAS ────────────────────────────────────── */
.wall-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.wall-live-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #888;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.2);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200,16,46,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(200,16,46,0.05); }
}

.filter-right { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  background: var(--gray);
  border: 1px solid var(--border);
  color: #888;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover  { border-color: #555; color: var(--white); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: white; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero            { padding: 70px 20px 60px; }
  .hero-stats      { gap: 28px; }
  .nav-inner       { padding: 14px 20px; }
  .primary-menu    { display: none; }
  .message-wall    { columns: 1; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer     { padding: 32px 20px; }
  .modal-box       { padding: 28px 24px; }
  .page-hero       { padding: 60px 20px 40px; }
  .about-block     { grid-template-columns: 40px 1fr; gap: 16px; }
  .about-stats     { gap: 32px; padding: 24px; }
  .contact-grid    { grid-template-columns: 1fr; }
  .wall-filters    { flex-direction: column; align-items: flex-start; }
  .about-cta       { padding: 32px 24px; }
}

/* ── ACTIVE MENU ITEM ────────────────────────────────────── */
.primary-menu .current > a,
.primary-menu .current-menu-item > a,
.primary-menu li.current > a {
  color: var(--red) !important;
}


/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0d0d0d;
  border-bottom: 2px solid var(--red);
  padding: 24px 24px 32px;
  z-index: 99;
}
.mobile-drawer.open {
  display: block;
  animation: slideDown 0.22s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-list {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0 0 20px 0;
  border-bottom: 1px solid #1e1e1e;
}
.mobile-nav-list li a {
  display: block;
  padding: 14px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #1a1a1a;
  transition: color 0.15s, padding-left 0.15s;
  text-decoration: none;
}
.mobile-nav-list li:last-child a { border-bottom: none; }
.mobile-nav-list li a:hover      { color: var(--white); padding-left: 6px; }
.mobile-nav-list li.mobile-current a { color: var(--red); }
.mobile-actions { display: flex; flex-direction: column; }
.nav-greeting   { font-size: 0.82rem; color: #aaa; }

/* ── ACTIVE MENU ITEM ────────────────────────────────────── */
.primary-menu .current > a,
.primary-menu .current-menu-item > a { color: var(--red) !important; }

/* ── RESPONSIVE BREAKPOINT ───────────────────────────────── */
@media (max-width: 768px) {
  .hamburger       { display: flex; }
  .desktop-nav     { display: none; }
  .desktop-actions { display: none; }
  .nav-greeting    { display: none; }
  .site-header     { position: sticky; top: 0; z-index: 100; }
  .hero            { padding: 70px 20px 60px; }
  .hero-stats      { gap: 28px; }
  .nav-inner       { padding: 14px 20px; }
  .message-wall    { columns: 1; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer     { padding: 32px 20px; }
  .modal-box       { padding: 28px 24px; }
  .page-hero       { padding: 60px 20px 40px; }
  .about-block     { grid-template-columns: 40px 1fr; gap: 16px; }
  .about-stats     { gap: 32px; padding: 24px; }
  .contact-grid    { grid-template-columns: 1fr; }
  .wall-filters    { flex-direction: column; align-items: flex-start; }
  .about-cta       { padding: 32px 24px; }
}

@media (min-width: 769px) {
  .mobile-drawer { display: none !important; }
  .hamburger     { display: none !important; }
}
