/* 
  Golisimo - Main Stylesheet
  Colors matching golisimo.com (Dark Teal theme with Cyan & Orange accents)
*/

:root {
  /* Brand Colors adapted from user request */
  --bg-dark: #0b0f19;
  /* Main body background */
  --bg-sidebar: #111827;
  /* Left sidebar / Footer */
  --bg-header: #1a233a;
  /* Top Navigation */
  --bg-card: #1f2943;
  /* Game cards, content blocks */
  --bg-card-hover: #2d3b5e;

  --text-main: #ffffff;
  --text-muted: #aeb3c7; 
  --text-ghost: #52586f;

  /* Using user's cyan/petrol colors */
  --accent-cyan-light: #1a799f;
  --accent-cyan-dark: #105266;
  
  --accent-orange-light: #ffb000;
  --accent-orange-dark: #ff5a00;

  --border-color: #585c834d; /* from --color-border */

  /* Typography */
  --font-heading: 'Oswald', 'Roboto Condensed', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
  color: var(--text-main);
}

h2 {
  font-size: 2rem;
  color: var(--accent-cyan-light);
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--accent-cyan-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-main);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(180deg, #00fff2 0%, #00c4bb 100%);
  color: #031416;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 242, 231, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1afff5 0%, #00d9cf 100%);
  box-shadow: 0 6px 20px rgba(0, 255, 242, 0.6);
}

.btn-secondary {
  background: linear-gradient(90deg, var(--accent-orange-light) 0%, var(--accent-orange-dark) 100%);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-cyan-light);
  color: var(--accent-cyan-light);
}

.btn-outline:hover {
  background: var(--accent-cyan-light);
  color: var(--bg-dark);
}

/* Layout */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}


/* Header Navigation */
.header {
  background-color: var(--bg-header);
  min-height: 80px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 15px;
}

.header-logo {
  flex-shrink: 1;
  min-width: 120px;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 45px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: clamp(10px, 1.5vw, 25px);
  align-items: center;
  flex-shrink: 1;
}

.nav-link {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-cyan-light);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Smaller buttons specifically in the header */
.header-actions .btn {
  padding: 7px 16px;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  white-space: nowrap;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('../foto/b/baner1.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 450px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px 40px;
  border-bottom: 2px solid var(--accent-cyan-dark);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 30, 33, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin-top: 50px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content .bonus-amount {
  color: var(--accent-orange-light);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* SEO Content Block (1700-2000 words wrapper) */
.seo-content {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.seo-content h2 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-top: 40px;
}

.seo-content h3 {
  color: var(--text-main);
  margin-top: 30px;
}

/* Tables in Content */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.seo-table th,
.seo-table td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.seo-table th {
  background-color: var(--bg-card-hover);
  color: var(--accent-cyan-light);
  font-family: var(--font-heading);
}

/* FAQ Box */
.faq-item {
  background-color: var(--bg-dark);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-cyan-light);
}

.faq-question {
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.slot-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  background-color: var(--bg-card);
}

.slot-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 242, 231, 0.2);
}

.slot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: contain;
  background-color: var(--bg-sidebar);
  display: block;
}

.slot-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.slot-card:hover .slot-card-overlay {
  opacity: 1;
}

.slot-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 20px 10px 10px;
  text-align: center;
  font-family: var(--font-heading);
  pointer-events: none;
}

/* Responsible Gambling Banner */
.rg-banner {
  background-color: #1a1a2e;
  border-top: 3px solid #e0a800;
  border-bottom: 1px solid #333;
  padding: 20px 30px;
  text-align: center;
}
.rg-banner p {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}
.rg-banner a {
  color: #e0a800;
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 40px;
  text-align: center;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* CRITICAL FIX for page width blowout on mobile */
}

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

