/* ============================================================
   MYSTIC CASINO — Skeleton (Inspired by Luxor)
   ============================================================ */

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

:root {
  --bg-color:   #851732;
  --bg-header:  #3d0b17;
  --bg-light:   transparent;
  --text-main:  #d9b156;
  --text-dim:   #b38d3d;
  
  --yellow-grad: linear-gradient(135deg, #d9b156 0%, #b38d3d 100%);
  --red-main:    #851732;
  
  --accent:     #d9b156;
  --accent-hov: #b38d3d;
  --secondary:  #851732;
  
  --serif: 'Cormorant Garamond', serif;
  --sans:  'Montserrat', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ---------- Age Gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-color);
  display: flex; align-items: center; justify-content: center;
}
.age-gate.hidden { display: none !important; }
.age-gate-inner {
  text-align: center;
  border: none;
  padding: 3rem; background: transparent;
}
.age-gate-logo {
  font-family: var(--serif); font-size: 2rem; color: var(--accent);
  letter-spacing: 0.3em; margin-bottom: 2rem;
}
.age-gate-title { font-family: var(--sans); font-size: 1.2rem; margin-bottom: 2rem; font-weight: 500; }
.age-gate-buttons { display: flex; gap: 1rem; justify-content: center; }
.age-gate-yes, .age-gate-no {
  padding: 0.8rem 2rem; border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  cursor: pointer; font-family: var(--sans); font-weight: 600;
  transition: all 0.3s ease;
}
.age-gate-yes:hover { background: var(--yellow-grad); color: var(--bg-color); border-color: transparent; }
.age-gate-no:hover { background: var(--secondary); color: var(--text-main); border-color: var(--secondary); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(217, 177, 86, 0.15);
  padding: 1rem 0;
}
.header-container {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  min-height: 95px;
}
.nav-logo {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.logo-link {
  display: flex; flex-direction: column; align-items: center;
}
.header-logo-img {
  height: 95px; 
  width: auto;
  object-fit: contain;
}
/* Смаляване само на английската версия */
html[lang="en"] .header-logo-img {
  height: 70px !important;
}

.age-gate-logo img {
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links.left-links { order: 1; flex: 1; justify-content: flex-end; padding-right: 65px; }
.nav-links.right-links { order: 3; flex: 1; justify-content: flex-start; padding-left: 115px; }

.nav-link {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.95rem; 
  font-weight: 700; 
  letter-spacing: 0.08em;
  color: var(--text-main); 
  transition: color 0.3s;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 0.5rem; align-items: center; }
.lang-switch a { opacity: 0.5; transition: opacity 0.3s; display: block; }
.lang-switch a:hover, .lang-switch a.active { opacity: 1; }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }
.hamburger-line { display: block; width: 25px; height: 2px; background: var(--text-main); margin: 5px 0; transition: all 0.3s; }

/* ---------- Header Video ---------- */
.video-section {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  background: var(--bg-color);
  padding-top: 130px; /* Offset for fixed header */
}

.header-video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .video-section {
    padding-top: 100px; /* Smaller offset for mobile header */
  }
}

/* ---------- Hero ---------- */
.hero-section {
  height: 100vh; min-height: 600px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; width: 100%; padding: 0 1rem;
}
.hero-heading {
  font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 2rem;
}
.hero-heading em { 
  background: var(--yellow-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic; 
}
.hero-subheading {
  font-size: 1.2rem; color: var(--text-dim); margin-bottom: 3rem; margin-top: 1rem;
}
.btn-primary {
  display: inline-block; padding: 1.2rem 3.5rem;
  background: var(--yellow-grad); color: var(--bg-header);
  font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--secondary); color: var(--text-main); }

/* ---------- Section Headings ---------- */
.section-heading {
  text-align: center; font-family: var(--serif);
  font-size: 2.5rem;
  margin-bottom: 4rem; letter-spacing: 0.1em;
  position: relative; padding-bottom: 1rem;
  background: var(--yellow-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-heading::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--yellow-grad);
}

/* ---------- Игрални Зали (Halls) ---------- */
.halls-section { padding: 8rem 0; background: var(--bg-color); }
.halls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .halls-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .halls-grid { grid-template-columns: 1fr; }
}

.hall-card {
  display: block; border: none;
  background-color: var(--bg-header);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.hall-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* Dark overlay to make text readable */
  z-index: 1;
  transition: background 0.3s;
}
.hall-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
}
.hall-card:hover {
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.hall-card-inner { 
  padding: 3rem 2rem; 
  position: relative; 
  z-index: 2; 
}
.hall-title {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent);
  margin-bottom: 1.2rem; letter-spacing: 0.1em;
}
.hall-icon {
  width: 45px; height: 45px; margin: 0 auto 1.2rem; color: var(--accent);
}
.hall-phone {
  font-size: 1.2rem; color: var(--text-main); line-height: 1.6; margin-bottom: 1rem;
}
.phone-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.hall-actions {
  display: flex; gap: 0.8rem; justify-content: center;
}
.hall-card { cursor: pointer; }


