/* PHJoy Casino - Shared Stylesheet */
:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --gold: #d4af37;
  --gold-bright: #f0c850;
  --red: #c8102e;
  --red-dark: #8b0a1e;
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --border: #2a2a2a;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.5rem 0 1rem; color: var(--gold); }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }

p { margin-bottom: 1rem; color: #d8d8d8; }

/* Header */
header {
  background: linear-gradient(180deg, #000 0%, #111 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}
.logo span { color: var(--red); }
nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: .92rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
nav a:hover { background: var(--surface-2); color: var(--gold); text-decoration: none; }
nav a.cta {
  background: var(--red);
  color: #fff;
}
nav a.cta:hover { background: var(--gold); color: #000; }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(10,10,10,.85) 0%, rgba(20,5,5,.9) 100%),
    radial-gradient(ellipse at top, rgba(212,175,55,.15) 0%, transparent 60%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #e0e0e0;
  margin-bottom: 28px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  font-size: .95rem;
  margin: 6px;
  border: 2px solid var(--red);
  transition: all .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #000 !important; text-decoration: none; }
.btn.alt { background: transparent; border-color: var(--gold); color: var(--gold) !important; }
.btn.alt:hover { background: var(--gold); color: #000 !important; }

/* Main content */
main { max-width: var(--max-w); margin: 0 auto; padding: 40px 20px; }
section { margin-bottom: 40px; }

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card h3 { color: var(--gold); margin-top: 0; }

/* Trust badges */
.trust-row {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  margin: 30px 0;
  text-align: center;
}
.trust-item { flex: 1; min-width: 140px; }
.trust-item .num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem; color: var(--gold); font-weight: 700;
}
.trust-item .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

/* FAQ */
.faq {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
}
.faq h3 { margin-top: 0; color: var(--gold); }

/* Tables */
table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  background: var(--surface); border-radius: 6px; overflow: hidden;
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); color: var(--gold); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Steps list */
ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border-radius: 6px;
  margin-bottom: 10px;
  position: relative;
  border: 1px solid var(--border);
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--gold); color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Inline list */
ul.feature-list { list-style: none; padding: 0; }
ul.feature-list li {
  padding: 8px 0 8px 28px; position: relative;
  border-bottom: 1px solid var(--border);
}
ul.feature-list li:last-child { border-bottom: none; }
ul.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--gold); font-weight: 700;
}

/* Internal link cluster */
.related-links {
  background: var(--surface-2);
  padding: 24px; border-radius: 8px;
  margin: 30px 0;
  border: 1px solid var(--border);
}
.related-links h3 { color: var(--gold); margin-top: 0; }
.related-links ul { list-style: none; padding: 0; columns: 2; column-gap: 30px; }
.related-links li { padding: 5px 0; break-inside: avoid; }
@media (max-width: 600px) { .related-links ul { columns: 1; } }

/* Footer */
footer {
  background: #050505;
  border-top: 2px solid var(--gold);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-grid h4 { color: var(--gold); margin-bottom: 12px; font-family: "Playfair Display", serif; }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: #b0b0b0; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.footer-bottom p { color: var(--muted); margin-bottom: 8px; }

/* Responsibility notice */
.responsible {
  background: rgba(200,16,46,.1);
  border: 1px solid var(--red-dark);
  padding: 16px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: .9rem;
  color: #e8b8c0;
  text-align: center;
}
.responsible strong { color: var(--gold); }

/* Mobile */
@media (max-width: 720px) {
  .nav-wrap { flex-direction: column; align-items: stretch; }
  nav ul { justify-content: center; }
  .hero { padding: 40px 16px; }
  main { padding: 24px 16px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* Page load fade */
main, .hero { animation: fadeUp .5s ease-out; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
