/* CSS Variables - Rustic Outdoorsy Theme */
:root {
  --color-primary: #3c5a38; /* Forest Green */
  --color-primary-hover: #2e462b;
  --color-accent: #d4a373; /* Earthy Tan/Wood */
  --color-accent-hover: #c08e5c;
  --color-dark: #1a1a1a;
  --color-text: #e8e6e1;
  --color-text-muted: #a3a099;
  --color-bg-glass: rgba(26, 26, 26, 0.7);
  --color-border: rgba(255, 255, 255, 0.15);
  
  --font-heading: 'Rokkitt', serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 8px;
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #0f110c;
}

/* Background Layers */
.site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/6urp6w/69c6e7d1909222.81473201.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.site-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 17, 12, 0.75) 0%, rgba(26, 31, 22, 0.7) 100%);
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  margin-bottom: 3rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.logo svg {
  color: var(--color-accent);
}

/* Main Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  flex: 1;
}

/* Left Column: Pitch */
.pitch-column {
  max-width: 540px;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212, 163, 115, 0.2);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: inline-block;
}
.countdown-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.countdown-timer {
  display: flex;
  gap: 1.5rem;
}
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.time-block span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.time-block small {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* Right Column: Cards */
.card-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.card-panel h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Form Styles */
.form-instructions {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(60, 90, 56, 0.3);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 1.5rem;
}
.disclaimer a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Alerts */
.alert-error {
  background: rgba(220, 38, 38, 0.1);
  border-left: 4px solid #dc2626;
  color: #fca5a5;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Post-Entry Results */
#thank-you-header {
  text-align: center;
  margin-bottom: 2rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(60, 90, 56, 0.2);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Dividers */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}
.divider span {
  padding: 0 1rem;
}

/* Share Panel */
.share-panel {
  text-align: center;
}
.share-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.share-panel p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.share-link-box {
  display: flex;
  margin-bottom: 1.5rem;
}
.share-link-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
}
.share-link-box input:focus {
  outline: none;
}
#copy-link-btn {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  padding: 0 1.5rem;
  font-weight: 600;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: background 0.2s;
}
#copy-link-btn:hover {
  background: var(--color-accent-hover);
}

.social-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.social-btn {
  display: inline-block;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  transition: transform 0.2s;
}
.social-btn:hover {
  transform: translateY(-2px);
}
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

/* Footer & Modals */
.site-footer {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.link-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover {
  color: #fff;
}

#wbx-powered-by-slot {
  margin: 2rem auto 0;
  text-align: center;
  width: 100%;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}
.modal-content {
  background: #1a1a1a;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #fff;
}
.modal-content h2 {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.5rem;
}
.rules-text {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pitch-column {
    text-align: center;
    max-width: 100%;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .countdown-timer {
    justify-content: center;
    gap: 1rem;
  }
  .time-block span {
    font-size: 2rem;
  }
  .card-panel {
    padding: 1.5rem;
  }
}
