/* ============================================
   GreeAlityTV — Civic Community Platform
   Greeley, Colorado
   ============================================ */

:root {
  --navy: #1B3A5C;
  --navy-dark: #0f2340;
  --red: #C62828;
  --red-light: #ef5350;
  --gold: #F4A261;
  --white: #ffffff;
  --off-white: #F8F9FA;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #1a1a2e;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); opacity: 1; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); opacity: 1; }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: #b71c1c; opacity: 1; }
.btn-danger { background: #dc3545; color: var(--white); border-color: #dc3545; }
.btn-danger:hover { background: #c82333; opacity: 1; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-xs { padding: .2rem .55rem; font-size: .75rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: -1px; margin-right: auto; }
.logo-grm { color: var(--white); }
.logo-red { color: var(--red-light); }
.logo-tv { color: var(--gold); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .9rem; transition: color .15s; }
.nav-links a:hover { color: var(--white); opacity: 1; }
.nav-admin { color: var(--gold) !important; }
.nav-auth { display: flex; align-items: center; gap: .75rem; }
.nav-profile { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); font-size: .9rem; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }

/* ---- FLASH MESSAGES ---- */
.flash {
  max-width: 1200px;
  margin: 1rem auto;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { max-width: 600px; position: relative; }
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero-accent { color: var(--red-light); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge { position: relative; }
.badge-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(244,162,97,.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.badge-city { font-size: 1rem; color: var(--gold); font-weight: 900; letter-spacing: 1px; }

/* ---- HOME SECTIONS ---- */
.home-section { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.home-section-dark { background: var(--navy); max-width: 100%; padding: 3.5rem 0; }
.home-section-dark .section-header,
.home-section-dark .video-grid { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.home-section-dark h2 { color: var(--white); }
.home-section-dark .see-all { color: var(--gold); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 800; }
.see-all { font-weight: 600; font-size: .9rem; color: var(--red); }

/* ---- CARD GRID ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { height: 200px; background-size: cover; background-position: center; }
.card-img-placeholder { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.card-title a:hover { color: var(--red); }
.card-excerpt { font-size: .875rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gray-600); margin-top: auto; }
.meta-avatar { width: 22px; height: 22px; border-radius: 50%; }
.meta-avatar-lg { width: 40px; height: 40px; border-radius: 50%; }
.dot { color: var(--gray-400); }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  padding: .2rem .6rem;
  background: var(--gray-100);
  color: var(--navy);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tag-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag-filter { margin-bottom: 1rem; font-size: .9rem; }

/* ---- VIDEO GRID ---- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.video-grid-full { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.video-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.video-thumb { display: block; position: relative; padding-top: 56.25%; overflow: hidden; background: var(--navy-dark); }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--gold);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); color: white; font-size: 2rem;
  opacity: 0; transition: opacity .2s;
}
.video-thumb:hover .play-overlay { opacity: 1; }
.video-info { padding: .85rem 1rem; }
.video-info h4 { font-size: .9rem; font-weight: 700; line-height: 1.3; margin-bottom: .3rem; }
.video-author { font-size: .78rem; color: var(--gray-600); }

/* ---- PETITION CARDS ---- */
.petition-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
}
.petition-list-full .petition-card { margin-bottom: 1rem; }
.petition-info { flex: 1; }
.petition-info h4, .petition-info h3 { font-weight: 700; margin-bottom: .4rem; }
.petition-info h4 a:hover, .petition-info h3 a:hover { color: var(--red); }
.petition-info p { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }
.petition-stats { min-width: 220px; display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; }
.petition-progress { width: 100%; text-align: right; }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 99px; overflow: hidden; margin-bottom: .4rem; }
.progress-bar-lg { height: 14px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-light)); border-radius: 99px; transition: width .4s; }
.petition-progress span { font-size: .8rem; color: var(--gray-600); }

/* ---- PAGE MAIN / LAYOUT ---- */
.page-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; font-weight: 900; }
.empty-state { text-align: center; padding: 3rem; color: var(--gray-600); font-size: 1rem; }
.empty-state a { color: var(--red); font-weight: 600; }

/* ---- FEED ---- */
.feed-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.feed-header { margin-bottom: 2rem; }
.feed-header h1 { font-size: 2rem; font-weight: 900; }
.feed-header p { color: var(--gray-600); }
.feed-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.feed-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.feed-card:hover { box-shadow: var(--shadow-lg); }
.feed-card-img { width: 200px; min-width: 200px; background-size: cover; background-position: center; background-color: var(--navy-dark); }
.feed-card-body { padding: 1.25rem; flex: 1; }
.feed-card-title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin: .4rem 0; }
.feed-card-title a:hover { color: var(--red); }
.feed-card-excerpt { font-size: .875rem; color: var(--gray-600); line-height: 1.6; }
.feed-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-block { background: var(--white); border-radius: 10px; padding: 1.25rem; box-shadow: var(--shadow); }
.sidebar-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gray-200); }
.sidebar-video { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .85rem; font-weight: 500; }
.sidebar-video img { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; }
.sidebar-video-placeholder { width: 64px; height: 40px; background: var(--navy); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: .9rem; }
.see-all-link { font-size: .8rem; color: var(--red); font-weight: 600; display: block; margin-top: .5rem; }
.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---- ARTICLE ---- */
.article-main { max-width: 100%; }
.article-hero { height: 400px; background-size: cover; background-position: center; }
.article-container { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-content { max-width: 760px; }
.article-meta-top { margin-bottom: 2rem; }
.article-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; line-height: 1.15; margin: .75rem 0 1rem; }
.article-byline { display: flex; align-items: center; gap: .75rem; }
.author-link { font-weight: 700; font-size: .95rem; }
.author-link:hover { color: var(--red); }
.article-date { font-size: .85rem; color: var(--gray-600); display: block; }
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); margin: 2rem 0; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 .75rem; font-weight: 800; }
.article-body blockquote { border-left: 4px solid var(--red); padding-left: 1.25rem; margin: 1.5rem 0; color: var(--gray-600); font-style: italic; }
.article-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--gray-200); display: flex; gap: .75rem; }