.games-section { position: relative; padding: 8rem 0; background: transparent; border-top: none; }
.bonuses-section { position: relative; padding: 8rem 0; background: rgba(0,0,0,0.15); border-top: none; }

.age-badge {
  width: 70px; height: 70px;
  background: var(--accent); color: var(--bg-header);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin: 2rem auto 0;
  border: 2px solid var(--bg-header);
}

.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.bonus-card {
  display: flex; flex-direction: column; border: none;
  background: transparent; align-items: center; text-align: center;
}
.bonus-img { 
  width: 100%; 
  aspect-ratio: 16/9; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  position: relative;
}
.bonus-img::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px 30px var(--bg-color);
  pointer-events: none;
  z-index: 2;
}
/* Adjust shadow for bonuses section since background is darker */
.bonuses-section .bonus-img::after {
  box-shadow: inset 0 0 60px 30px rgba(110, 20, 40, 1);
}

.bonus-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s ease;
}
.bonus-card:hover .bonus-img img { transform: scale(1.05); }

.bonus-content {
  width: 100%; padding: 2rem 1rem;
}
.bonus-content h3 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 1.2rem; color: var(--accent); }
.bonus-content p { font-size: 1.2rem; margin-bottom: 2.5rem; line-height: 1.7; color: var(--text-main); }
.btn-outline {
  display: inline-block; padding: 0.8rem 2.5rem;
  border: 1px solid var(--accent); color: var(--accent);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.9rem; transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: var(--bg-color); }

/* Bonus Modal Specifics */
#bonusText p {
  margin-bottom: 1.5rem;
}
#bonusText strong {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer-luxor {
  background: var(--bg-header); border-top: 1px solid rgba(217, 177, 86, 0.2);
  padding: 4rem 0; text-align: center;
}
.footer-heading {
  font-size: 1.2rem; font-weight: 500; color: var(--accent); margin-bottom: 2rem;
}
.social-links-lux {
  display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem;
}
.social-btn {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-main); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s;
}
.social-btn svg { width: 24px; height: 24px; color: var(--accent); }
.social-btn:hover { color: var(--accent); }

.responsible-text {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 2rem;
}
.footer-credits a {
  font-size: 0.75rem; color: var(--accent); opacity: 0.6; text-decoration: underline;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow-y: auto;
  padding: 2rem;
}
.modal-content {
  background-color: var(--bg-color);
  margin: 2rem auto;
  padding: 3rem;
  border: none;
  max-width: 1000px;
  position: relative;
  border-radius: 8px;
}
.close-modal {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: var(--text-main);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal:hover { color: var(--accent); }
.modal-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal-info {
  margin-bottom: 2rem;
  color: var(--text-dim);
  text-align: center;
  font-size: 1.1rem;
}
.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.modal-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(217, 177, 86, 0.2);
  transition: transform 0.3s;
}
.modal-gallery-grid img:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent);
}
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  color: #fff; font-size: 3rem;
  cursor: pointer; line-height: 1;
}
.modal-gallery-grid img {
  cursor: zoom-in;
}

/* ---------- Map Section ---------- */
.map-section {
  padding: 8rem 0;
  background: var(--bg-color);
}
.map-container {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.map-container iframe {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bonus-grid { grid-template-columns: 1fr; }
  .bonus-card { flex-direction: column; }
  .bonus-img, .bonus-content { width: 100%; }
}
@media (max-width: 768px) {
  .header { padding: 0.75rem 0; height: 80px; display: flex; align-items: center; }
  .header-container { justify-content: center; padding: 0 1rem; width: 100%; gap: 0; position: relative; }
  
  .nav-logo { 
    position: relative; 
    left: auto; 
    top: auto; 
    transform: none; 
    order: 1; 
    flex: 0 0 auto; 
    display: block !important; 
  }
  .header-logo-img { height: 65px; width: auto; }

  .nav-toggle { 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    position: absolute; 
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; 
    height: 40px;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--bg-header); 
    display: flex; flex-direction: column; gap: 2rem;
    justify-content: flex-start;
    padding: 100px 2rem 2rem; transition: right 0.4s ease;
    z-index: 999;
  }
  .nav-menu.active { right: 0; }
  
  .nav-links { display: flex; flex-direction: column; gap: 2rem; align-items: center; width: 100%; }
  .nav-links.left-links { order: 1; flex: none; padding: 0; justify-content: center; }
  .nav-links.right-links { order: 2; flex: none; padding: 0; justify-content: center; margin-top: 0; }
  
  .nav-link { font-size: 1.2rem; }

  .halls-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .modal-content { padding: 1.5rem; margin: 1rem auto; width: 95%; }
}

