/* ============================================================
   fWOWers.com — Design System
   Palette: Magenta #C8186F | Deep #9E0F55 | Light #F7D0E8 | XLight #FDF0F8
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --mag:     #C8186F;
  --mag2:    #9E0F55;
  --mag3:    #7A0B42;
  --maglt:   #F7D0E8;
  --magxlt:  #FDF0F8;
  --dark:    #1C1C1E;
  --mid:     #444444;
  --muted:   #888888;
  --light:   #F5F5F5;
  --white:   #FFFFFF;
  --border:  #E8E8E8;
  --shadow:  0 4px 24px rgba(200,24,111,0.10);
  --shadow2: 0 2px 12px rgba(0,0,0,0.08);
  --radius:  4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */

h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -1px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--mag);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 640px;
}

a { color: var(--mag); text-decoration: none; }
a:hover { color: var(--mag2); }

/* ── LOGO WORDMARK ──────────────────────────────────────────── */

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-block;
  line-height: 1;
}
.logo-mark .f   { color: var(--mag); }
.logo-mark .wow { color: var(--dark); }
.logo-mark .ers { color: var(--mag); }
.logo-mark .tm  { font-size: 0.45em; vertical-align: super; color: var(--mag); }
.logo-mark.white .f,
.logo-mark.white .ers,
.logo-mark.white .tm  { color: var(--maglt); }
.logo-mark.white .wow { color: var(--white); }

/* ── NAVIGATION ─────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--mag);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo { font-size: 28px; text-decoration: none; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mid);
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.2px;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--mag); background: var(--magxlt); }
.nav-cta {
  background: var(--mag) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
}
.nav-cta:hover { background: var(--mag2) !important; }

/* ── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  transition: all 0.15s;
  letter-spacing: 0.3px;
  line-height: 1;
}
.btn-primary   { background: var(--mag); color: var(--white); }
.btn-primary:hover { background: var(--mag2); color: var(--white); }
.btn-outline   { background: transparent; color: var(--mag); border: 2px solid var(--mag); }
.btn-outline:hover { background: var(--mag); color: var(--white); }
.btn-white     { background: var(--white); color: var(--mag); }
.btn-white:hover { background: var(--maglt); }
.btn-sm        { padding: 8px 18px; font-size: 13px; }
.btn-lg        { padding: 16px 40px; font-size: 16px; }
.btn-block     { display: block; width: 100%; text-align: center; }

/* ── SECTIONS ───────────────────────────────────────────────── */

.section {
  padding: 88px 24px;
}
.section-sm { padding: 56px 24px; }
.section-white   { background: var(--white); }
.section-tint    { background: var(--magxlt); }
.section-mag     { background: var(--mag); }
.section-dark    { background: var(--dark); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-sm {
  max-width: 820px;
  margin: 0 auto;
}

/* ── CARDS ──────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--magxlt);
}
.card-body { padding: 20px; }
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── GRIDS ──────────────────────────────────────────────────── */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 32px; }

/* ── BADGES ─────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-premium { background: var(--mag); color: var(--white); }
.badge-free    { background: var(--magxlt); color: var(--mag2); border: 1px solid var(--maglt); }
.badge-winner  { background: var(--dark); color: #FFD700; }
.badge-new     { background: #E8F5EA; color: #2E7D32; }

/* ── FORMS ──────────────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.form-control:focus { border-color: var(--mag); box-shadow: 0 0 0 3px rgba(200,24,111,0.10); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── UPLOAD ZONE ────────────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--maglt);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--magxlt);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--mag);
  background: var(--maglt);
}
.upload-zone input[type="file"] {
  display: none;
}
.upload-zone p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.upload-zone .upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 12px;
  display: none;
}

/* ── VOTE BUTTON ────────────────────────────────────────────── */

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--white);
  border: 1.5px solid var(--maglt);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--mag);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.vote-btn:hover { background: var(--magxlt); border-color: var(--mag); }
.vote-btn.voted { background: var(--mag); color: var(--white); border-color: var(--mag); }
.vote-btn .heart { font-size: 16px; transition: transform 0.2s; }
.vote-btn:hover .heart { transform: scale(1.25); }

/* ── PHOTO CARD ─────────────────────────────────────────────── */

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--magxlt);
}
.photo-card-body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photo-card-info { flex: 1; min-width: 0; }
.photo-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card-caption {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SHOP DIRECTORY CARD ────────────────────────────────────── */

.shop-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-card:hover { border-color: var(--maglt); box-shadow: var(--shadow); }
.shop-card.premium { border-color: var(--mag); background: var(--magxlt); }
.shop-card-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  background: var(--magxlt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.shop-card.premium .shop-card-icon { background: var(--mag); }
.shop-card-body { flex: 1; min-width: 0; }
.shop-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.shop-card-location { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.shop-card-links { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--mag);
  text-decoration: none;
}
.shop-card-link:hover { color: var(--mag2); text-decoration: underline; }

/* ── FLASH MESSAGES ─────────────────────────────────────────── */

.flash {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 24px;
  font-weight: 500;
}
.flash-success { background: #E8F5EA; color: #2E7D32; border-left: 4px solid #2E7D32; }
.flash-error   { background: #FDECEA; color: #C62828; border-left: 4px solid #C62828; }
.flash-info    { background: var(--magxlt); color: var(--mag2); border-left: 4px solid var(--mag); }

/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}
.hero-tint { background: var(--magxlt); }
.hero-mag  { background: var(--mag); }
.hero-bloom-bg {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 600px;
  height: 600px;
  opacity: 0.12;
  pointer-events: none;
}

/* ── PAGE HEADER ────────────────────────────────────────────── */

.page-header {
  background: var(--mag);
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  color: var(--white);
  margin-bottom: 8px;
}
.page-header p {
  font-size: 17px;
  color: var(--maglt);
  font-family: var(--font-display);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ── FOOTER ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  padding: 56px 24px 32px;
  border-top: 4px solid var(--mag);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: #888;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--maglt);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--maglt); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #555; }

/* ── SVG BADGES ─────────────────────────────────────────────── */

.fwower-badge-wrap { display: inline-block; }
.fwower-badge-wrap svg { display: block; }

/* ── CONTEST SECTION ─────────────────────────────────────────── */

.contest-vs {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contest-vs-side {
  flex: 1;
  min-width: 280px;
}
.contest-vs-divider {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--mag);
  text-align: center;
  flex: 0 0 auto;
}
.contest-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--magxlt);
}
.contest-team-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contest-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */

.vote-bar {
  height: 8px;
  background: var(--maglt);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.vote-bar-fill {
  height: 100%;
  background: var(--mag);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── STATS ──────────────────────────────────────────────────── */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.stat-item .number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--mag);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .label {
  font-size: 13px;
  color: var(--muted);
}

/* ── MODALS ─────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  line-height: 1;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.modal-subtitle { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 56px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.fade-in-up-2 { animation: fadeInUp 0.5s 0.1s ease both; }
.fade-in-up-3 { animation: fadeInUp 0.5s 0.2s ease both; }
.fade-in-up-4 { animation: fadeInUp 0.5s 0.3s ease both; }

@keyframes pulse-mag {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,24,111,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(200,24,111,0); }
}
.pulse { animation: pulse-mag 2s infinite; }