/* ---- VIDEO MAIN ---- */
.video-main { max-width: 100%; }
.video-player-wrap { background: #000; }
.video-player { width: 100%; max-height: 72vh; display: block; margin: 0 auto; }
.video-detail-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.video-detail-content { max-width: 760px; }
.video-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 1rem; }
.video-description { font-size: 1rem; color: var(--gray-600); line-height: 1.7; margin-top: 1rem; }

/* ---- COMMENTS ---- */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--gray-200); }
.section-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.comment-form { margin-bottom: 2rem; }
.comment-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  resize: vertical;
  margin-bottom: .75rem;
  transition: border-color .15s;
}
.comment-form textarea:focus { outline: none; border-color: var(--navy); }
.comment-gate { background: var(--gray-100); padding: 1.25rem; border-radius: var(--radius); text-align: center; font-size: .9rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.comment-gate a { color: var(--red); font-weight: 600; }
.comment { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-200); }
.comment-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; }
.comment-author { font-weight: 700; font-size: .875rem; }
.comment-date { font-size: .78rem; color: var(--gray-600); }
.comment-body { font-size: .9rem; line-height: 1.6; margin-bottom: .75rem; }
.comment-votes { display: flex; gap: .75rem; }
.vote-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: .2rem .6rem;
  font-size: .8rem;
  font-family: var(--font);
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}
.vote-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.vote-btn.active-up { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.vote-btn.active-down { background: #ffebee; color: var(--red); border-color: #ef9a9a; }
.vote-static { font-size: .8rem; color: var(--gray-600); font-weight: 600; }

/* ---- FORMS ---- */
.form-page { max-width: 760px; }
.form-header { margin-bottom: 2rem; }
.form-header h1 { font-size: 1.8rem; font-weight: 900; }
.form-header p { color: var(--gray-600); margin-top: .5rem; }
.content-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-weight: 600; font-size: .9rem; }
.hint { font-weight: 400; color: var(--gray-600); font-size: .82rem; }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  padding: .7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .15s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group input[type="file"] { font-size: .875rem; }
.form-actions { display: flex; gap: 1rem; margin-top: .5rem; }
.upload-progress { padding: 1rem; background: var(--gray-100); border-radius: var(--radius); }

/* ---- PROFILE ---- */
.profile-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 2px solid var(--gray-200); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--navy); }
.profile-info h1 { font-size: 1.6rem; font-weight: 900; }
.profile-email { font-size: .875rem; color: var(--gray-600); }
.profile-bio { color: var(--gray-600); font-size: .9rem; margin-top: .4rem; }
.profile-joined { font-size: .8rem; color: var(--gray-400); }
.admin-badge { display: inline-block; background: var(--red); color: white; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; margin-left: .5rem; text-transform: uppercase; }

