/* =========================================
   CSS RESET & VARIABLES
   ========================================= */
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-input: #1f1f1f;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --lime: #84cc16;
  --lime-hover: #65a30d;
  --red: #dc2626;
  --text: #ffffff;
  --border: rgba(255, 255, 255, 0.15);
  
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

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

.hidden { display: none !important; }
.text-lime { color: var(--lime); }
.text-red { color: var(--red); }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.text-center { text-center: center; }
.mt-8 { margin-top: 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  max-width: 700px;
}

/* =========================================
   TYPOGRAPHY & HEADINGS
   ========================================= */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3.5rem, 8vw, 6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 0.5rem; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/4y5ndg/site/media/69f10c8b619020.27284280.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 100%);
}

.scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.brand-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* =========================================
   COUNTDOWN
   ========================================= */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cd-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
}

.cd-box .mono {
  font-size: 2rem;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cd-label {
  font-size: 0.75rem;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* =========================================
   PRIZES
   ========================================= */
.prizes-section {
  padding: 0 0 4rem;
  position: relative;
  z-index: 5;
  margin-top: -3rem;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.prize-card {
  background: var(--bg-card);
  border: 1px solid var(--lime);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(132, 204, 22, 0.05);
}

.prize-card.border-red {
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.05);
}

.prize-icon {
  font-size: 2.5rem;
}

.prize-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

/* =========================================
   FORMS & CARDS
   ========================================= */
.form-section {
  padding: 4rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-header p {
  color: var(--gray-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-light);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

/* Custom Select */
.select-wrapper {
  position: relative;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray-light);
  pointer-events: none;
}

/* File Upload */
.file-upload-box {
  position: relative;
  background: rgba(132, 204, 22, 0.05);
  border: 2px dashed rgba(132, 204, 22, 0.3);
  border-radius: 8px;
  padding: 2.5rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: var(--lime);
  background: rgba(132, 204, 22, 0.1);
}

.file-upload-box input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.upload-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--lime);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--lime);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--lime);
}

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(0,0,0,0.1);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--red);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* =========================================
   SUCCESS & SHARE
   ========================================= */
.success-icon {
  width: 64px; height: 64px;
  background: rgba(132, 204, 22, 0.1);
  color: var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--lime);
}

.success-card h2 { margin-bottom: 1rem; }
.success-card p { color: var(--gray-light); margin-bottom: 2rem; }

.share-panel {
  background: var(--bg-input);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-input-group input { margin-bottom: 0; }

/* =========================================
   GALLERY
   ========================================= */
.gallery-section {
  padding: 4rem 0;
  background: #0f0f0f;
  border-top: 1px solid var(--border);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--gray);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.media-container {
  position: relative;
  aspect-ratio: 9/16;
  background: #000;
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.gallery-card:hover .gallery-thumb { opacity: 1; }

.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(132, 204, 22, 0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.4);
  transition: all 0.3s ease;
}

.play-overlay svg { width: 24px; height: 24px; color: #000; margin-left: 2px; }

.gallery-card:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 10px rgba(132, 204, 22, 0);
}

.category-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid var(--border);
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-title { font-size: 1.25rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-author { color: var(--lime); margin-bottom: 0.75rem; font-size: 0.75rem; }
.gallery-caption { font-size: 0.9rem; color: var(--gray-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.vote-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-btn:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

.vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
}

.vote-btn.voted {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(132, 204, 22, 0.1);
}

/* =========================================
   STATUS OVERLAY
   ========================================= */
#campaign-status {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.status-content h2 { color: var(--lime); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .prizes-grid { grid-template-columns: 1fr; }
  .gallery-header { flex-direction: column; align-items: flex-start; }
}
