/* 500 Casino Promo - Styles aligned with 500.casino */
:root {
  --bg-dark: #0a0e12;
  --bg-card: #111820;
  --bg-card-hover: #161f2a;
  --accent: #00c853;
  --accent-hover: #00e676;
  --accent-muted: #00a843;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --border: #2a3544;
  --header-bg: rgba(10, 14, 18, 0.95);
  --popup-bg: #0d1319;
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 80px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

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

.logo-link img {
  height: 36px;
  width: auto;
}

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

.nav-menu a {
  color: var(--text);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa0a6' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.lang-switcher select:hover,
.lang-switcher select:focus {
  border-color: var(--accent);
  outline: none;
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-cta-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}

.btn-cta-outline:hover {
  background: rgba(0, 200, 83, 0.1);
}

/* Hero section */
.hero {
  padding: 48px 20px 56px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-image-wrap img {
  width: 100%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content .hero-bonus {
  color: var(--accent);
  font-size: 1.1em;
  margin-bottom: 24px;
}

.hero-cta-wrap {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content .hero-cta-wrap {
    justify-content: center;
  }
}

/* Games grid - 5 per row */
.games-section {
  padding: 48px 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 28px;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-muted);
}

.game-card .game-name {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Content sections */
.content-section {
  padding: 32px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--text);
}

.content-section h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.content-section p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.content-section ul, .content-section ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.content-section li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
}

/* Sticky popup bar (promo strip) */
.promo-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--popup-bg);
  border-top: 2px solid var(--accent);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.promo-strip-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
}

.promo-code-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px dashed var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.2s;
}

.promo-code-trigger:hover {
  background: rgba(0, 200, 83, 0.1);
}

.promo-code-trigger .code-text {
  user-select: all;
}

.promo-strip .bonus-text {
  color: var(--text-muted);
  font-size: 14px;
}

.promo-strip .btn-cta {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .promo-strip-inner {
    flex-direction: column;
  }
  .promo-strip .bonus-text {
    text-align: center;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Page titles for inner pages */
.page-header {
  padding: 40px 20px 24px;
  text-align: center;
  background: var(--bg-card);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-content {
  padding: 24px 20px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.page-content p, .page-content ul {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.page-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 22px;
}

/* Copy feedback */
.copied-tooltip {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  animation: fadeUp 1.5s ease forwards;
  pointer-events: none;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