/* ---- GREELEY VERIFIED BADGE ---- */
.verified-check { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .3rem; flex-shrink: 0; }
.verified-check svg { display: block; }
.verified-check-lg { margin: 0 auto .75rem; }
.verified-name-wrap { display: inline-flex; align-items: center; gap: 0; }

/* Verify flow pages */
.verify-container { max-width: 520px; margin: 3rem auto; padding: 0 1.5rem; }
.verify-header { text-align: center; margin-bottom: 2rem; }
.verify-header h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: .5rem; }
.verify-header p { color: var(--gray-600); }
.verify-form .form-group { margin-bottom: 1.25rem; }
.verify-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.verify-form input, .verify-form select { width: 100%; padding: .7rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font); font-size: 1rem; }
.verify-form input:focus, .verify-form select:focus { outline: none; border-color: var(--navy); }
.verify-form .form-row { display: grid; grid-template-columns: 1fr 60px 1fr; gap: .75rem; }
.verify-form .form-group-sm input { text-align: center; }
.verify-note { font-size: .8rem; color: var(--gray-600); margin-bottom: 1.25rem; }
.verify-pending { text-align: center; padding-top: 3rem; }
.verify-pending h1 { margin-bottom: .75rem; }
.verify-pending p { color: var(--gray-600); margin-bottom: .75rem; }

/* Admin table badges */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; text-transform: uppercase; }
.badge-gold { background: #fff3e0; color: #e65100; }
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.profile-bio-form { margin-bottom: 2rem; max-width: 500px; }
.profile-bio-form textarea { width: 100%; padding: .7rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font); margin-bottom: .5rem; }
.profile-bio-form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }

/* ---- LIST ITEMS ---- */
.list-item { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--gray-200); }
.list-item a { font-weight: 600; flex: 1; }
.list-item a:hover { color: var(--red); }
.list-meta { font-size: .8rem; color: var(--gray-600); }
.list-actions { display: flex; gap: .5rem; margin-left: auto; }

