/* ==========================================================================
   CSS Custom Properties & Reset
   ========================================================================== */
:root {
  --bg-color: #fafafa;
  --text-color: #0a0a0a;
  --accent-color: #047857; /* Jade Green */
  --border-color: #e5e5e5;
  --border-focus: #111111;
  --font-display: 'Inter Tight', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

.hidden { display: none !important; }

/* ==========================================================================
   Typography Helpers
   ========================================================================== */
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Status Screen Overlay
   ========================================================================== */
#campaign-status {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-color);
}
.status-message h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Layout 
   ========================================================================== */
#main-content {
  display: flex;
  flex-direction: column;
}

.split-screen {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .split-screen {
    flex-direction: row;
    min-height: calc(100vh - 280px); /* Account for bottom carousel strip */
  }
}

.left-panel {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
  .left-panel {
    padding: 4rem;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    max-width: 55%;
  }
}

.right-panel {
  flex: 1;
  padding: 2rem;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .right-panel {
    padding: 4rem;
  }
}

/* ==========================================================================
   Left Panel Typography & Content
   ========================================================================== */
.brand {
  margin-bottom: 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.125rem;
  color: #555;
}

.subtitle .mono {
  font-size: 1rem;
  color: var(--text-color);
}

.prize-info {
  margin-bottom: 3rem;
}

.prize-card {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  background: #fff;
}

.prize-card .label {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
}

/* ==========================================================================
   Form & Interactions
   ========================================================================== */
#entry-section {
  flex-grow: 1;
}

.drop-zone {
  border: 1px dashed var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 2rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-color);
  background: #f0fdf4;
}

.file-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
}

.drop-content svg {
  color: var(--text-color);
}

.instruction {
  font-weight: 500;
}

.meta {
  color: #666;
}

#file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

#preview-img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border: 1px solid var(--border-color);
}

#remove-file {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  color: #666;
}

#remove-file:hover {
  color: var(--text-color);
}

.form-fields {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .form-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: #444;
}

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  transition: border-color 0.2s;
  border-radius: 0;
}

input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--border-focus);
}

.btn-primary {
  width: 100%;
  padding: 1.25rem;
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-color);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-msg {
  color: #dc2626;
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
   Success State
   ========================================================================== */
.success-card {
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
}

.success-card svg {
  margin-bottom: 1.5rem;
}

.success-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-card p {
  color: #555;
  margin-bottom: 2.5rem;
}

.share-prompt {
  display: block;
  margin-bottom: 1rem;
  color: #444;
}

.share-box {
  display: flex;
  border: 1px solid var(--border-color);
}

.share-box input {
  flex: 1;
  padding: 1rem;
  border: none;
  background: #fafafa;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
}

.share-box input:focus {
  outline: none;
  background: #fff;
}

.btn-secondary {
  padding: 0 1.5rem;
  background: #eee;
  border: none;
  border-left: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* ==========================================================================
   Right Panel Grid
   ========================================================================== */
.submissions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.submissions-header .stat {
  display: flex;
  flex-direction: column;
}

.submissions-header .count {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.submissions-header .subtle {
  color: #888;
}

.grid-4x5 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-grow: 1;
}

.grid-item {
  aspect-ratio: 4/5;
  background: #eaeaea;
  overflow: hidden;
  position: relative;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.grid-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ==========================================================================
   Bottom Strip Carousel
   ========================================================================== */
.bottom-strip {
  border-top: 1px solid var(--border-color);
  background: #fff;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .bottom-strip {
    padding: 2rem 4rem;
  }
}

.strip-header {
  margin-bottom: 1.5rem;
}

.carousel-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
}

.carousel-item {
  flex: 0 0 200px;
  aspect-ratio: 3/4;
  position: relative;
  background: #eee;
  border: 1px solid var(--border-color);
  padding: 8px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item .month-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer-slot {
  padding: 2rem;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}
