/* olbebaba.hu — Legjobb online kaszinók Magyarországon */

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-primary: #1a7a4c;
  --color-primary-dark: #145c39;
  --color-primary-light: #e8f5ee;
  --color-accent: #d4a017;
  --color-accent-light: #fef9e7;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-header: #0f172a;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.1);
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--color-header);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 1.75rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-header);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0;
}

/* Widget section */
.widget-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.widget-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

#casino-widget-iframe {
  width: 100%;
  border: none;
  display: block;
  overflow: hidden;
  min-height: 200px;
}

/* Main content */
.main-content {
  padding: 2rem 0 3rem;
}

.content-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.intro-text {
  font-size: 1.05rem;
  color: var(--color-text);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

thead {
  background: var(--color-primary);
  color: #fff;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:nth-child(even) {
  background: var(--color-bg);
}

tbody tr:hover {
  background: var(--color-primary-light);
}

th {
  font-weight: 600;
  white-space: nowrap;
}

/* Rank badge */
.rank-1 { font-weight: 700; color: var(--color-accent); }
.rank-2, .rank-3 { font-weight: 600; }

/* Info boxes */
.info-box {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.info-box--green {
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  font-weight: 600;
  padding: 1rem 1.25rem;
  margin: 0;
  background: var(--color-bg);
  font-size: 1rem;
  color: var(--color-header);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* Steps list */
.steps-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  border-bottom: 1px solid var(--color-border);
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info-card {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.contact-info-card h2 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* 404 page */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin: 0;
}

.error-message {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 1rem 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: var(--color-header);
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-disclaimer {
  max-width: 600px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cookie-text a {
  color: var(--color-primary);
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--color-primary-dark);
}

.btn-cookie-decline {
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-decline:hover {
  background: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .content-card {
    padding: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.75rem 0 1.5rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    width: 100%;
    text-align: center;
  }
}