/* ---- PETITION DETAIL ---- */
.petition-detail { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.petition-detail-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.petition-description { font-size: 1.05rem; line-height: 1.8; margin-top: 1.5rem; color: var(--text); }
.petition-sign-box { background: var(--white); border-radius: 12px; padding: 1.75rem; box-shadow: var(--shadow-lg); position: sticky; top: 84px; }
.count-big { font-size: 3rem; font-weight: 900; color: var(--navy); display: block; }
.signed-badge { background: #e8f5e9; color: #2e7d32; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; text-align: center; }
.signatories-list { background: var(--white); border-radius: 10px; padding: 1.25rem; box-shadow: var(--shadow); margin-top: 1.25rem; }
.signatories-list h4 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.signatory { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-size: .875rem; border-bottom: 1px solid var(--gray-100); }

/* ---- ADMIN ---- */
.admin-main { max-width: 1300px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.8rem; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--white); border-radius: 10px; padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-label { font-size: .9rem; font-weight: 700; color: var(--gray-600); }
.stat-sub { font-size: .8rem; color: var(--gray-400); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.admin-section { background: var(--white); border-radius: 10px; padding: 1.5rem; box-shadow: var(--shadow); }
.admin-section h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--gray-200); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: .5rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
.admin-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--gray-100); }
.admin-table tr:hover td { background: var(--gray-100); }
.action-cell { display: flex; gap: .4rem; align-items: center; }
.status-badge { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.status-green  { background: #e8f5e9; color: #2e7d32; }
.status-gray   { background: var(--gray-100); color: var(--gray-600); }
.status-red    { background: #ffebee; color: var(--red); }
.status-orange { background: #fff8e1; color: #e65100; }

/* pending queue sub-headings */
.pending-sub { font-size: .95rem; font-weight: 700; color: var(--navy); margin: 1.25rem 0 .5rem; }
.pending-section h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }

/* badge counts in headings */
.badge-count        { display: inline-block; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 10px; margin-left: .4rem; vertical-align: middle; }
.badge-count.badge-green  { background: #2e7d32; }
.badge-count.badge-orange { background: #e65100; }
.badge-count.badge-red    { background: var(--red); }

/* Admin management filter bar */
.admin-status-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.status-filter-btn {
  padding: .35rem .9rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.status-filter-btn:hover       { background: var(--gray-200); }
.status-filter-active          { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-select {
  padding: .35rem .65rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: .83rem;
  background: var(--white);
  color: var(--gray-800);
}

/* Row sub-text in management tables */
.row-sub   { font-size: .77rem; color: var(--gray-600); margin-top: .15rem; }
.text-danger { color: var(--red); }

.user-list { display: flex; flex-direction: column; gap: .25rem; }
.user-row { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .875rem; }
.user-name { font-weight: 600; flex: 1; }
.user-email { font-size: .78rem; color: var(--gray-600); display: block; }

/* ---- ERROR PAGE ---- */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 3rem; font-weight: 900; color: var(--navy); margin-bottom: 1rem; }
.error-page p { color: var(--gray-600); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- FOOTER ---- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 3rem 1.5rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand p { font-size: .875rem; margin-top: .5rem; opacity: .6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; }
.footer-links a { font-size: .875rem; }
.footer-links a:hover { color: var(--white); opacity: 1; }
.footer-copy { font-size: .78rem; opacity: .5; }
.footer-share { display: flex; gap: .75rem; align-items: center; }
.footer-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); font-size: .8rem; padding: .45rem .9rem; border-radius: 6px; cursor: pointer; transition: background .2s, color .2s; }
.footer-btn:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 2rem; padding: 3rem 1.5rem; text-align: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-badge { display: none; }
  .feed-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .petition-detail { grid-template-columns: 1fr; }
  .petition-sign-box { position: static; }
  .nav-links { display: none; }
  .feed-card-img { display: none; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .petition-card { flex-direction: column; }
  .petition-stats { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 2rem 1rem; margin-top: 2rem; }
  .footer-links { gap: .5rem 1rem; }
  .footer-links a { font-size: .8rem; }
  .footer-share { flex-direction: column; width: 100%; }
  .footer-btn { width: 100%; justify-content: center; text-align: center; }
}

/* ================================================================
   LOCAL & GIGS PAGES
   ================================================================ */

/* Hero shared by local + gigs */
.local-hero { background: var(--navy); padding: 3rem 1.5rem; text-align: center; }
.local-hero-inner { max-width: 700px; margin: 0 auto; }
.local-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .5rem; }
.local-hero p  { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ---- Neighborhood map section ---- */
.local-map-section { padding: 2rem 1.5rem 1rem; max-width: 1100px; margin: 0 auto; }
.local-map-section .section-title { color: var(--navy); font-size: 1.3rem; margin-bottom: .25rem; }
.local-map-section .section-sub   { color: #666; font-size: .9rem; margin-bottom: 1rem; }

#neighborhood-map {
  height: 360px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  margin-bottom: 1rem;
}

.neighborhood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: .35rem .85rem;
  border-radius: 20px;
  border: 1px solid #c0c0c0;
  background: #f5f5f5;
  color: #444;
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover    { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-active   { background: var(--red); color: #fff; border-color: var(--red); }

/* ---- Category tabs ---- */
.category-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cat-tab {
  padding: .45rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #444;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cat-tab:hover  { background: #f0f0f0; }
.cat-active     { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Listings section ---- */
.local-listings-section { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }

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

.local-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.local-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }

.local-card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.local-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.local-card-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.cat-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cat-badge-food       { background: #fff3e0; color: #e65100; }
.cat-badge-business   { background: #e3f2fd; color: #1565c0; }
.cat-badge-service    { background: #e8f5e9; color: #2e7d32; }
.cat-badge-food-truck { background: #fce4ec; color: #c62828; }

.hood-tag {
  font-size: .75rem;
  color: #888;
  background: #f5f5f5;
  padding: .2rem .55rem;
  border-radius: 4px;
}

.local-card-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0; }
.local-card-desc { font-size: .88rem; color: #555; line-height: 1.5; flex: 1; }

.local-card-meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .8rem;
  color: #666;
  border-top: 1px solid #f0f0f0;
  padding-top: .5rem;
  margin-top: auto;
}
.local-card-meta a { color: var(--red); text-decoration: none; }
.local-card-meta a:hover { text-decoration: underline; }

.local-empty { text-align: center; padding: 3rem 1rem; }
.local-empty p { color: #888; margin-bottom: 1rem; }

.listings-empty-msg { text-align: center; color: #999; padding: 2rem; font-size: .95rem; }

/* ---- Gigs & Jobs ---- */
.gig-filters {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  color: #555;
}
.gig-filters select {
  padding: .4rem .75rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: .88rem;
  background: #fff;
  color: #333;
}

.gigs-list { display: flex; flex-direction: column; gap: 1rem; }

.gig-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow .2s;
}
.gig-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }

.gig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.gig-badges { display: flex; gap: .4rem; flex-wrap: wrap; }

.gig-type-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.gig-type-gig  { background: #fff8e1; color: #f57f17; }
.gig-type-job  { background: #e8eaf6; color: #283593; }

.gig-cat-badge {
  font-size: .75rem;
  padding: .2rem .65rem;
  border-radius: 4px;
  background: #f5f5f5;
  color: #555;
}
.gig-remote-badge {
  font-size: .75rem;
  padding: .2rem .65rem;
  border-radius: 4px;
  background: #e0f7fa;
  color: #00695c;
}
.gig-date { font-size: .78rem; color: #aaa; }

.gig-title   { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 0 .25rem; }
.gig-company { font-size: .9rem; color: #666; margin: 0 0 .5rem; font-style: italic; }
.gig-desc    { font-size: .88rem; color: #555; line-height: 1.55; margin-bottom: .75rem; }

.gig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-top: 1px solid #f0f0f0;
  padding-top: .75rem;
}
.gig-meta { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .82rem; color: #666; }
.gig-pay     { color: #2e7d32; font-weight: 600; }
.gig-hood    { color: #888; }
.gig-expires { color: #b71c1c; font-size: .78rem; }

/* form helpers */
.form-check { margin-top: .25rem; }
.check-label { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.check-label input[type="checkbox"] { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .local-grid { grid-template-columns: 1fr; }
  .gig-footer { flex-direction: column; align-items: flex-start; }
  #neighborhood-map { height: 260px; }
  .neighborhood-chips { gap: .35rem; }
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 3px solid var(--red);
  z-index: 10000;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  animation: slideUpBanner .3s ease;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text strong { color: #fff; font-size: .95rem; display: block; margin-bottom: .25rem; }
.cookie-banner-text p  { color: rgba(255,255,255,.72); font-size: .82rem; margin: 0; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: .75rem; flex-shrink: 0; }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; }
}

/* ================================================================
   LANGUAGE TOGGLE & GOOGLE TRANSLATE INTEGRATION
   ================================================================ */

/* Hide Google's own bar entirely — we use our own toggle */
.skiptranslate,
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }

/* Custom EN/ES toggle button in nav */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .03em;
  white-space: nowrap;
}
.lang-toggle-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.lang-toggle-btn.lang-active-es {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Fade transition when language switches */
@keyframes langSwitch {
  0%   { opacity: 1; }
  25%  { opacity: 0.55; }
  100% { opacity: 1; }
}
body.lang-switching main,
body.lang-switching .nav-links,
body.lang-switching footer {
  animation: langSwitch .5s ease;
}

/* Inline "Leer en Español" button near long body text */
.translate-hint {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .6rem;
}
.translate-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: .78rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.translate-inline-btn:hover {
  background: var(--gray-100);
  color: var(--navy);
  border-color: var(--navy);
}
/* Hide the inline button once page is already translated */
body.grv-lang-es .translate-hint { display: none; }

/* ============================================
   D6 Sports Page
   ============================================ */
.d6-mission { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; color: var(--gray-800); }
.d6-mission p { margin-bottom: 1rem; }

.d6-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.d6-pillar { background: var(--off-white); border-radius: var(--radius); padding: 1.5rem; text-align: center; border: 1px solid var(--gray-200); }
.d6-pillar-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.d6-pillar h4 { color: var(--navy); margin-bottom: .5rem; font-size: 1.05rem; }
.d6-pillar p { font-size: .9rem; color: var(--gray-600); line-height: 1.5; }

.d6-sports-list { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--gray-200); }
.d6-sports-list small { color: var(--gray-600); line-height: 1.6; }

.d6-venues { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.d6-venue-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.d6-venue-primary { border-left: 4px solid var(--red); background: linear-gradient(135deg, var(--white), #fef9f5); }
.d6-venue-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.d6-venue-header h3 { font-size: 1.15rem; color: var(--navy); }
.d6-venue-address { font-size: .9rem; color: var(--gray-600); margin-bottom: .5rem; }
.d6-venue-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; margin: 1rem 0; font-size: .9rem; }
.d6-venue-features { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.d6-venue-features span { background: var(--navy); color: var(--white); font-size: .75rem; padding: .25rem .65rem; border-radius: 20px; }
.d6-venue-note { margin-top: .75rem; font-size: .9rem; color: var(--red); font-weight: 500; }

.d6-contact { max-width: 900px; margin: 0 auto; }
.d6-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.d6-contact-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 1.25rem; }
.d6-contact-card h4 { color: var(--gold); margin-bottom: .5rem; font-size: .95rem; }
.d6-contact-card p { font-size: .9rem; margin-bottom: .25rem; }

.d6-cta-box { background: var(--red); color: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; }
.d6-cta-box h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.d6-cta-box p { max-width: 600px; margin: 0 auto 1.25rem; font-size: 1rem; line-height: 1.6; opacity: .95; }
.d6-cta-box .btn { background: var(--white); color: var(--red); font-weight: 700; }
.d6-cta-box .btn:hover { background: var(--off-white); }

/* ============================================
   Forms & Delegate Apply
   ============================================ */
.form-page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
.form-page h1 { color: var(--navy); margin-bottom: .5rem; }
.form-intro { color: var(--gray-600); margin-bottom: 2rem; line-height: 1.6; }
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.form-input { padding: .6rem .75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: .95rem; font-family: var(--font); transition: border-color .15s; }
.form-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,92,.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; padding: .4rem .75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); transition: background .15s, border-color .15s; }
.checkbox-label:hover { background: var(--gray-100); }
.checkbox-label input:checked + span { color: var(--navy); font-weight: 600; }

.agreement-box { background: var(--off-white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; }
.agreement-box h3 { color: var(--navy); margin-bottom: .75rem; font-size: 1.05rem; }
.agreement-text { max-height: 240px; overflow-y: auto; padding: 1rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 1rem; font-size: .88rem; line-height: 1.6; color: var(--gray-800); }
.agreement-text ol { padding-left: 1.25rem; }
.agreement-text li { margin-bottom: .5rem; }

.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-info { background: #e3f2fd; border: 1px solid #90caf9; color: #1565c0; }

.status-gold { background: var(--gold); color: var(--white); }
