/*
Theme Name: Casino Theme
Theme URI:
Description: Custom casino theme with canonical/hreflang management
Version: 1.0.0
Author: Your Name
Text Domain: casino-theme
*/

/* =============================================
   DESIGN TOKENS
   To retheme: change values below only.
   AI prompt will give you these values.
   ============================================= */
:root {
  
  --color-primary:      #1565C0;
  --color-secondary:    #1976D2;
  --color-accent:       #FFA726;
  --color-cta:          #FFA726;
  --color-cta-hover:    #FB8C00;
  --color-background:   #FFFFFF;
  --color-surface:      #F5F7FA;
  --color-text:         #2D2D2D;
  --color-text-muted:   #666666;
  --color-border:       #E0E0E0;
  --color-header-bg:    #1565C0;
  --color-footer-bg:    #1A1A2E;
  --color-footer-text:  #AAAAAA;

  
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;

  
  --border-radius:    8px;
  --border-radius-lg: 16px;

  
  --container-width: 1200px;
  --section-padding: 80px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #ffffff;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
}

.lang-switcher a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 48px 0 24px;
}

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

.footer-brand .site-logo-text {
  font-size: 18px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--color-footer-text);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 12px;
}

.rg-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rg-logos a {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.rg-logos a:hover {
  opacity: 1;
}

.rg-logos img {
  height: 28px;
  width: auto;
}

.payment-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.payment-logos img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.payment-logos img:hover {
  opacity: 0.8;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-cta);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,167,38,0.35);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
}

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================
   BONUS TABLE (shortcode output)
   ============================================= */
.bonus-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.bonus-table thead {
  background: var(--color-primary);
  color: #ffffff;
}

.bonus-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bonus-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.bonus-table tbody tr:last-child td {
  border-bottom: none;
}

.bonus-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.bonus-table tbody tr:hover {
  background: #EEF3FB;
}

.bonus-amount {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
}

.bonus-rating {
  color: var(--color-accent);
  font-weight: 600;
}

/* =============================================
   RATING STARS
   ============================================= */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
  font-size: 16px;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}

/* =============================================
   AGE GATE
   ============================================= */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.age-gate-box {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.age-gate-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.age-gate-box p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.hero { position: relative; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.35) 100%
    );
    z-index: 0;
}

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

.hero-inner--center {
    justify-content: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-inner--center .hero-actions {
    justify-content: center;
}

.hero-inner--center .section-subtitle,
.hero-inner--center .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-terms {
    margin-top: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.casino-hero .hero-inner {
    max-width: 680px;
}

.casino-content {
    max-width: 960px;
    margin: 0 auto;
}

.page-content-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-text);
}

.page-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--color-text);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--color-text);
}

.page-content p { margin-bottom: 16px; }

.page-content ul,
.page-content ol {
    margin: 0 0 16px 24px;
    list-style: disc;
}

.page-content ol { list-style: decimal; }

.page-content li { margin-bottom: 6px; }

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.page-content th,
.page-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
}

.page-content th {
    background: var(--color-surface);
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 60px 0;
    position: relative;
}

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

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
}

@media (max-width: 768px) {
    .hero-inner--center { text-align: left; }
    .hero-inner--center .hero-actions { justify-content: flex-start; }
    .page-content-wrap { max-width: 100%; }
}

.lang-flag,
.lang-dropdown-item span:first-child {
    font-family: "Apple Color Emoji", "Segoe UI Emoji",
                 "Noto Color Emoji", "Android Emoji",
                 "EmojiSymbols", sans-serif;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.page-content p + p { margin-top: 16px; }
.page-content p { margin-bottom: 0; }

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child {
    margin-top: 0;
}

.casino-content p + p { margin-top: 16px; }
.casino-content p { margin-bottom: 0; }

.casino-content h1,
.casino-content h2,
.casino-content h3,
.casino-content h4 {
    margin-top: 36px;
    margin-bottom: 14px;
}

.entry-content p,
.wp-content p { margin-bottom: 16px; }

/* ── Navigation ── */
.nav-toggle { display: none; }

/* Desktop nav */
@media (min-width: 769px) {
    .site-nav { display: flex; }
    .mobile-subnav { display: none; }
}

/* Mobile — hide header nav, show subnav bar instead */
@media (max-width: 768px) {
    .site-nav { display: none; }

    .mobile-subnav {
        background: var(--color-secondary, #1976D2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        overflow-x: auto;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-subnav ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .mobile-subnav ul li a {
        display: block;
        padding: 10px 20px;
        color: rgba(255,255,255,0.9);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .mobile-subnav ul li a:hover {
        color: #fff;
        background: rgba(255,255,255,0.08);
    }
}

/* ── Language switcher — no flags ── */
.lang-flag { display: none; }

/* ── Hero two-column desktop ── */
@media (min-width: 769px) {
    .fp-hero {
        padding: 80px 0;
        min-height: 440px;
        display: flex;
        align-items: center;
    }

    .fp-hero .hero-inner {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 40px;
        align-items: center;
    }

    .fp-hero .hero-title {
        font-size: clamp(32px, 3.5vw, 52px);
        line-height: 1.1;
    }

    .fp-hero .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fp-hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 700;
    }

    .fp-hero .hero-actions .btn-secondary {
        background: transparent;
        color: #fff;
        border: 2px solid rgba(255,255,255,0.4);
        box-shadow: none;
    }

    .fp-hero .hero-actions .btn-secondary:hover {
        border-color: #fff;
        background: rgba(255,255,255,0.1);
        transform: none;
    }
}

@media (max-width: 768px) {
    .fp-hero { padding: 48px 0; }
    .fp-hero .hero-actions {
        max-width: 300px;
        margin: 0 auto;
    }
}
