/* ============================================================
   Vodič Kroz Portale — vodickrozportale.com
   Adriatic Editorial Guide Identity
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1e2b30;
  background: #F4F0E7;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #165C73; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C96B4B; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.3;
  color: #123142;
}

h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }

p { margin-bottom: 0.85rem; }

.small-text { font-size: 0.85rem; color: #4a5c63; }

/* --- Top Warning --- */
.top-warning {
  background: #123142;
  color: #e8dcc8;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.top-warning strong { color: #e8dcc8; }

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd6c8;
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: block; line-height: 0; }
.logo-link img { width: 200px; height: auto; }

/* Desktop: no menu buttons */
.desktop-nav { display: none; }

/* Mobile burger */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  position: relative;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #123142;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 49, 66, 0.97);
  z-index: 1000;
  padding: 80px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: #F4F0E7;
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.15);
  font-family: Georgia, serif;
}
.mobile-menu a:hover { color: #C96B4B; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #F4F0E7;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Section --- */
.hero {
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #123142;
}
.hero p {
  font-size: 1rem;
  color: #2a3f47;
  max-width: 720px;
  margin-bottom: 20px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-badge {
  display: inline-block;
  background: #e3ddd0;
  color: #123142;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- Section Base --- */
.section { padding: 32px 0; }
.section-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd6c8;
  color: #123142;
}

/* --- Steps (tri) --- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #165C73;
  color: #F4F0E7;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- Card Rows --- */
.card-list { display: flex; flex-direction: column; gap: 28px; }

.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e3ddd0;
  width: 100%;
}

.card-inner {
  display: flex;
  flex-direction: column;
}

.card-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100px;
}
.card-logo-area img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.card-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #4a5c63;
  margin-bottom: 6px;
}
.card-score-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #123142;
}

.card-body { padding: 20px 24px; }
.card-body p { font-size: 0.92rem; color: #2a3f47; }

.card-bullets {
  margin: 12px 0;
}
.card-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #2a3f47;
}
.card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C96B4B;
}

.card-note {
  font-size: 0.8rem;
  color: #6e7f85;
  margin: 8px 0;
  font-style: italic;
}

.card-cta {
  display: inline-block;
  padding: 10px 28px;
  background: #165C73;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}
.card-cta:hover {
  background: #0f465a;
  color: #fff;
}

.card-footer-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #6E9182;
  border-bottom: 1px dotted #6E9182;
}

/* Highlighted card */
.card-highlight {
  border-color: #C96B4B;
  border-width: 1px;
}
.card-highlight .card-logo-area {
  background: #17677D;
}
.card-highlight .card-cta {
  background: #C96B4B;
}
.card-highlight .card-cta:hover {
  background: #b05a3d;
}