.footer-text {
  font-size: 0.8rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile Features */
.burger-menu {
  display: none;
  font-size: 30px;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background-color: var(--bg-header);
  border-top: 2px solid var(--accent-cyan-dark);
  z-index: 1000;
  text-align: center;
}

.mobile-sticky-cta .btn {
  width: 100%;
  font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  padding: 12px 10px;
  border-radius: 6px;
  margin: 0;
  background: linear-gradient(90deg, var(--accent-orange-light) 0%, var(--accent-orange-dark) 100%);
  color: #fff;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.25;
}

/* Responsive */
@media (max-width: 992px) {
  body {
    padding-bottom: 75px;
  }

  .header {
    padding: 10px 15px;
    min-height: 65px;
    height: auto;
    gap: 10px;
    flex-wrap: wrap; /* Crucial fix for long foreign words */
  }

  .header-logo {
    order: 1;
    margin-right: auto;
    flex-shrink: 0;
    max-width: calc(100% - 140px); /* Leave room for lang + burger */
  }

  .header-logo img {
    height: 38px;
    max-width: 100%;
  }

  .lang-switcher {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
  }

  .burger-menu {
    display: flex;
    order: 3;
    font-size: 26px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .burger-menu:active {
    background: rgba(0, 242, 231, 0.2);
    transform: scale(0.95);
  }

  .header-actions {
    display: none !important;
  }


  .header-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.4s;
    border-bottom: none;
  }

  .header-nav.nav-open {
    max-height: 600px;
    visibility: visible;
    opacity: 1;
    border-bottom: 2px solid var(--accent-cyan-dark);
  }

  .nav-link {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    width: 100%;
    font-size: 1rem;
    display: block;
    text-align: left;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-sticky-cta {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 350px;
    padding: 40px 20px;
  }

  .hero-content {
    margin-top: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .bonus-amount {
    font-size: 1.5rem;
  }

  .seo-content {
    padding: 20px;
  }
}

/* RTL Support for Arabic */
html[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .faq-item {
  border-left: none;
  border-right: 4px solid var(--accent-cyan-light);
}

/* ===================================================
   LANGUAGE SWITCHER
   =================================================== */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 242, 231, 0.08);
  border: 1px solid rgba(0, 242, 231, 0.25);
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent-cyan-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  user-select: none;
}

.lang-switcher__btn:hover,
.lang-switcher--open .lang-switcher__btn {
  background: rgba(0, 242, 231, 0.15);
  border-color: var(--accent-cyan-light);
  box-shadow: 0 0 10px rgba(0, 242, 231, 0.2);
}

.lang-switcher__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-switcher__code {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switcher__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-cyan-light);
  border-bottom: 2px solid var(--accent-cyan-light);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

.lang-switcher--open .lang-switcher__arrow {
  transform: rotate(-135deg) translateY(-3px);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 231, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 242, 231, 0.05);
  z-index: 500;
  overflow: hidden;
  animation: langDropIn 0.18s ease-out forwards;
}

.lang-switcher--open .lang-switcher__dropdown {
  display: block;
}

@keyframes langDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-switcher__dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  gap: 2px;
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-switcher__item:hover {
  background: var(--bg-card-hover);
  color: var(--accent-cyan-light);
}

.lang-switcher__item.active {
  background: rgba(0, 242, 231, 0.1);
  color: var(--accent-cyan-light);
  font-weight: 700;
}

.lang-switcher__item .ls-flag {
  font-size: 1rem;
  flex-shrink: 0;
}

.lang-switcher__item .ls-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* divider between grid cells */
.lang-switcher__dropdown-inner::before {
  content: '';
  grid-column: 1 / -1;
  height: 0;
}

/* Mobile: switcher inside hamburger nav */
@media (max-width: 992px) {
  .lang-switcher {
    margin-left: 0;
  }

  .lang-switcher__dropdown {
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: calc(100vw - 30px);
  }

  .lang-switcher__dropdown-inner {
    grid-template-columns: 1fr 1fr;
  }
}
/* =====================================================
   GAME CARDS GRID — SEO Content Block
   ===================================================== */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 28px 0;
  width: 100%;
}
.game-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  border-color: rgba(20,184,166,.6);
}
.game-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.game-card-body {
  padding: 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.game-card-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #14b8a6;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.game-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.game-card-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.game-card-cta {
  display: block;
  margin-top: 10px;
  padding: 7px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  text-decoration: none !important;
}
.game-card-cta:hover {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}
@media (max-width: 1024px) {
  .game-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .game-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.faq-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-color, #585c834d);
    border-radius: var(--accordion-border-radius, 12px);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-accordion[open] {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan-light);
}
.faq-summary {
    padding: var(--accordion-header-expand, 14px 20px);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-summary::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}
.faq-summary::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-cyan-light);
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-accordion[open] .faq-summary::after {
    content: '\2212'; /* minus sign */
    transform: rotate(180deg);
}
.faq-content {
    padding: var(--accordion-description-expand, 0 20px 20px 20px);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
