/* ============================================
   ENDORPHINA SOUTH AFRICA — MAIN STYLESHEET
   Dark Luxury Gambling Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --black:       #0a0a0f;
  --deep:        #10101a;
  --surface:     #16162a;
  --card:        #1c1c30;
  --border:      #2a2a45;
  --gold:        #d4a843;
  --gold-light:  #f0c96e;
  --gold-dim:    #8a6b1f;
  --red:         #c0392b;
  --red-bright:  #e74c3c;
  --green:       #27ae60;
  --text:        #e8e8f0;
  --text-dim:    #8888a8;
  --text-muted:  #55557a;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(212,168,67,0.2);
  --transition:  0.2s ease;
  --max-width:   1200px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-dim); line-height: 1.75; }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.gold { color: var(--gold); }
.red  { color: var(--red-bright); }
.green{ color: var(--green); }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* ---- HEADER ---- */
.site-header {
  background: rgba(10,10,15,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 18px; color: var(--black);
}
.logo-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--white); }
.logo-text span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-dim); font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(212,168,67,0.08); }

.header-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--black) !important; font-weight: 700 !important;
  padding: 10px 20px !important; border-radius: 6px !important;
}
.header-cta:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important; color: var(--black) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 4px 0; transition: all var(--transition);
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--deep);
}
.breadcrumb ol { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb li + li::before { content: '›'; color: var(--text-muted); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* ---- HERO ---- */
.hero {
  background: radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--deep) 0%, var(--black) 100%);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 1 L35 15 L50 15 L38 24 L43 38 L30 29 L17 38 L22 24 L10 15 L25 15Z' fill='%23d4a843' opacity='0.03'/%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--black);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-red { background: var(--red-bright); color: var(--white); }
.btn-red:hover { background: var(--red); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #219a52; color: var(--white); }

/* ---- CARDS ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { border-color: rgba(212,168,67,0.4); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.card-body { padding: 20px; }

/* ---- SLOT CARDS ---- */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.slot-card { position: relative; }
.slot-card-img {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: var(--surface);
}
.slot-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.slot-card:hover .slot-card-img img { transform: scale(1.05); }
.slot-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,15,0.7);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity var(--transition);
}
.slot-card:hover .slot-card-overlay { opacity: 1; }
.slot-card-info { padding: 14px; }
.slot-card-info h3 { font-size: 1rem; color: var(--white); margin-bottom: 6px; }
.slot-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.badge-gold  { background: rgba(212,168,67,0.15); color: var(--gold); border: 1px solid rgba(212,168,67,0.3); }
.badge-red   { background: rgba(192,57,43,0.15); color: var(--red-bright); border: 1px solid rgba(192,57,43,0.3); }
.badge-green { background: rgba(39,174,96,0.15); color: var(--green); border: 1px solid rgba(39,174,96,0.3); }
.badge-blue  { background: rgba(52,152,219,0.15); color: #5dade2; border: 1px solid rgba(52,152,219,0.3); }
.rtp-bar { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.rtp-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.rtp-fill  { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 2px; }

/* ---- STATS ROW ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 40px 0;
}
.stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-box .stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold); }
.stat-box .stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid rgba(42,42,69,0.5); font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(212,168,67,0.04); }
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

/* ---- CASINO CARDS ---- */
.casino-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 20px;
  transition: all var(--transition);
}
.casino-card:hover { border-color: rgba(212,168,67,0.4); box-shadow: var(--shadow-gold); }
.casino-logo {
  width: 80px; height: 50px; object-fit: contain;
  background: var(--surface); border-radius: var(--radius); padding: 8px; flex-shrink: 0;
}
.casino-logo-placeholder {
  width: 80px; height: 50px; background: var(--surface);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem; color: var(--gold); text-align: center; flex-shrink: 0;
  letter-spacing: 0.05em;
}
.casino-info { flex: 1; min-width: 0; }
.casino-info h3 { font-size: 1rem; color: var(--white); margin-bottom: 4px; }
.casino-bonus { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.casino-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.star-rating { color: var(--gold); font-size: 0.85rem; }

/* ---- FAQ ACCORDION ---- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 18px 20px;
  background: none; border: none; cursor: pointer; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-question.open { color: var(--gold); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; }
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.9rem; }

/* ---- SEARCH ---- */
.search-bar {
  position: relative; max-width: 480px;
}
.search-bar input {
  width: 100%; padding: 14px 20px 14px 48px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 40px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; transition: all var(--transition);
}
.search-bar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.search-bar input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* ---- FILTERS ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: none;
  color: var(--text-dim); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 700; }

/* ---- SLOT DETAIL PAGE ---- */
.slot-hero { padding: 40px 0; background: var(--deep); }
.slot-hero-inner { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.slot-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.slot-cover img { width: 100%; height: 100%; object-fit: cover; }
.slot-cover-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--surface), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold);
  border-radius: var(--radius-lg);
}
.slot-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.slot-meta-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.slot-meta-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.slot-meta-item .value { font-weight: 700; color: var(--white); font-size: 1rem; }

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 32px; }
.section-header h2 { color: var(--white); margin-bottom: 8px; }
.section-header p { max-width: 560px; }
.section-header-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---- SIDEBAR / ASIDE ---- */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-card h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { font-size: 0.88rem; color: var(--text-dim); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--gold); }
.sidebar-links a::before { content: '›'; color: var(--gold); }

/* ---- TAGS / CHIPS ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }

/* ---- RELATED SLOTS ---- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--deep); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.rg-badges { display: flex; gap: 12px; }
.rg-badge {
  font-size: 0.7rem; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted);
}
.disclaimer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: 0.78rem; color: var(--text-muted); margin-top: 20px; }

/* ---- NOTICE BOXES ---- */
.notice {
  border-left: 3px solid var(--gold); background: rgba(212,168,67,0.06);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.notice p { color: var(--text-dim); font-size: 0.9rem; }

/* ---- RTP TABLE ---- */
.rtp-table-section { background: var(--deep); padding: 48px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--deep); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .slot-hero-inner { grid-template-columns: 1fr; }
  .slot-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .casino-card { flex-wrap: wrap; }
  .casino-actions { width: 100%; align-items: stretch; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0; }
  .section { padding: 40px 0; }
  .stat-box .stat-num { font-size: 1.6rem; }
}

/* ---- UTILITIES ---- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.text-center{text-align:center}.text-right{text-align:right}
.d-flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:16px}
.w-100{width:100%}.hidden{display:none}
.view-all { font-size:0.85rem; color:var(--text-dim); white-space:nowrap; }
.view-all:hover { color:var(--gold); }
