/* ==========================================================================
   YAMANPLUS OFFICIAL DESIGN SYSTEM
   Aligned with: /website-design-guide & E-E-A-T Standards
   Theme: Luxury Dark Gold & Emerald | Mobile First (390px - 1440px)
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: #121824;
  --bg-card-hover: #172030;
  --bg-elevated: #1a2334;
  --gold: #ffb800;
  --gold-glow: rgba(255, 184, 0, 0.35);
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ff9e00 100%);
  --emerald: #00f5d4;
  --emerald-dark: #00a896;
  --emerald-glow: rgba(0, 245, 212, 0.25);
  --cyan: #00b4d8;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 184, 0, 0.28);
  --border-emerald: rgba(0, 245, 212, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 25px -5px rgba(255, 184, 0, 0.3);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: 70px; /* space for mobile sticky bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-top: 6px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: var(--text-main);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-dim);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0;
  }
  
  .nav-link:hover {
    color: var(--gold);
  }
  
  .nav-link.active {
    color: var(--gold);
  }
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0e14;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(255, 184, 0, 0.45);
  color: #000000;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-gold);
  color: var(--gold);
}

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

.btn-emerald {
  background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
  color: #05131a;
  box-shadow: 0 8px 25px -5px rgba(0, 245, 212, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  color: #000000;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.drawer-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Sticky Bottom CTA Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 24, 36, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  z-index: 999;
}

@media (min-width: 992px) {
  .sticky-mobile-bar {
    display: none;
  }
}

.sticky-mobile-bar .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.6rem 0.5rem;
  min-height: 44px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-dim);
}

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

/* E-E-A-T Author & Insight Box */
.eeat-meta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.expert-insight-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(18, 24, 36, 0.9) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.expert-insight-card::before {
  content: '★ EXPERT INSIGHT';
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* TL;DR Box */
.tldr-box {
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.tldr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

/* Hero Section */
.hero-section {
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-visual:hover img {
  transform: scale(1.03);
}

/* Feature Cards & Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.card-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Steps / How To */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.step-num {
  background: var(--gold-gradient);
  color: #0b0e14;
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-container {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsible Gaming Badge */
.responsible-gaming-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .responsible-gaming-box {
    flex-direction: row;
    align-items: center;
  }
}

.rg-badge {
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: center;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

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

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

.footer-links a:hover {
  color: var(--emerald);
  transform: translateX(3px);
  display: inline-block;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Badge & Trust Ribbons */
.trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
