/* ============================================================
   guide.css — Shared styles for all Shumen.UK guide pages
   (driving, residency, money, health, shumen)
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f8f7f4; color: #1a1a1a; overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8f7f4; }
::-webkit-scrollbar-thumb { background: #c8102e; border-radius: 4px; }

/* ================================================================
   FLAG STRIPS — full page height, fixed to left and right edges
   UK Union Jack on left; Bulgarian tricolour on right
   ================================================================ */
.flag-strip {
  position: fixed;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

/* Left strip — Union Jack SVG that repeats vertically */
.flag-strip--uk { left: 0; }
.flag-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Soft fade toward the page */
.flag-strip__fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(to right, transparent, #f8f7f4);
}

/* Right strip — Bulgarian white / green / red stripes */
.flag-strip--bg {
  right: 0;
  display: flex;
  flex-direction: column;
}
.flag-strip__fade--right {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(to left, transparent, #f8f7f4);
  z-index: 2;
}
.bg-stripe        { flex: 1; }
.bg-stripe--white { background: #fff; }
.bg-stripe--green { background: #00966E; }
.bg-stripe--red   { background: #D62612; }

/* Bulgarian rose watermark — top of right strip */
.rose-pattern {
  position: absolute;
  top: 80px; right: 2px;
  width: 44px; height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='8' fill='none' stroke='%23D62612' stroke-width='1.5' opacity='0.4'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23D62612' opacity='0.35'/%3E%3Cellipse cx='20' cy='12' rx='3' ry='5' fill='%23D62612' opacity='0.25'/%3E%3Cellipse cx='20' cy='28' rx='3' ry='5' fill='%2300966E' opacity='0.25'/%3E%3Cellipse cx='12' cy='20' rx='5' ry='3' fill='%23D62612' opacity='0.25'/%3E%3Cellipse cx='28' cy='20' rx='5' ry='3' fill='%2300966E' opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #012169;
  box-shadow: 0 2px 12px rgba(1, 33, 105, 0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-title-link { text-decoration: none; }
.site-logo-link { display: block; line-height: 0; }
.site-logo-img { height: 52px; width: auto; border-radius: 6px; display: block; }
.logo-x { font-size: 12px; color: #888; font-weight: 700; }
.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #012169;
  line-height: 1;
}
.title-dot  { color: #C8102E; }
.title-brief { color: #C8102E; }
.site-nav { display: flex; gap: 4px; }
.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { background: #012169; color: #fff; }

/* ================================================================
   GUIDE HERO — full-width navy banner above .page-wrap
   ================================================================ */
.guide-hero {
  background: linear-gradient(135deg, #012169 0%, #0a2f7a 60%, #1a3f8f 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* UK-red glow top-right, BG-green glow bottom-left */
.guide-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.guide-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb / eyebrow */
.guide-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.guide-hero-eyebrow a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.guide-hero-eyebrow a:hover { color: #fff; }
.guide-hero-eyebrow .sep { color: rgba(255, 255, 255, 0.35); }
.guide-hero-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main title */
.guide-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: #fff;
}
.guide-hero h1 span { color: #f0c040; }   /* gold highlight word */

/* Lead paragraph */
.guide-hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
  margin: 0 0 1.75rem;
}

/* Flag transition motif (UK flag → arrow → BG flag) */
.guide-hero-flags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.guide-hero-flags svg { border-radius: 3px; }
.guide-hero-flags .arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

/* Topic pills row */
.guide-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* Key-stats row (health / shumen style) */
.guide-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.guide-hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.guide-hero-stat .kf-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #f0c040;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.guide-hero-stat .kf-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* ================================================================
   PAGE CONTENT WRAPPER
   ================================================================ */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 80px 80px;
}

/* ================================================================
   TABLE OF CONTENTS
   ================================================================ */
.guide-toc {
  background: #f8f9fa;
  border-top: 4px solid #012169;
  padding: 2rem 1.5rem;
}
.guide-toc-inner {
  max-width: 900px;
  margin: 0 auto;
}
.guide-toc h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 1rem;
}
.guide-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}
.guide-toc-grid a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #012169;
  text-decoration: none;
  transition: all 0.15s;
}
.guide-toc-grid a:hover { background: #012169; color: #fff; border-color: #012169; }

/* Numbered TOC box variant (residency / money) */
.toc-box {
  background: #fff;
  border: 2px solid #e8e4dc;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 40px;
}
.toc-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}
.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: #333;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #f0ede6;
  transition: color 0.15s;
}
.toc-link:hover { color: #012169; }
.toc-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #C8102E;
  background: #fef0f0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Section nav (health / shumen pill-bar) */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  padding: 14px 18px;
}
.section-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #012169;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.section-nav a:hover { background: #012169; color: #fff; border-color: #012169; }

/* ================================================================
   SECTION BLOCKS & HEADINGS
   ================================================================ */
.section-block  { margin-bottom: 56px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8102E;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: #C8102E;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #012169;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}
.section-header {
  background: linear-gradient(135deg, #012169, #1a3f8f);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.divider {
  height: 2px;
  background: linear-gradient(to right, #C8102E, transparent);
  margin: 1.5rem 0;
}
.guide-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #012169;
  margin: 2rem 0 0.75rem;
}
.guide-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1rem;
}

/* ================================================================
   CALLOUT BOXES
   ================================================================ */
.callout {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { font-size: 0.88rem; line-height: 1.65; flex: 1; }
.callout-body strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.callout-body p, .callout-body ul { margin: 0; font-family: 'Inter', sans-serif; font-size: 0.92rem; line-height: 1.65; }
.callout-body ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.callout-body li { margin-bottom: 0.25rem; }
.callout--warning { background: #fff8e6; border-left: 4px solid #f59e0b; }
.callout--warning .callout-body strong { color: #92400e; }
.callout--danger  { background: #fef2f2; border-left: 4px solid #C8102E; }
.callout--danger .callout-body strong { color: #991b1b; }
.callout--info    { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout--info .callout-body strong { color: #1e40af; }
.callout--success { background: #f0fdf4; border-left: 4px solid #00966E; }
.callout--success .callout-body strong { color: #14532d; }
.callout--uk      { background: #eef1f8; border-left: 4px solid #012169; }
.callout--uk .callout-body strong { color: #012169; }

/* ================================================================
   DIFF / KEY-DIFFERENCE BANNERS
   ================================================================ */
.diff-banner {
  background: linear-gradient(135deg, #012169, #1a3f8f);
  color: #fff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.diff-banner::after {
  content: '🇬🇧→🇧🇬';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: 0.25;
}
.diff-banner h3 {
  color: #fff !important;
  margin: 0 0 0.5rem !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}
.diff-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #0d1b3e;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
}
.footer-brand { margin-bottom: 28px; }
.footer-flags { display: flex; gap: 8px; margin-bottom: 12px; }
.footer-flag-svg { width: 40px; height: 22px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.2); }
.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Between-guide footer nav */
.guide-footer-nav {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 1.75rem 1.5rem;
  margin-top: 3rem;
}
.guide-footer-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.guide-footer-nav p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}
.guide-footer-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #012169;
  text-decoration: none;
}
.guide-footer-nav a:hover { text-decoration: underline; }

/* ================================================================
   NEWSLETTER SUBSCRIBE STRIP (shared with article pages)
   ================================================================ */
.article-subscribe {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2d5a 100%);
  padding: 56px 24px;
  text-align: center;
}
.subscribe-inner { max-width: 520px; margin: 0 auto; }
.subscribe-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.subscribe-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}
.subscribe-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  line-height: 1.6;
}
.subscribe-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.subscribe-input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-input:focus { border-color: rgba(255,255,255,0.5); }
.subscribe-btn {
  padding: 12px 28px;
  background: #C8102E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.subscribe-btn:hover { background: #a50d25; transform: translateY(-1px); }
.subscribe-success {
  font-size: 1.05rem;
  color: #fff;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-top: 12px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .page-wrap { padding: 0 20px 60px; }
  .guide-toc-inner, .guide-hero-inner { padding: 0 4px; }
  .toc-grid { grid-template-columns: 1fr; }
  .flag-strip { display: none; }
  .header-inner, .footer-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
}
@media (max-width: 640px) {
  .guide-hero { padding: 2.5rem 1rem 2rem; }
  .guide-hero h1 { font-size: 1.75rem; }
  .guide-hero-stats { grid-template-columns: 1fr 1fr; }
  .section-nav { gap: 6px; padding: 12px; }
  .guide-toc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .guide-hero-stats { grid-template-columns: 1fr; }
  .guide-hero-flags { flex-wrap: wrap; gap: 0.3rem; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
}

/* ============================================================
   Guide page — Share block
   ============================================================ */
.share-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  margin: 3rem auto 2.5rem;
  max-width: 700px;
}

.share-block__header {
  background: linear-gradient(135deg, #c8102e 0%, #00205b 100%);
  padding: 1.1rem 1.5rem 1rem;
}

.share-block__heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .3rem;
}

.share-block__cta {
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}

.share-block__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  align-items: center;
}

.guide-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.1rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
}

.guide-share-btn:hover  { opacity: .82; transform: translateY(-2px); }
.guide-share-btn:active { opacity: 1;   transform: translateY(0);    }

.guide-share-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.guide-share-btn--facebook { background: #1877F2; }
.guide-share-btn--whatsapp { background: #25D366; }
.guide-share-btn--reddit   { background: #FF4500; }
.guide-share-btn--linkedin { background: #0A66C2; }
.guide-share-btn--copy     { background: #555e6b; }
.guide-share-btn--copy.copied { background: #198754; }

@media (max-width: 540px) {
  .share-block { margin: 2rem auto 2rem; }
  .share-block__header { padding: 1rem 1.1rem .9rem; }
  .share-block__buttons { gap: .5rem; padding: 1rem 1.1rem 1.25rem; }
  .guide-share-btn { padding: .55rem .85rem; font-size: .82rem; }
}
