/* ========== Prize Page ========== */

/* --- Hero --- */
.prize-hero {
  background: linear-gradient(135deg, #1a2a0a 0%, #2d4a14 50%, #1a2a0a 100%);
  position: relative;
  padding: 64px 20px;
  text-align: center;
  overflow: hidden;
}
.prize-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/about.webp') center / cover no-repeat;
  opacity: 0.12;
}
.prize-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.prize-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8em;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.prize-hero-subtitle {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  line-height: 1.7;
}
.prize-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.prize-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Page Layout --- */
.prize-page-layout {
  display: flex;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  align-items: flex-start;
}
.prize-main-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.prize-page-layout .search-featured {
  flex: 0 0 220px;
  min-width: 0;
}

/* --- Section Base --- */
.prize-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.prize-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35em;
  color: var(--primary-color);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0d8;
  text-align: left;
}

/* --- Active Draw Cards --- */
.active-draws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.draw-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.draw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}
.draw-card-badge {
  display: block;
  text-align: center;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 16px;
}
.draw-badge--free {
  background: var(--primary-color);
  color: #fff;
}
.draw-badge--spend {
  background: var(--accent-color);
  color: #fff;
}
.draw-card-image {
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 220px;
}
.draw-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.draw-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.draw-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15em;
  color: #222;
  line-height: 1.35;
}
.draw-card-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.draw-date-label {
  font-size: 0.72em;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.draw-date-value {
  font-size: 1em;
  font-weight: 700;
  color: #333;
}

/* Countdown */
.draw-countdown {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 0;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.countdown-num {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}
.countdown-label {
  font-size: 0.62em;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.5px;
  margin-top: 3px;
}
.countdown-sep {
  font-size: 1.5em;
  font-weight: 700;
  color: #ddd;
  padding-bottom: 14px;
}
.draw-entry-count {
  font-size: 0.88em;
  color: #777;
  font-style: italic;
}
.draw-cta-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95em;
  transition: filter 0.2s, transform 0.15s;
  margin-top: auto;
}
.draw-cta-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.draw-cta--free {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}
.draw-cta--spend {
  background: var(--accent-color);
  color: #fff;
  border: 2px solid var(--accent-color);
}
.draw-result {
  background: #f0f5e8;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.draw-result-label {
  font-size: 0.72em;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.6px;
}
.draw-result-name {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--primary-color);
}
.draw-card--empty {
  background: #fafafa;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  padding: 28px;
}
.draw-empty-msg {
  color: #999;
  font-style: italic;
  font-size: 0.95em;
}
.draw-card-description {
  font-size: 0.9em;
  color: #555;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- How to Win --- */
.prize-how-section {
  background: #f4f6f0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.how-step {
  background: #fff;
  border-radius: 10px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.how-step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.3em;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-step-content h3 {
  font-size: 0.98em;
  color: #222;
  margin-bottom: 6px;
  font-weight: 700;
}
.how-step-content p {
  font-size: 0.86em;
  color: #666;
  line-height: 1.55;
}

/* --- Upcoming Draws --- */
.upcoming-carousel-wrap {
  position: relative;
}
.upcoming-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 12px;
}
.upcoming-carousel::-webkit-scrollbar {
  height: 4px;
}
.upcoming-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.upcoming-card {
  flex: 0 0 210px;
  background: #f9faf6;
  border-radius: 10px;
  border: 1px solid #dde8c8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.upcoming-card-image {
  height: 140px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upcoming-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.upcoming-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upcoming-draw-type {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-color);
}
.upcoming-draw-date {
  font-size: 0.78em;
  color: #999;
}
.upcoming-draw-title {
  font-size: 0.9em;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.upcoming-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: rgba(85, 107, 47, 0.85);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4em;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.upcoming-nav:hover {
  background: var(--primary-color);
}
.upcoming-nav--prev { left: -4px; }
.upcoming-nav--next { right: -4px; }

/* --- Previous Draws --- */
.previous-draws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.previous-draw-card {
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.previous-draw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.previous-draw-image {
  height: 120px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.previous-draw-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.previous-draw-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.previous-draw-type {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--accent-color);
}
.previous-draw-title {
  font-size: 0.9em;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.previous-draw-winner {
  font-size: 0.84em;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.winner-trophy {
  font-size: 0.95em;
}
.previous-draw-date {
  font-size: 0.74em;
  color: #aaa;
  margin-top: 2px;
}

/* --- Terms --- */
.prize-terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prize-terms-list li {
  padding: 10px 14px;
  background: #f9faf6;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 6px 6px 0;
  font-size: 0.91em;
  color: #444;
  line-height: 1.55;
}
.prize-terms-link {
  margin-top: 18px;
  font-size: 0.9em;
  color: #666;
}
.prize-terms-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .prize-page-layout {
    flex-direction: column;
  }
  .prize-page-layout .search-featured {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .prize-hero {
    padding: 44px 16px;
  }
  .prize-hero-title {
    font-size: 2em;
  }
  .prize-section {
    padding: 18px 16px;
  }
  .how-steps {
    grid-template-columns: 1fr 1fr;
  }
  .previous-draws-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .active-draws-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}
