/* =============================================
   MACA - Mothers Against Colin Allred
   Styles
   ============================================= */

:root {
  --navy: #0A2240;
  --navy-light: #1A3A5C;
  --red: #C41E3A;
  --red-bright: #E63946;
  --red-dark: #9B1B30;
  --white: #FFFFFF;
  --off-white: #F0F4F8;
  --cream: #F9FAFB;
  --blue-accent: #3B82F6;
  --green: #22C55E;

  --text-dark: #1A1A2E;
  --text-muted: #4A5568;
  --text-light: #FFFFFF;

  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container-max: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.header__logo-abbr {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--red-bright);
  letter-spacing: 0.05em;
}

.header__logo-full {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.9;
  display: none;
}

@media (min-width: 768px) {
  .header__logo-full {
    display: inline;
  }
}

/* Nav */
.header__nav-list {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-list a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header__nav-list a:hover {
  color: var(--red-bright);
}

/* Hamburger */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 767px) {
  .header__menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    padding: 100px var(--space-lg) var(--space-lg);
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .header__nav--open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-md);
  }

  .header__nav-list a {
    font-size: 1.1rem;
    display: block;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Hamburger animation */
  .header__menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .header__menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .header__menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(196,30,58,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--red-bright);
  margin-bottom: var(--space-xs);
}

.hero__tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: var(--space-md);
}

.hero__dates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.hero__date-divider {
  opacity: 0.5;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: var(--space-2xl) 0;
}

.section--white {
  background: var(--white);
}

.section--light {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
}

.section--red {
  background: var(--red);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.section__title--white {
  color: var(--white);
}

.section__subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.section__subtitle--white {
  color: rgba(255,255,255,0.9);
}

/* =============================================
   VOTER GUIDE
   ============================================= */
.guide__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.guide__filter {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: 50px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide__filter:hover,
.guide__filter.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Guide Grid */
.guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide__card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide__card-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.guide__race-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.guide__card-body {
  padding: 0.5rem 1rem;
}

.guide__candidate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F0F0F0;
}

.guide__candidate:last-child {
  border-bottom: none;
}

.guide__candidate-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.guide__candidate--endorsed .guide__candidate-name {
  color: var(--text-dark);
}

.guide__candidate--opposed .guide__candidate-name {
  color: var(--red);
  text-decoration: line-through;
  opacity: 0.7;
}

.guide__endorsed-badge {
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.guide__opposed-badge {
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* =============================================
   BALLOT WARNING
   ============================================= */
.warning__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.warning__card {
  background: var(--white);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.warning__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.warning__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.warning__race {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.warning__reason {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* =============================================
   CTA
   ============================================= */
.cta__inner {
  text-align: center;
}

.cta__text {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Share toast */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  z-index: 2000;
}

.share-toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #061428;
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red-bright);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--blue-accent);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__bottom {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__dates {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero__date-divider {
    display: none;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .guide__grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .warning__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .guide__grid {
    grid-template-columns: 1fr;
  }

  .btn--large {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }

  .guide__filters {
    gap: 0.35rem;
  }

  .guide__filter {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   ZEESHAN FAN PAGE
   ============================================= */

.fan-page {
  background: #FFF0F5;
}

/* Fan Hero */
.fan-hero {
  background: linear-gradient(135deg, #E91E63 0%, #FF5252 40%, #FF8A80 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.fan-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.fan-hero__inner {
  position: relative;
  z-index: 1;
}

.fan-hero__title {
  font-family: 'Pacifico', cursive;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.fan-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Photo Collage Section */
.fan-collage-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  position: relative;
}

.fan-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.fan-photo--tall {
  grid-row: span 2;
}

.fan-photo--wide {
  grid-column: span 2;
}

/* Photo container */
.fan-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(233,30,99,0.25);
  border: 4px solid #FF80AB;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.fan-photo:hover {
  box-shadow: 0 12px 40px rgba(233,30,99,0.4);
  z-index: 10;
}

.fan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Heart Eyes Overlay */
.heart-eyes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(255, 0, 100, 0.6));
  z-index: 5;
}

.fan-photo:hover .heart-eyes {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Negative photo (Colin Allred) */
.fan-photo--negative {
  border-color: #B71C1C;
  box-shadow: 0 8px 30px rgba(183,28,28,0.3);
}

.fan-photo--negative:hover {
  box-shadow: 0 12px 40px rgba(183,28,28,0.5);
}

.fan-photo--negative::after {
  content: '\1F44E';
  animation-name: none;
}

.negative-eyes {
  filter: drop-shadow(0 0 15px rgba(183, 28, 28, 0.6));
}

/* Always-visible heart eyes (smaller, in corner) */
.fan-photo::after {
  content: '\2764\FE0F';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 3;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Floating Hearts Background */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  color: #FF80AB;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(1);
  }
}

.h1  { left: 5%;  font-size: 1.2rem; animation-duration: 8s;  animation-delay: 0s; }
.h2  { left: 15%; font-size: 1.8rem; animation-duration: 10s; animation-delay: 1s; }
.h3  { left: 25%; font-size: 1rem;   animation-duration: 7s;  animation-delay: 3s; }
.h4  { left: 35%; font-size: 2rem;   animation-duration: 9s;  animation-delay: 0.5s; }
.h5  { left: 45%; font-size: 1.5rem; animation-duration: 11s; animation-delay: 2s; }
.h6  { left: 55%; font-size: 1.3rem; animation-duration: 8.5s; animation-delay: 4s; }
.h7  { left: 65%; font-size: 1.7rem; animation-duration: 9.5s; animation-delay: 1.5s; }
.h8  { left: 75%; font-size: 1.1rem; animation-duration: 7.5s; animation-delay: 3.5s; }
.h9  { left: 85%; font-size: 2.2rem; animation-duration: 10.5s; animation-delay: 0.8s; }
.h10 { left: 92%; font-size: 1.4rem; animation-duration: 8s;  animation-delay: 2.5s; }
.h11 { left: 10%; font-size: 1.6rem; animation-duration: 9s;  animation-delay: 5s; }
.h12 { left: 50%; font-size: 1rem;   animation-duration: 12s; animation-delay: 6s; }

/* Fan CTA */
.fan-cta {
  text-align: center;
}

.fan-cta__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #C2185B;
  margin-bottom: var(--space-md);
}

.btn--pink {
  background: #E91E63;
  color: var(--white);
  border-color: #E91E63;
}

.btn--pink:hover {
  background: #FF5252;
  border-color: #FF5252;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233,30,99,0.4);
}

/* Fan page footer override */
.fan-page .site-footer {
  background: #880E4F;
}

/* Fan page responsive */
@media (max-width: 768px) {
  .fan-hero__title {
    font-size: 2.5rem;
  }

  .fan-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
  }

  .fan-photo--tall {
    grid-row: span 1;
  }

  .fan-photo--wide {
    grid-column: span 2;
  }

  .heart-eyes {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .fan-hero__title {
    font-size: 2rem;
  }

  .fan-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .fan-photo--wide {
    grid-column: span 1;
  }

  .fan-cta__text {
    font-size: 1.2rem;
  }

  .heart-eyes {
    font-size: 3rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
