/* AmunRa Casino - Egyptian premium design tokens */
:root {
  --bg-primary: #2B0F07;
  --bg-secondary: #3A140B;
  --accent-gold: #D4A24C;
  --bright-gold: #F4C76A;
  --cta-green: #2FBF9B;
  --cta-green-dark: #1FA184;
  --text-light: #F5E6C8;
  --text-muted: #BFA98A;
  --gold-gradient: linear-gradient(180deg, #F4C76A 0%, #D4A24C 100%);
  --cta-gradient: linear-gradient(180deg, #34D1B2 0%, #1FA184 100%);
  --header-height: 76px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --shadow-glow: 0 0 20px rgba(212, 162, 76, 0.35);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--bright-gold); }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(180deg, #3A140B 0%, #2B0F07 100%);
  border-bottom: 1px solid rgba(212, 162, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.site-header .logo {
  width: 160px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(212, 162, 76, 0.6);
  letter-spacing: 0.02em;
}

.search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0 24px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 20px 0 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-gold);
  background: rgba(43, 15, 7, 0.9);
  color: var(--text-light);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--bright-gold);
  box-shadow: var(--shadow-glow);
}

.search-wrap .icon-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  pointer-events: none;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-ghost:hover {
  box-shadow: var(--shadow-glow);
  color: var(--bright-gold);
  border-color: var(--bright-gold);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
}
.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
}

.btn-cta {
  background: var(--cta-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(47, 191, 155, 0.4);
  position: relative;
}
.btn-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(47, 191, 155, 0.5);
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.main-content {
  flex: 1;
  min-height: calc(100vh - var(--header-height));
}

/* Hero carousel - полноразмерный баннер */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 15, 7, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text {
  max-width: 90%;
}
.hero-text h2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--bright-gold);
  text-shadow: 0 0 20px rgba(244, 199, 106, 0.4);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-wrap .wings {
  color: var(--accent-gold);
  font-size: 2rem;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(212, 162, 76, 0.5));
}
.hero-cta-wrap .wings svg {
  width: 36px;
  height: 24px;
}

.hero .dots {
  display: none;
}

.hero .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all var(--transition);
}

.hero .dots span.active {
  background: var(--accent-gold);
  opacity: 1;
  box-shadow: 0 0 10px var(--accent-gold);
}

/* Center nav (Kaszinó / Bónuszok) */
.center-nav-wrap {
  padding: 20px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(212, 162, 76, 0.15);
}

.center-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.center-nav-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-gold);
  background: rgba(58, 20, 11, 0.8);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.center-nav-btn:hover {
  color: var(--bright-gold);
  border-color: var(--bright-gold);
  box-shadow: 0 0 12px rgba(212, 162, 76, 0.3);
}

.center-nav-btn.active {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: transparent;
}

/* Games section */
.games-section {
  padding: 32px 24px 48px;
}

