/* =========================================
   TroutArena.pro — Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0a7c6e;
  --primary-d: #065a50;
  --accent:    #f5a623;
  --dark:      #0d1b2a;
  --mid:       #1b3a4b;
  --light:     #e8f4f0;
  --white:     #ffffff;
  --text:      #1a2e3b;
  --muted:     #5a7a8a;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,.15);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
ul,ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--light); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-d);
  border-color: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,124,110,.35);
  text-decoration: none;
  color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #e09510;
  border-color: #e09510;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,.4);
  text-decoration: none;
  color: var(--dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
.nav-logo-text span { color: var(--accent); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  display: block;
  padding: .5rem .9rem;
  color: #c8dde5;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.nav-cta { margin-left: .5rem; }

.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: 3px;
  transition: transform .3s, opacity .3s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero p  { color: #b8d8e4; font-size: 1.15rem; margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--primary);
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--white);
  font-weight: 800;
}
.stat-item span {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* =========================================
   GAMES GRID
   ========================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.game-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.game-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.game-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.game-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.game-tag {
  background: var(--light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.game-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
}
.game-card h3 { margin-bottom: .5rem; }
.game-card p  { color: var(--muted); font-size: .9rem; flex: 1; }
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light);
}
.platform-badges { display: flex; gap: .4rem; }
.platform-badge {
  background: var(--dark);
  color: var(--white);
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* =========================================
   SPIN WHEEL SECTION
   ========================================= */
.wheel-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 5rem 0;
  color: var(--white);
  text-align: center;
}
.wheel-section h2 { color: var(--white); margin-bottom: .75rem; }
.wheel-section .subtitle { color: #8ab8c8; font-size: 1.05rem; margin-bottom: 3rem; }

.wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.wheel-container {
  position: relative;
  width: 380px;
  height: 380px;
}
#spinCanvas {
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,.1), 0 0 0 16px rgba(255,255,255,.05), 0 8px 40px rgba(0,0,0,.5);
}
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  z-index: 10;
}
.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: .75rem;
  border: 4px solid var(--white);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .5px;
}
.wheel-center-btn:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.wheel-center-btn:disabled { opacity: .6; cursor: not-allowed; }

.wheel-result {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wheel-result-label {
  font-size: .85rem;
  color: #8ab8c8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .4rem;
}
.wheel-result-fish {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wheel-result-desc {
  font-size: .9rem;
  color: #8ab8c8;
  max-width: 340px;
  text-align: center;
  margin-top: .4rem;
}

/* =========================================
   NEWSLETTER / CTA
   ========================================= */
.newsletter-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.newsletter-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/newsletter-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.3);
}
.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.newsletter-content h2 { color: var(--white); margin-bottom: .75rem; }
.newsletter-content p  { color: #8ab8c8; margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: .85rem 1.2rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .95rem;
  outline: none;
  transition: border-color .3s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.form-success {
  display: none;
  background: rgba(10,124,110,.3);
  border: 1px solid var(--primary);
  color: #a8e6dc;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .95rem;
}
.feature-list li::before {
  content: '✓';
  background: var(--primary);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--muted); }
.contact-details { margin-top: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .2rem; }
.contact-detail span  { color: var(--text); }

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid #d0e4ec;
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .3s;
  font-family: inherit;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: #8ab8c8; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: #8ab8c8;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .5; }

/* =========================================
   GAME DETAIL PAGE
   ========================================= */
.game-detail-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.game-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5);
}
.game-detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.game-detail-info { max-width: 700px; }
.game-detail-info h1 { color: var(--white); margin-bottom: .75rem; }
.game-detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.meta-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.meta-badge.accent { background: var(--accent); color: var(--dark); }

.game-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 0;
}
.game-detail-main h2 { margin: 2rem 0 1rem; }
.game-detail-main p  { color: var(--muted); }

.review-score-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
}
.score-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.score-label { font-size: .85rem; color: #8ab8c8; margin-top: .25rem; }
.score-bars { margin-top: 1.5rem; text-align: left; }
.score-bar-item { margin-bottom: .75rem; }
.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  margin-bottom: .3rem;
  color: #8ab8c8;
}
.score-bar-track {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 1s ease;
}

.info-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-card h4 { margin-bottom: 1rem; color: var(--dark); }
.info-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: .9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child  { font-weight: 600; }

/* =========================================
   POLICY PAGES
   ========================================= */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.policy-content h1 { margin-bottom: .5rem; }
.policy-content .last-updated {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
}
.policy-content h2 { margin: 2.5rem 0 .75rem; font-size: 1.35rem; }
.policy-content h3 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; }
.policy-content p,
.policy-content li { color: var(--muted); }
.policy-content a  { color: var(--primary); }
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.policy-content table th,
.policy-content table td {
  padding: .75rem 1rem;
  border: 1px solid #d0e4ec;
  text-align: left;
}
.policy-content table th { background: var(--light); font-weight: 700; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--dark);
  color: #8ab8c8;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: .9rem; margin-top: .75rem; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  color: #8ab8c8;
  font-size: .9rem;
  text-decoration: none;
  transition: color .3s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #8ab8c8; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--accent); }

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 3px solid var(--primary);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { color: #8ab8c8; font-size: .9rem; margin: 0; }
.cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-btns button {
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s;
}
#cookieAccept {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
#cookieAccept:hover { background: var(--primary-d); }
#cookieDecline {
  background: transparent;
  color: #8ab8c8;
  border-color: rgba(255,255,255,.2);
}
#cookieDecline:hover { border-color: #8ab8c8; color: var(--white); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid  { grid-template-columns: 1fr; }
  .about-img   { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .game-detail-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1rem;
    gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .hero { min-height: 70vh; }
  .wheel-container { width: 300px; height: 300px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .wheel-container { width: 260px; height: 260px; }
}

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 1rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.divider { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin: 1rem auto 0; }