/* --- Card Logo Backgrounds --- */
.card-bg-a .card-logo-area { background: #17677D; }
.card-bg-b .card-logo-area { background: #AF6049; }
.card-bg-c .card-logo-area { background: #4F7594; }
.card-bg-d .card-logo-area { background: #75619B; }
.card-bg-e .card-logo-area { background: #5E826A; }
.card-bg-f .card-logo-area { background: #3D5868; }

/* --- Payment Methods --- */
.payment-methods p { font-size: 0.92rem; color: #2a3f47; }
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.payment-icon {
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: #4a5c63;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- Regulator / Institution --- */
.regulator-info { font-size: 0.92rem; color: #2a3f47; }

/* --- Player Protection --- */
.protection-info { font-size: 0.92rem; color: #2a3f47; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1px solid #ddd6c8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-family: Georgia, serif;
  color: #123142;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #165C73;
}
.faq-q.open::after { content: "–"; }
.faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 0.9rem;
  color: #2a3f47;
  line-height: 1.6;
}
.faq-a.open { display: block; }

/* --- Footer --- */
.site-footer {
  background: #0D2631;
  color: #c8cfd4;
  padding: 48px 0 36px;
  margin-top: 48px;
}
.site-footer p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #b0bcc4;
  margin-bottom: 18px;
}
.site-footer strong { color: #d6dde2; }
.footer-resource-heading {
  font-size: 1rem;
  color: #e3ddd0;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244,240,231,0.15);
}
.footer-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 24px;
  align-items: center;
}
.footer-images a { display: inline-block; line-height: 0; }
.footer-images img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-images img:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(244,240,231,0.1);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #7a8b94;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.footer-links a {
  color: #8ea5b0;
  font-size: 0.8rem;
}
.footer-links a:hover { color: #C96B4B; }
.footer-responsible {
  font-weight: 700;
  font-size: 0.82rem;
  color: #d6dde2;
  margin: 12px 0;
}

/* --- 18+ Popup --- */
.age-popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.age-popup-overlay.show { display: flex; }
.age-popup {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.age-popup h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #123142;
}
.age-popup-buttons { display: flex; gap: 12px; justify-content: center; }
.age-popup-btn {
  padding: 10px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.2s;
}
.age-popup-btn-yes {
  background: #165C73;
  color: #fff;
}
.age-popup-btn-yes:hover { background: #0f465a; }
.age-popup-btn-no {
  background: #ddd6c8;
  color: #123142;
}
.age-popup-btn-no:hover { background: #ccc5b5; }

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #123142;
  color: #e8dcc8;
  padding: 16px 24px;
  z-index: 1999;
  font-size: 0.85rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-inner p { margin-bottom: 0; font-size: 0.82rem; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btn {
  padding: 6px 18px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: background 0.2s;
}
.cookie-accept { background: #165C73; color: #fff; }
.cookie-accept:hover { background: #0f465a; }
.cookie-reject { background: #4a5c63; color: #e8dcc8; }
.cookie-reject:hover { background: #3a4c53; }

/* --- Internal page generic --- */
.page-content {
  padding: 40px 0 48px;
}
.page-content h1 {
  margin-bottom: 20px;
}
.page-content h2 {
  margin-top: 28px;
}
.page-content p, .page-content ul, .page-content ol {
  font-size: 0.95rem;
  color: #2a3f47;
  margin-bottom: 14px;
}
.page-content ul, .page-content ol {
  padding-left: 24px;
}
.page-content li { margin-bottom: 6px; }

/* --- Redirect Page --- */
.redirect-page {
  padding: 60px 0;
  text-align: center;
}
.redirect-page .loading-spinner {
  margin: 24px auto;
  width: 40px;
  height: 40px;
  border: 3px solid #ddd6c8;
  border-top-color: #165C73;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect-message { font-size: 1.05rem; color: #123142; margin-bottom: 8px; }
.redirect-note { font-size: 0.85rem; color: #4a5c63; margin-bottom: 24px; }
.redirect-fallback {
  display: inline-block;
  padding: 10px 28px;
  background: #165C73;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.redirect-fallback:hover { background: #0f465a; color: #fff; }

/* --- Thank You Page --- */
.thankyou-page { text-align: center; padding: 60px 0; }
.thankyou-page h1 { margin-bottom: 16px; }

/* --- Responsive --- */
@media (min-width: 769px) {
  .burger-btn { display: none !important; }
  .mobile-menu { display: none !important; }
  .desktop-nav { display: none; }
  .card-inner {
    flex-direction: row;
  }
  .card-logo-area {
    min-width: 180px;
    width: 180px;
    min-height: 140px;
  }
}

@media (max-width: 768px) {
  .burger-btn { display: block; }
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .card-logo-area { min-height: 80px; padding: 16px; }
  .card-logo-area img { max-height: 90px; }
  .card-body { padding: 16px; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .footer-images { justify-content: center; }
}

/* --- Turnstile Overlay with Blur --- */
.turnstile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.turnstile-overlay.active { display: flex; }

.turnstile-modal {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
}
.turnstile-modal p {
  font-size: 0.95rem;
  color: #123142;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}
.turnstile-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #6e7f85;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.turnstile-close-btn:hover { color: #123142; }

/* --- Card footer link as button --- */
button.card-footer-link {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  border-bottom: 1px dotted #6E9182;
  border-radius: 0;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.82rem;
  color: #6E9182;
}
button.card-footer-link:hover { color: #C96B4B; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.35rem; }
  .hero { padding: 32px 0 20px; }
  .section { padding: 24px 0; }
  .age-popup { padding: 28px 20px; }
}
