/* ========================================
   Uni Fund Access — Giveaway Page
   PCH-Inspired SuperPrize Layout
   ======================================== */

:root {
  --navy: #002868;
  --red: #BF0A30;
  --eu-blue: #003399;
  --gold: #FFD700;
  --gold-dark: #E6C200;
  --light-bg: #f4f7fb;
  --white: #ffffff;
  --dark-text: #222;
  --muted: #555;
}

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

/* ========================================
   Language Switcher Dropdown
   ======================================== */
.lang-dropdown {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
}

.lang-toggle {
  background: var(--navy);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lang-toggle:hover {
  background: var(--red);
  transform: scale(1.1);
}

.lang-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  background: rgba(0, 40, 104, 0.95);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-menu button {
  background: transparent;
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.2s;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--red);
}

/* Hide Google Translate bar */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.7;
}

/* ============ NAV ============ */
.top-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.nav-logo {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-left: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--red) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: #d40b36 !important;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  background:
    linear-gradient(135deg, rgba(10,10,46,0.82) 0%, rgba(0,40,104,0.78) 30%, rgba(191,10,48,0.72) 70%, rgba(139,0,0,0.8) 100%),
    url('background1.jpg') center/cover no-repeat;
  text-align: center;
  padding: 110px 20px 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.hero-amount {
  font-size: 6rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 4px 20px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2);
  line-height: 1;
  margin-bottom: 5px;
  animation: prizeGlow 2s ease-in-out infinite alternate;
}

@keyframes prizeGlow {
  0%   { text-shadow: 0 4px 20px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2); }
  100% { text-shadow: 0 4px 30px rgba(255,215,0,0.65), 0 0 90px rgba(255,215,0,0.35); }
}

.hero-prize-name {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 30px;
}

/* ============ BUTTONS ============ */
.btn-enter {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-text);
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
}

.btn-enter:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

.btn-enter-lg {
  padding: 18px 50px;
  font-size: 20px;
}

.btn-back {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: background 0.3s;
}

.btn-back:hover { background: var(--eu-blue); }

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat { text-align: center; padding: 0 40px; }

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-unit {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: #ddd;
}

/* ============ SECTION COMMONS ============ */
.winners-photos,
.video-section,
.details-section,
.entry-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 60px 30px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.winners-photos h2,
.video-section h2,
.details-section h2,
.entry-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 35px;
}

/* ============ PHOTO GRID ============ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.photo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  padding: 18px 20px;
  text-align: center;
}

.photo-caption strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 5px;
}

.photo-caption p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============ VIDEO GRID ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background: #000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

.video-card video {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

.video-label {
  text-align: center;
  padding: 14px 15px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ============ DETAILS ============ */
.details-content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child { border-bottom: none; }

.detail-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.detail-item p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.details-cta-block {
  background: linear-gradient(135deg, #f8f4e8, #fdf9ed);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.details-cta-block h3 {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.details-cta-block p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

.giveaway-deadline {
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 8px;
  margin: 25px 0 15px;
}

.deadline-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.deadline-date {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.2rem;
}

.guaranteed-text {
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 25px !important;
}

/* ============ ENTRIES BANNER ============ */
.entries-banner {
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 30px;
}

.entries-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.entries-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* ============ ENTRY FORM ============ */
.entry-section { text-align: center; }

.entry-section > p {
  color: var(--muted);
  margin-bottom: 25px;
}

.giveaway-form {
  max-width: 480px;
  margin: 0 auto;
}

.giveaway-form input,
.giveaway-form select {
  width: 100%;
  padding: 15px 18px;
  margin: 8px 0;
  border: 2px solid #d0d8e8;
  font-size: 16px;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--white);
  color: var(--dark-text);
}

.giveaway-form input:focus,
.giveaway-form select:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,40,104,0.12);
}

.giveaway-form input::placeholder { color: #999; }

.giveaway-form .btn-enter-lg {
  width: 100%;
  margin-top: 12px;
}

/* ============ FORM SUCCESS ============ */
.form-success {
  text-align: center;
  padding: 40px;
  background: #e8f5e9;
  border-radius: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.success-check {
  font-size: 3.5rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

.form-success h3 {
  color: #2e7d32;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted);
  margin-bottom: 5px;
}

.form-alt {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-alt a {
  color: var(--navy);
  font-weight: 600;
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }
footer p + p { margin-top: 8px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }

  .nav-links.nav-open { display: flex; }
  .nav-toggle { display: block; }

  .hero-amount { font-size: 3.5rem; }
  .hero-prize-name { font-size: 1.6rem; letter-spacing: 3px; }
  .hero-label { font-size: 1.2rem; }

  .stats-bar { flex-direction: column; gap: 25px; padding: 35px 20px; }
  .stat-divider { width: 80px; height: 2px; }
  .stat-number { font-size: 2.2rem; }

  .photo-grid { grid-template-columns: 1fr; }
  .photo-card img { height: 250px; }
  .video-grid { grid-template-columns: 1fr; }

  .winners-photos,
  .video-section,
  .details-section,
  .entry-section {
    margin: 20px 12px;
    padding: 40px 20px;
  }

  .details-cta-block { padding: 30px 20px; }
  .details-cta-block h3 { font-size: 1.5rem; }
  .entries-banner h2 { font-size: 1.4rem; }
  .btn-enter-lg { padding: 14px 30px; font-size: 17px; }
}

@media (max-width: 480px) {
  .hero-amount { font-size: 2.8rem; }
  .hero-prize-name { font-size: 1.3rem; }
  .stat-number { font-size: 1.8rem; }

  .winners-photos h2,
  .video-section h2,
  .details-section h2,
  .entry-section h2 { font-size: 1.6rem; }
}