/*
 * style.css — Australians vs. The Agenda
 * Global styles. Tailwind handles most layout; this file
 * covers custom components and overrides.
 */

/* ─── FONTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.anton { font-family: 'Anton', sans-serif; }

h1, h2, h3 { line-height: 1.1; }

a { color: inherit; text-decoration: none; }
a:hover { color: #ef4444; }

/* ─── GLOW BUTTON ────────────────────────────────────────────────────────── */
.glow-button {
  background: linear-gradient(to right, #ff1f1f, #ff4d4d);
  box-shadow: 0 0 10px rgba(255, 31, 31, 0.6), 0 0 20px rgba(255, 31, 31, 0.4);
  transition: all 0.3s ease-in-out;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}
.glow-button:hover {
  box-shadow: 0 0 15px rgba(255, 31, 31, 0.9), 0 0 30px rgba(255, 31, 31, 0.6);
  color: #fff;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
header nav a img { transition: opacity 0.2s; }
header nav a:hover img { opacity: 0.85; }

/* Active nav link */
header nav a.text-red-600,
header nav a.text-red-500 { color: #dc2626 !important; }

/* ─── MOBILE MENU ────────────────────────────────────────────────────────── */
#mobile-menu { overflow-y: auto; }
#mobile-menu a { transition: color 0.15s; }
#mobile-menu a:hover { color: #dc2626; }

/* ─── HERO VIDEO SECTION ─────────────────────────────────────────────────── */
section video { object-fit: cover; }

/* ─── CARD HOVER ─────────────────────────────────────────────────────────── */
.card-hover {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
input, textarea, select {
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Dark autofill fix for Chrome/Edge/Safari */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

/* ─── NEWSLETTER POPUP ───────────────────────────────────────────────────── */
#newsletter-popup { backdrop-filter: blur(4px); }

/* ─── SOCIAL BAR ICONS ───────────────────────────────────────────────────── */
.audience-icon {
  filter: invert(1);
  opacity: 0.95;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { position: relative; z-index: 10; }
footer input:focus { border-color: #d1d5db !important; box-shadow: none; }

/* ─── PROFILE / ABOUT CARDS ──────────────────────────────────────────────── */
.profile-card { overflow: hidden; }

/* ─── DONATE / AMOUNT BUTTONS ────────────────────────────────────────────── */
.amount-btn { transition: outline 0.15s, background 0.15s; }
.amount-btn.active,
.amount-btn.border-red-500 {
  outline: 2px solid #ef4444;
  background: #111;
  color: #fff;
}

/* ─── MEMBERS TIER SHEEN ─────────────────────────────────────────────────── */
.tier-bronze {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(120deg, #ffe6c2, #d99755, #fff4d4);
  background-size: 220% 220%;
  animation: tierShine 4s linear infinite;
}
.tier-silver {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(120deg, #ffffff, #d5dbe3, #f7f8fa);
  background-size: 220% 220%;
  animation: tierShine 4s linear infinite;
}
.tier-gold {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(120deg, #fff8c9, #ffd95b, #fff1c0);
  background-size: 220% 220%;
  animation: tierShine 4s linear infinite;
}
@keyframes tierShine {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ─── SCROLLBAR (Webkit) ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ─── UTILITY ────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── RESPONSIVE TWEAKS ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .newsletter-text { font-size: 13px; line-height: 1.3; }
}

@media (max-width: 768px) {
  footer { padding-bottom: 6rem; }
}
