/* =============================================================================
   main.css — Global Styles, Colors, Typography, Layout
   maxim88.today Casino Directory
   ============================================================================= */

/* =============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');


/* =============================================================================
   2. DESIGN TOKENS
   ============================================================================= */

:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-header: #13242C;
  --bg-nav: #19272F;
  --bg-gold-highlight: #FFFDF5;

  /* Brand Colors */
  --color-primary: #39B549;
  --color-primary-hover: #19723C;
  --color-primary-dark: #0A974B;
  --color-accent: #DEC276;
  --color-accent-dark: #D19F22;
  --color-success: #2BE53D;

  /* Text */
  --text-primary: #222222;
  --text-secondary: #666666;
  --text-light: #FFFFFF;
  --text-light-secondary: #DADADA;
  --text-muted: #999999;

  /* Borders */
  --border-light: #E5E5E5;
  --border-gold: #DEC276;
}


/* =============================================================================
   3. CSS RESET
   ============================================================================= */

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

body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

a {
  color: inherit;
}

/* Content area links — green and bold for SEO anchor text visibility */
.article-body a,
.seo-content a,
.seo-block a:not(.btn-primary):not(.btn-secondary),
.content-page p a:not(.btn-primary):not(.btn-secondary),
.content-page li a:not(.btn-primary):not(.btn-secondary),
.casino-card a:not(.btn-primary):not(.btn-secondary),
.section p a:not(.btn-primary):not(.btn-secondary),
.section li a:not(.btn-primary):not(.btn-secondary),
.faq-answer a:not(.btn-primary):not(.btn-secondary) {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.article-body a:hover,
.seo-content a:hover,
.seo-block a:hover,
.content-page p a:hover,
.content-page li a:hover,
.section p a:hover,
.section li a:hover,
.faq-answer a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}


/* =============================================================================
   4. BASE TYPOGRAPHY
   ============================================================================= */

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

small,
.text-sm {
  font-size: 13px;
}

p {
  margin-bottom: 0;
}


/* =============================================================================
   5. LAYOUT
   ============================================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-dark {
  background: var(--bg-header);
  color: var(--text-light);
}

.section-gold {
  background: var(--bg-gold-highlight);
  border-top: 2px solid var(--border-gold);
}


/* =============================================================================
   6. GRID SYSTEM
   ============================================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}


/* =============================================================================
   7. HEADER STYLES
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--bg-header);
  padding: 12px 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 8px;
}

.lang-switcher {
  flex-shrink: 0;
}

.logo img {
  height: 30px;
  width: auto;
}

.lang-switcher {
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher:hover {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-light-secondary);
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 28px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}


/* =============================================================================
   8. NAVIGATION
   ============================================================================= */

.main-nav {
  background: var(--bg-nav);
  padding: 10px 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Mobile overlay nav — hidden by default */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-header);
  z-index: 2000;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-light-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a {
  display: block;
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-primary);
}


/* =============================================================================
   9. FOOTER
   ============================================================================= */

.site-footer {
  background: var(--bg-header);
  color: var(--text-light-secondary);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--color-accent);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 2;
  display: inline-block;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-payments {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.footer-payments img {
  opacity: 0.7;
  height: 24px;
  width: auto;
}

.footer-sponsor {
  text-align: center;
  padding: 20px 0;
}

.footer-sponsor img {
  max-width: 600px;
  width: 100%;
  opacity: 0.8;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}


/* =============================================================================
   10. BREADCRUMB
   ============================================================================= */

.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-primary);
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--text-muted);
}


/* =============================================================================
   11. UTILITY CLASSES
   ============================================================================= */

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

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

.text-green {
  color: var(--color-primary);
}

.text-gold {
  color: var(--color-accent-dark);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }


/* =============================================================================
   12. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* --- Tablet (≤1200px) --- */
@media (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Show hamburger, hide desktop nav links */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  /* Hide register/login buttons on mobile, only show hamburger */
  .header-right .btn-primary,
  .header-right .btn-secondary {
    display: none;
  }

  /* Footer stacks to single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Container padding reduction */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 30px 0;
  }
}
