/* UTILITIES */
:root {
  --aubergine: #4c1d95;
  --pink: #f472b6;
  --cream: #f5f5dc;
  --charcoal: #18181b;
  --cream-dark: #e5e5cb;
  --bg-out: #d1d1b8;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-out);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

.hidden { display: none !important; }
.center { text-align: center; }

/* TEXTURES */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* LAYOUT */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--cream);
  border: 4px solid var(--charcoal);
  box-shadow: 16px 16px 0 rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  border-bottom: 4px solid var(--charcoal);
  padding: 1.5rem 2rem;
  background: var(--aubergine);
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pink);
  margin: 0;
  line-height: 1;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 4px solid var(--charcoal);
  background: var(--cream);
}

.hero-content {
  padding: 4rem 3rem;
  border-right: 4px solid var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.display-text {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1rem 0;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.hero-content .display-text {
  font-size: 4.5rem;
  color: var(--aubergine);
}

.subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--charcoal);
}

.prize-box {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2rem;
  border: 2px solid var(--charcoal);
  transform: rotate(-1deg);
  transition: transform 0.3s;
}

.prize-box:hover {
  transform: rotate(0deg);
}

.prize-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  color: var(--pink);
}

.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prize-list li {
  font-family: 'Space Mono', monospace;
  font-size: 1.05rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(245, 245, 220, 0.2);
  display: flex;
  align-items: center;
}

.prize-list li:before {
  content: '→';
  color: var(--pink);
  margin-right: 12px;
  font-weight: bold;
}

.hero-image {
  background: var(--aubergine);
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SPLIT LAYOUT */
.layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 4px solid var(--charcoal);
}

/* SUBMISSION SECTION */
.submission-section {
  padding: 4rem 3rem;
  border-right: 4px solid var(--charcoal);
  background: var(--cream);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2.5rem;
}

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

.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--charcoal);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  background: var(--cream);
  border: 2px solid var(--charcoal);
  border-radius: 0;
  box-sizing: border-box;
  transition: all 0.2s;
  color: var(--charcoal);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
  background: #fff;
}

.mono-input {
  font-family: 'Space Mono', monospace !important;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2318181b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  cursor: pointer;
}

.file-upload-wrapper {
  position: relative;
}

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

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  border: 2px dashed var(--charcoal);
  background: var(--cream-dark);
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--aubergine);
}

.file-upload-wrapper:hover .file-upload-label {
  background: rgba(244, 114, 182, 0.1);
  border-color: var(--pink);
}

.submit-btn {
  width: 100%;
  padding: 1.25rem;
  margin-top: 1rem;
  background: var(--aubergine);
  color: var(--cream);
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--charcoal);
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--charcoal);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--pink);
}

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

/* ERROR MESSAGE */
.form-error {
  color: var(--cream);
  background: #e11d48;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace;
  border: 2px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
}

/* THANK YOU STATE */
#thank-you-container {
  padding: 3rem 0;
}
#thank-you-container h2 {
  color: var(--aubergine);
}
#thank-you-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

#share-panel {
  background: var(--cream-dark);
  padding: 2rem;
  border: 2px solid var(--charcoal);
}

#share-panel h3 {
  margin-top: 0;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.share-row {
  display: flex;
  margin-top: 1rem;
}

.share-row input {
  border-right: none;
  flex: 1;
}

.share-row button {
  background: var(--pink);
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font-family: 'Anton', sans-serif;
  padding: 0 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.share-row button:hover {
  background: #fff;
}

/* JUDGES PANEL */
.judges-panel {
  padding: 4rem 2rem;
  background-color: var(--cream-dark);
}

.judges-intro {
  font-family: 'Space Mono', monospace;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.judge {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--charcoal);
  padding: 0.75rem;
  box-shadow: 4px 4px 0 var(--charcoal);
  transition: transform 0.2s;
}

.judge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink);
}

.judge img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--charcoal);
  margin-right: 1.25rem;
}

.judge-info h3 {
  margin: 0 0 0.25rem 0;
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.judge-info p {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--aubergine);
  font-weight: 700;
}

/* CREATOR WALL */
.creator-wall {
  padding: 5rem 3rem;
  background: var(--charcoal);
  color: var(--cream);
}

.wall-header .section-title {
  color: var(--cream);
  margin-bottom: 3rem;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.creator-card {
  background: var(--cream);
  border: 2px solid var(--pink);
  color: var(--charcoal);
  box-shadow: 8px 8px 0 var(--aubergine);
  transition: transform 0.3s;
}

.creator-card:hover {
  transform: translateY(-8px);
}

.card-img {
  position: relative;
  aspect-ratio: 1;
  border-bottom: 2px solid var(--charcoal);
  overflow: hidden;
  background: var(--charcoal);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.creator-card:hover .card-img img {
  transform: scale(1.08);
  opacity: 0.8;
}

.play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn {
  width: 64px;
  height: 64px;
  background: var(--pink);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-left: 6px; /* optically center play icon */
  pointer-events: auto;
  box-shadow: 4px 4px 0 var(--charcoal);
}

.creator-card:hover .play-btn {
  opacity: 1;
  transform: scale(1);
}

.play-btn:hover {
  background: var(--cream);
}

.card-info {
  padding: 1.25rem;
}

.card-info h3 {
  margin: 0 0 0.5rem 0;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--aubergine);
}

.card-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 700;
}

.mono-text {
  font-family: 'Space Mono', monospace;
}

/* POWERED BY SLOT */
#wbx-powered-by-slot {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: var(--charcoal);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-content {
    padding: 3rem 2rem;
  }
  .hero-content .display-text {
    font-size: 3.5rem;
  }
  .submission-section {
    padding: 3rem 2rem;
  }
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-content {
    border-right: none;
    border-bottom: 4px solid var(--charcoal);
  }
  .hero-image {
    aspect-ratio: 16/9;
  }
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .submission-section {
    border-right: none;
    border-bottom: 4px solid var(--charcoal);
  }
  body {
    padding: 0;
  }
  .page-wrapper {
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 500px) {
  .hero-content .display-text {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .wall-grid {
    grid-template-columns: 1fr;
  }
  .share-row {
    flex-direction: column;
  }
  .share-row input {
    border-right: 2px solid var(--charcoal);
    border-bottom: none;
  }
  .share-row button {
    padding: 1rem;
  }
  header {
    padding: 1.25rem;
  }
  .logo {
    font-size: 1.8rem;
  }
}