.games-section h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/3.7;
  background: var(--bg-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 15, 7, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .overlay { opacity: 1; }

.game-card .play-btn {
  padding: 14px 28px;
  background: var(--cta-gradient);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(47, 191, 155, 0.4);
  transition: transform var(--transition);
}

.game-card .play-btn:hover { transform: scale(1.05); }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  background-image: 
    linear-gradient(30deg, rgba(212, 162, 76, 0.03) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(212, 162, 76, 0.03) 25%, transparent 25%);
  background-size: 20px 20px;
  padding: 32px 24px 20px;
  border-top: 1px solid rgba(212, 162, 76, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: inline-block;
  padding: 2px 0;
}
.footer-col a:hover { color: var(--bright-gold); }

.payments {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid rgba(212, 162, 76, 0.15);
  border-bottom: 1px solid rgba(212, 162, 76, 0.15);
  margin-bottom: 16px;
}

.payments-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.compliance {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.compliance .badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.compliance p {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(212, 162, 76, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* CTA pulse (subtle) */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(47, 191, 155, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(47, 191, 155, 0.55); }
}

.btn-cta { animation: cta-pulse 2.5s ease-in-out infinite; }

/* Page content (text pages like bonuszok) */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  word-wrap: break-word;
}

.page-content h1 {
  font-size: 1.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.3;
}

.page-content h2 {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin: 32px 0 16px;
}

.page-content h3 {
  font-size: 1.15rem;
  color: var(--bright-gold);
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.page-content ul, .page-content ol {
  margin: 0 0 16px 1.5rem;
  color: var(--text-light);
}

.page-content li { margin-bottom: 8px; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(212, 162, 76, 0.2);
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 162, 76, 0.15);
  color: var(--text-light);
}

.page-content th {
  background: rgba(212, 162, 76, 0.15);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero-slide .overlay { justify-content: center; text-align: center; }
  .hero-text h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 12px; }
  .search-wrap { display: none; }
  .auth-buttons .btn { padding: 12px 16px; font-size: 11px; min-height: 44px; }
  .hero, .hero-slides { min-height: calc(100vh - var(--header-height)); height: calc(100vh - var(--header-height)); }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-cta-wrap { flex-direction: column; align-items: center; }
  .hero-cta-wrap .btn-cta { width: 100%; min-height: 48px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; padding: 0 8px; }
  .games-section { padding: 20px 12px 24px; }
  .games-section h2 { font-size: 1.25rem; }
  .site-footer { padding: 20px 12px 14px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; max-width: 100%; text-align: center; }
  .footer-col h4 { margin-bottom: 8px; font-size: 0.75rem; }
  .footer-col a { min-height: auto; line-height: 1.4; padding: 2px 0; font-size: 0.8rem; }
  .payments { padding: 12px 0; margin-bottom: 12px; }
  .compliance { flex-direction: column; gap: 8px; }
  .compliance p { font-size: 0.7rem; }
  .center-nav-wrap { padding: 12px; }
  .center-nav { gap: 8px; }
  .center-nav-btn { padding: 8px 18px; font-size: 13px; }
  .page-content {
    padding: 20px 12px 32px;
    max-width: 100%;
  }
  .page-content h1 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 16px; }
  .page-content h2 { font-size: 1.15rem; margin: 24px 0 12px; }
  .page-content h3 { font-size: 1.05rem; margin: 20px 0 10px; }
  .page-content p { font-size: 0.95rem; margin-bottom: 12px; }
  .page-content ul, .page-content ol { margin-left: 1.25rem; margin-bottom: 12px; }
  .page-content li { margin-bottom: 6px; }
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    font-size: 0.85rem;
  }
  .page-content th, .page-content td { padding: 10px 12px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .site-header .logo { width: 100px; font-size: 20px; }
  .auth-buttons .btn { padding: 10px 12px; font-size: 10px; }
  .hero-text h2 { font-size: 0.9rem; }
  .hero-text h1 { font-size: 1.25rem; }
  .back-to-top { bottom: 12px; right: 12px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .game-card { aspect-ratio: 3/3.5; }
  .games-grid { max-width: 280px; gap: 6px; padding: 0 6px; }
  .game-card .play-btn { padding: 10px 20px; min-height: 44px; font-size: 12px; }
  .footer-grid { gap: 10px; }
  .footer-col a { line-height: 1.35; min-height: auto; padding: 1px 0; font-size: 0.75rem; }
  .footer-col h4 { font-size: 0.7rem; }
  .page-content { padding: 12px 10px 28px; padding-top: 16px; }
  .page-content h1 { font-size: 1.2rem; margin-bottom: 12px; }
  .page-content h2 { font-size: 1.05rem; margin: 20px 0 10px; }
  .page-content h3 { font-size: 0.98rem; margin: 16px 0 8px; }
  .page-content p { font-size: 0.9rem; }
  .page-content th, .page-content td { padding: 8px 10px; font-size: 0.8rem; }
}
