/* ============================================================
   Eva Casino — evacasino.art
   Dark green-black palette · Gold CTAs · Glossy cards
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0f0a;
  --bg-mid:      #0f1a0f;
  --bg-card:     #111b11;
  --green-dark:  #0d2b0d;
  --green:       #1a4d1a;
  --green-light: #2a7a2a;
  --gold:        #c9a227;
  --gold-light:  #e8bf4a;
  --gold-dark:   #a07d10;
  --text:        #e8edd0;
  --text-muted:  #8fa08a;
  --border:      #1e3a1e;
  --red:         #c0392b;
  --header-h:    68px;
  --sidebar-w:   220px;
  --radius:      10px;
  --radius-lg:   16px;
  --font:        'Segoe UI', 'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }

em { color: var(--gold-light); font-style: normal; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 1.3rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #c9a227 0%, #e8bf4a 50%, #c9a227 100%);
  color: #1a0f00;
  border-color: var(--gold-light);
  text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e8bf4a 0%, #f5d070 50%, #e8bf4a 100%);
  color: #100a00;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-light);
}

.btn-lg {
  padding: .75rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(10,15,10,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo-link img { height: 38px; width: auto; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold-light);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .35rem .5rem;
  line-height: 1;
}

/* ---------- Layout ---------- */
.page-wrap {
  display: flex;
  min-height: calc(100vh - var(--header-h) - 90px);
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-mid);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  min-height: 100%;
}

.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a {
  display: block;
  padding: .65rem 1.35rem;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .18s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold-light);
  background: var(--green-dark);
  border-left-color: var(--gold);
}

/* ---------- Main content ---------- */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-mid);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../header-bg.webp');
  background-size: cover;
  background-position: center top;
  opacity: .35;
  filter: saturate(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,15,10,.88) 0%,
    rgba(10,15,10,.55) 55%,
    rgba(10,15,10,.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 2.5rem;
  max-width: 580px;
}

.hero-content h1 { margin-bottom: .75rem; }
.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ---------- Live wins ---------- */
.live-wins {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.5rem;
}

.live-wins-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.live-wins-header h2 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  flex-shrink: 0;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.live-wins-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.win-badge {
  background: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .28rem .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  animation: fadeIn .4s ease;
}
.win-badge .win-amount {
  color: var(--gold-light);
  font-weight: 700;
}
.win-badge .win-name { color: var(--text); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section title ---------- */
.section-title {
  padding: 1.5rem 1.5rem .75rem;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .85rem;
  padding: 0 1.5rem 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }

.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.game-card-name {
  padding: .45rem .6rem;
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--bg-card);
}

/* ---------- Glossy card ---------- */
.gloss-card {
  margin: 1.5rem 1.5rem;
  background: linear-gradient(160deg, #152315 0%, #0f1a0f 60%, #0a0f0a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.gloss-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.45), transparent);
}

.gloss-card h2 {
  margin-bottom: .75rem;
  color: var(--gold-light);
}
.gloss-card h3 { margin: 1.2rem 0 .5rem; color: var(--text); }
.gloss-card p { color: var(--text-muted); margin-bottom: .75rem; }
.gloss-card ul, .gloss-card ol { color: var(--text-muted); margin-bottom: .75rem; }
.gloss-card li { margin-bottom: .35rem; }
.gloss-card .btn { margin-top: .75rem; }

/* ---------- Bonus cards grid ---------- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bonus-card {
  background: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.bonus-card h3 { color: var(--gold-light); margin-bottom: .5rem; font-size: 1rem; }
.bonus-card p { color: var(--text-muted); font-size: .88rem; margin: 0; }
.bonus-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: .3rem;
}

/* ---------- Promo box ---------- */
.promo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--green-dark);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.promo-code {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: .15em;
  color: var(--gold-light);
  font-family: 'Courier New', monospace;
}

/* ---------- Steps grid ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.step-card {
  background: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0f00;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.step-card h3 { font-size: .9rem; color: var(--text); margin-bottom: .35rem; }
.step-card p { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ---------- Form page ---------- */
.form-page {
  max-width: 520px;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .6rem .85rem;
  color: var(--text);
  font-size: .92rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .18s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group input::placeholder { color: #4a5a4a; }
.form-group select { cursor: pointer; }

.form-note {
  margin-top: .85rem;
  font-size: .84rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-mid);
  padding: 1.35rem 1.5rem;
  text-align: center;
}
.site-footer p { font-size: .82rem; color: var(--text-muted); margin-bottom: .2rem; }
.site-footer .disclaimer { font-size: .74rem; color: #4a5a4a; }

/* ---------- Copy success ---------- */
.copy-success {
  color: #3ddc84;
  font-size: .82rem;
  margin-left: .5rem;
  opacity: 0;
  transition: opacity .3s;
}
.copy-success.show { opacity: 1; }

/* ---------- Mirror badge ---------- */
.mirror-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-dark);
  border: 1px solid var(--green-light);
  border-radius: 6px;
  padding: .5rem 1rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  color: #3ddc84;
  font-weight: 600;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .88rem;
}
.info-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.info-table td:first-child { color: var(--text); font-weight: 600; width: 45%; }
.info-table tr:last-child td { border-bottom: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .header-actions { display: none; }

  .page-wrap { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    display: none;
  }
  .sidebar.open { display: block; }
  .sidebar-nav a { padding: .55rem 1.1rem; }

  .hero { min-height: 300px; }
  .hero-content { padding: 2rem 1.25rem; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; padding: 0 .85rem 1rem; }

  .gloss-card { margin: 1rem .85rem; padding: 1.35rem 1.25rem; }

  .promo-box { flex-direction: column; text-align: center; }
  .promo-code { font-size: 1.35rem; }

  .bonus-grid, .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 .85rem; }
  .live-wins { padding: .55rem .85rem; }
  .section-title { padding: 1rem .85rem .5rem; }
  .games-grid { padding: 0 .6rem .75rem; }
  .gloss-card { margin: .75rem .6rem; }
}
