/* main2.css - SaarGames.com Design System & Responsive Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070d0d;
  --bg-card: #0f1c1b;
  --bg-surface: #142624;
  --bg-glass: rgba(15, 28, 27, 0.85);
  
  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-dark: #064e3b;

  --gold-accent: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(52, 211, 153, 0.15);
  --border-gold: rgba(245, 158, 11, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px var(--emerald-glow);
}

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

/* Accessibility: Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--gold-accent);
  color: #000;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
  outline: 3px solid #fff;
}

/* Keyboard Accessibility Focus Visible Outline */
:focus-visible {
  outline: 3px solid var(--gold-accent) !important;
  outline-offset: 3px !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  word-break: break-word;
}

a {
  color: var(--emerald-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--emerald-light) 60%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fef08a 0%, var(--gold-accent) 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-darker {
  background-color: rgba(2, 44, 34, 0.25);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px var(--emerald-primary));
}

.brand-logo span.accent {
  color: var(--emerald-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-primary), var(--gold-accent));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--emerald-glow);
  border: 1px solid var(--emerald-light);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--emerald-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #b45309 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-accent) 100%);
  transform: translateY(-2px);
  color: #000;
}

/* Section Header */
.section-header {
  max-width: 720px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section with Generated Image Background */
.hero-section {
  position: relative;
  padding: 6rem 0 4rem 0;
  background: linear-gradient(180deg, rgba(7, 13, 13, 0.78) 0%, rgba(7, 13, 13, 0.96) 100%), url('../images/hero_bg.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 -40px 60px var(--bg-dark);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.hero-stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 0.85rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-3px);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--emerald-light);
  display: block;
}

.hero-stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Steps Process Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.15rem;
  position: relative;
  text-align: center;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), #b45309);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  font-size: 1.05rem;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Paytable & Game Mechanics Info Box */
.paytable-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.paytable-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.35rem;
  text-align: center;
}

.paytable-item-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-light);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paytable-item-mult {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* News & Article Cards */
.news-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--bg-surface) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-img svg {
  width: 48px;
  height: 48px;
  fill: var(--emerald-light);
  opacity: 0.7;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

/* Content Page Banner Header */
.page-banner {
  padding: 4.5rem 0 2.5rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(7, 13, 13, 0) 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

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

.breadcrumb span.current {
  color: var(--emerald-light);
}

/* Detailed Article / Legal Container */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 2.5rem 0;
}

.legal-section {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h3 {
  font-size: 1.35rem;
  color: var(--emerald-light);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-light);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section p, .legal-section ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-section ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.legal-section ul li {
  position: relative;
  margin-bottom: 0.4rem;
}

.legal-section ul li::before {
  content: '◆';
  position: absolute;
  left: -1.1rem;
  color: var(--gold-accent);
  font-size: 0.65rem;
  top: 4px;
}

/* Cards & Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--emerald-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--emerald-light);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Accordion FAQ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--emerald-primary);
}

.accordion-header {
  padding: 1.15rem 1.35rem;
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.accordion-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--emerald-light);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.35rem 1.35rem 1.35rem;
  color: var(--text-muted);
  display: none;
  font-size: 0.92rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--emerald-light);
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Compliance Disclaimer Bar */
.compliance-bar {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.compliance-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
  padding: 6px 14px;
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.compliance-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #040808;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--emerald-light);
}

.org-details-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-size: 0.82rem;
}

.org-details-box strong {
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Age Disclaimer Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--emerald-primary);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.25);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-badge {
  display: inline-block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--gold-accent);
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 54px;
  margin-bottom: 1rem;
}

/* EXCELLENT MOBILE & TABLET RESPONSIVE BREAKPOINTS (NO LAYOUT SHIFT) */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 3.25rem 0; }
  
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: rgba(7, 13, 13, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    display: none;
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.open { display: flex; }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .page-banner { padding: 3.5rem 0 2rem 0; }
  .legal-content { padding: 1.5rem 1rem; margin: 1.75rem 0; border-radius: var(--radius-lg); }
  .legal-section h3 { font-size: 1.15rem; }
  .compliance-bar { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2, .hero-stats-grid, .steps-grid { grid-template-columns: 1fr; }
  .paytable-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .btn { width: 100%; }
  .flex-center { flex-direction: column; width: 100%; }
  .hero-stat-card { padding: 0.85rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .brand-logo { font-size: 1.2rem; }
  .brand-logo img { width: 32px; height: 32px; }
}
