/* ===== Site Factory test-uk-001 ===== */
/* Theme: emerald + amber, slate backgrounds. Different from bestbonus-clone (blue+green). */

:root {
  --color-primary: #047857;
  --color-primary-dark: #065f46;
  --color-primary-light: #d1fae5;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-bg: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-text: #334155;
  --color-text-strong: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--color-text-strong);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: 2rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; font-weight: 600; }

p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

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

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-strong);
}

.site-logo svg { width: 32px; height: 32px; }

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero h2 {
  color: white;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta strong { color: white; }

/* ===== Main content ===== */
.main-content {
  background: var(--color-bg);
  padding: 2.5rem 0 4rem;
}

.post-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.post-meta {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-intro {
  font-size: 1.08rem;
  color: var(--color-text);
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

/* ===== Casino comparison cards (top section) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-rank {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  align-self: flex-start;
}

.card-rank.gold { background: var(--color-accent); }
.card-rank.silver { background: #64748b; }
.card-rank.bronze { background: #b45309; }

.card-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.card-logo.vanguard { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.card-logo.kraken { background: linear-gradient(135deg, #7e22ce, #c084fc); }
.card-logo.zenith { background: linear-gradient(135deg, #0891b2, #67e8f9); }
.card-logo.haven { background: linear-gradient(135deg, #be123c, #fb7185); }
.card-logo.northern { background: linear-gradient(135deg, #0f766e, #5eead4); }

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin: 0;
}

.card-bonus {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.stars {
  color: var(--color-accent);
  letter-spacing: -2px;
  font-size: 1.05rem;
}

.card-cta {
  margin-top: auto;
  background: var(--color-accent);
  color: white;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.card-cta:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
}

/* ===== Review section (deep dive top-3) ===== */
.review {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.review-header .card-logo {
  width: 60px;
  height: 60px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.review-header h3 {
  margin: 0;
  flex-grow: 1;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.pros, .cons {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

.pros { background: var(--color-primary-light); }
.cons { background: #fef2f2; }

.pros strong { color: var(--color-primary-dark); }
.cons strong { color: var(--color-danger); }

.pros ul, .cons ul { margin: 0.5rem 0 0; }
.pros li, .cons li { font-size: 0.92rem; }

.info-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.info-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-text-strong);
  width: 38%;
}

/* ===== FAQ ===== */
.faq {
  margin: 2.5rem 0;
}

.faq details {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.faq details[open] {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.faq summary {
  font-weight: 600;
  color: var(--color-text-strong);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--color-text);
}

/* ===== Selection guide ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.guide-item {
  background: var(--color-bg-elevated);
  border-left: 4px solid var(--color-primary);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.guide-item h4 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text-strong);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: white;
  margin-top: 0;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding-left: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.responsible-gambling {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-accent);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-nav { display: none; }
  .container { padding: 0 1rem; }
  h2 { margin-top: 2rem; }
  .hero { padding: 2rem 0 2.5rem; }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .card-cta { display: none; }
  body { background: white; }
}
