/* =============================================
   LUCKY FISHER - Main Stylesheet
   ============================================= */

:root {
  --primary: #0a6e9e;
  --primary-dark: #074f73;
  --accent: #f5a623;
  --accent-dark: #d4891a;
  --bg-dark: #0d1b2a;
  --bg-mid: #1a2f45;
  --bg-light: #f4f8fb;
  --text-light: #e8f4fd;
  --text-muted: #8ab4cc;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.18);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ---- HEADER / NAV ---- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--primary);
  padding: 0 2rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.logo span { color: var(--accent); }
.logo-icon { font-size: 1.8rem; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav ul li a {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero h1 { color: var(--white); max-width: 700px; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 580px; margin-bottom: 2rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--bg-dark); }

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--primary-dark); }

/* ---- SECTIONS ---- */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { color: var(--white); margin-bottom: 0.8rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

.bg-mid { background: var(--bg-mid); }
.bg-dark { background: var(--bg-dark); }

/* ---- GAME CARDS ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-mid);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

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

.game-card-body { padding: 1.5rem; }
.game-card-body h3 { color: var(--white); margin-bottom: 0.5rem; }
.game-card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.game-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(10,110,158,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(245,166,35,0.3);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.rating-num { color: var(--text-muted); font-size: 0.9rem; }

/* ---- WHEEL SECTION ---- */
.wheel-section { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%); }

.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wheel-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  max-width: 90vw;
  max-height: 90vw;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(245,166,35,0.35), 0 0 80px rgba(10,110,158,0.2);
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 36px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(245,166,35,0.6));
  z-index: 10;
}

.wheel-controls { text-align: center; }
.wheel-controls h3 { color: var(--white); margin-bottom: 0.5rem; }
.wheel-controls p { color: var(--text-muted); margin-bottom: 1.5rem; }

#spinBtn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
#spinBtn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 6px 28px rgba(245,166,35,0.55); }
#spinBtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

#wheelResult {
  margin-top: 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  text-align: center;
  animation: popIn 0.4s ease;
}
.result-box .fish-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.3rem; }
.result-box .fish-name { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.result-box .fish-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3rem; }

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-mid));
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-box h2 { color: var(--white); margin-bottom: 0.8rem; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

.newsletter-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.5rem;
  color: var(--accent);
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-mid);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-detail-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-detail-text strong { color: var(--white); display: block; margin-bottom: 0.2rem; }
.contact-detail-text span { color: var(--text-muted); font-size: 0.9rem; }

.contact-form-box {
  background: var(--bg-mid);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.07);
}

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; font-weight: 600; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-dark);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-dark); }

.form-msg {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-msg.success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; display: block; }
.form-msg.error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #f87171; display: block; }

/* ---- ABOUT PAGE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 380px;
}

.about-text h2 { color: var(--white); margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.team-avatar { font-size: 3rem; margin-bottom: 0.8rem; }
.team-card h4 { color: var(--white); margin-bottom: 0.3rem; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---- REVIEWS PAGE ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-mid);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.reviewer-avatar { font-size: 2.2rem; }
.reviewer-info strong { color: var(--white); display: block; }
.reviewer-info span { color: var(--text-muted); font-size: 0.85rem; }
.review-card p { color: var(--text-muted); font-size: 0.92rem; font-style: italic; }

/* ---- COOKIE BANNER ---- */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-mid);
  border-top: 2px solid var(--primary);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
#cookieBanner p { color: var(--text-muted); font-size: 0.9rem; margin: 0; flex: 1; min-width: 200px; }
#cookieBanner p a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-cookie-accept {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--accent-dark); }
.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--white); color: var(--white); }

/* ---- FOOTER ---- */
footer {
  background: #060e18;
  border-top: 2px solid var(--primary);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }

/* ---- POLICY PAGES ---- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.policy-content h1 { color: var(--white); margin-bottom: 0.5rem; }
.policy-content .last-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.policy-content h2 { color: var(--accent); font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.policy-content p, .policy-content li { color: var(--text-muted); }
.policy-content ul, .policy-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-content ul li, .policy-content ol li { margin-bottom: 0.4rem; }
.policy-content a { color: var(--accent); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--primary);
    gap: 0.3rem;
  }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 0.7rem 1rem; }

  .hero { min-height: 70vh; }
  .wheel-wrapper { width: 300px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input[type="email"] { min-width: unset; }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ---- SCROLL TO TOP ---- */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  z-index: 500;
  transition: transform var(--transition);
}
#scrollTop:hover { transform: scale(1.1); }
#scrollTop.visible { display: flex; }
