/* =========================================================
   MailSetupGuide – Professional Knowledge Base Theme
   Navy + Slate Blue color system, dark mode supported
   ========================================================= */

/* ── Font Display Optimization ──────────────────────────── */
/* Override Bootstrap Icons @font-face to use swap — prevents invisible text during load */
@font-face {
  font-family: "bootstrap-icons";
  font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --navy-darkest: #0a1628;
  --navy-dark:    #0d1f3c;
  --navy:         #1a3561;
  --navy-mid:     #1e4080;
  --navy-light:   #2563a8;
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #eff6ff;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #06b6d4;

  --bg-body:      #f8fafc;
  --bg-card:      #ffffff;
  --bg-code:      #1e293b;
  --bg-sidebar:   #f1f5f9;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-light:     #cbd5e1;

  --border:       #e2e8f0;
  --border-focus: #3b82f6;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.08), 0 10px 10px -5px rgba(0,0,0,.03);

  --radius-sm:  .375rem;
  --radius:     .5rem;
  --radius-md:  .75rem;
  --radius-lg:  1rem;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --transition: .2s ease;
}

[data-bs-theme="dark"] {
  --bg-body:      #0f172a;
  --bg-card:      #1e293b;
  --bg-code:      #0f172a;
  --bg-sidebar:   #1e293b;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border:       #334155;
  --accent-light: #1e3a5f;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.3);
}

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

body {
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  margin-bottom: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Navbar ──────────────────────────────────────────────── */
.site-navbar {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.site-navbar .brand-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .875rem; font-weight: 500;
  padding: .35rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

/* ── Hero Search ─────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::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.03'%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");
}

.hero-title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.0625rem; }

.search-box-wrapper {
  position: relative; max-width: 680px; margin: 2rem auto 0;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  border: none; border-radius: var(--radius-md);
  font-size: 1rem; outline: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  background: #fff; color: var(--text-primary);
}

[data-bs-theme="dark"] .search-input { background: var(--bg-card); }

.search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.125rem; pointer-events: none;
}

.search-btn {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm);
  padding: .5rem 1.25rem; font-weight: 600; font-size: .875rem;
  cursor: pointer; transition: background var(--transition);
}

.search-btn:hover { background: var(--accent-hover); }

.search-suggestions {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 500; display: none; max-height: 320px; overflow-y: auto;
}

.search-suggestions.show { display: block; }

.suggestion-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem; color: var(--text-primary);
  font-size: .9rem; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--accent-light); color: var(--accent); }

.popular-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.popular-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .3rem .875rem;
  font-size: .8125rem; cursor: pointer;
  transition: all var(--transition);
}

.popular-tag:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Category Cards ──────────────────────────────────────── */
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: all var(--transition); cursor: pointer;
  text-decoration: none; color: inherit; display: block; height: 100%;
}

.category-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--accent);
  transform: translateY(-2px); color: inherit;
}

.cat-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; margin-bottom: 1rem;
}

.cat-name { font-weight: 600; font-size: 1rem; margin-bottom: .35rem; color: var(--text-primary); }
.cat-desc { font-size: .8125rem; color: var(--text-secondary); line-height: 1.5; }
.cat-count { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; }

/* ── Article Card ────────────────────────────────────────── */
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}

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

.article-thumb { width: 100%; height: 160px; object-fit: cover; }

.article-thumb-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--accent-light), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent);
}

.article-card .card-body { padding: 1.25rem; flex: 1; }

.article-category {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); margin-bottom: .4rem; display: block;
}

.article-title {
  font-size: .9375rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.article-card:hover .article-title { color: var(--accent); }

.article-excerpt {
  font-size: .8125rem; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card-footer-meta {
  padding: .75rem 1.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; color: var(--text-muted);
}

.badge-beginner     { background: #d1fae5; color: #065f46; }
.badge-intermediate { background: #fef3c7; color: #92400e; }
.badge-advanced     { background: #fee2e2; color: #991b1b; }

[data-bs-theme="dark"] .badge-beginner     { background: #064e3b; color: #6ee7b7; }
[data-bs-theme="dark"] .badge-intermediate { background: #78350f; color: #fcd34d; }
[data-bs-theme="dark"] .badge-advanced     { background: #7f1d1d; color: #fca5a5; }

/* ── Article Detail ──────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  gap: 1rem; align-items: start;
}

/* Sidebar sütunları içeriğe göre değil grid satırı yüksekliğine göre gerilir.
   Bu olmadan position:sticky içerik yüksekliğinden sonra çalışmayı bırakır. */
.article-sidebar-col,
.article-toc-col { align-self: stretch; }

@media (max-width: 1199px) {
  .article-layout { grid-template-columns: 220px 1fr; }
  .article-toc-col { display: none; }
}

@media (max-width: 767px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar-col { display: none; }
}

.article-sidebar {
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto; scrollbar-width: thin;
}

/* ── Sidebar card sections ───────────────────────────────── */
.sidebar-section {
  margin-bottom: .875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem .6rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-secondary);
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
  display: flex; align-items: center; gap: .375rem;
}

.sidebar-nav-link {
  display: flex; align-items: center;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .845rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  margin-bottom: .2rem;
  text-decoration: none;
}

.sidebar-nav-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: .875rem;
}

.sidebar-nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  padding-left: .875rem;
}

/* ── Sidebar count pill ──────────────────────────────────── */
.sidebar-count {
  margin-left: auto;
  font-size: .68rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .05rem .45rem;
  flex-shrink: 0;
}

/* ── Right TOC ───────────────────────────────────────────── */
.toc-sticky {
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto; scrollbar-width: thin;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: .1rem; }

.toc-link {
  display: block; font-size: .8125rem;
  color: var(--text-secondary); font-weight: 500;
  padding: .28rem .6rem; border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition); line-height: 1.45;
  text-decoration: none;
}

.toc-link:hover { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); font-weight: 600; }

.toc-h3 { padding-left: 1.1rem; font-size: .775rem; font-weight: 400; color: var(--text-muted); }
.toc-h4 { padding-left: 2rem;   font-size: .75rem;  font-weight: 400; color: var(--text-muted); }
.toc-h3:hover, .toc-h3.active,
.toc-h4:hover, .toc-h4.active { color: var(--accent); }

/* Article Content Styles */
.article-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2rem 2.5rem;
}

@media (max-width: 575px) { .article-content { padding: 1.25rem; } }

.article-content h1, .article-content h2,
.article-content h3, .article-content h4 {
  color: var(--text-primary); margin-top: 2rem; margin-bottom: .875rem;
  scroll-margin-top: 90px; line-height: 1.35;
}

.article-content h2 {
  font-size: 1.375rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--border);
}

.article-content h3 { font-size: 1.125rem; }
.article-content h4 { font-size: 1rem; }
.article-content p { margin-bottom: 1rem; }

.article-content ul, .article-content ol {
  padding-left: 1.75rem; margin-bottom: 1rem;
}

.article-content li { margin-bottom: .3rem; }

.article-content img {
  border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.25rem 0;
}

.article-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }

.article-content th {
  background: var(--navy-dark); color: #fff;
  padding: .65rem 1rem; text-align: left; font-weight: 600;
}

.article-content td {
  padding: .6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary);
}

.article-content tr:nth-child(even) td { background: var(--bg-sidebar); }

.code-wrapper { position: relative; }

.article-content pre {
  background: var(--bg-code); border-radius: var(--radius);
  padding: 1.25rem; overflow-x: auto; margin: 1.25rem 0;
  font-size: .85rem; line-height: 1.6;
}

.article-content pre code {
  color: #e2e8f0; font-family: var(--font-mono); background: none; padding: 0;
}

.article-content code {
  background: var(--accent-light); color: var(--navy);
  padding: .15em .4em; border-radius: .25rem;
  font-size: .875em; font-family: var(--font-mono);
}

[data-bs-theme="dark"] .article-content code { background: #1e3a5f; color: #93c5fd; }

.copy-btn {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(255,255,255,.1); color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .2rem .6rem; font-size: .75rem; cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: .3rem;
}

.copy-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* Callout Boxes */
.callout {
  border-left: 4px solid; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
  display: flex; gap: .75rem;
}

.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

.callout-info    { border-color: var(--info);    background: #ecfeff; }
.callout-warning { border-color: var(--warning); background: #fffbeb; }
.callout-danger  { border-color: var(--danger);  background: #fef2f2; }
.callout-success { border-color: var(--success); background: #f0fdf4; }
.callout-tip     { border-color: var(--accent);  background: var(--accent-light); }

[data-bs-theme="dark"] .callout-info    { background: #0c4a6e20; }
[data-bs-theme="dark"] .callout-warning { background: #78350f20; }
[data-bs-theme="dark"] .callout-danger  { background: #7f1d1d20; }
[data-bs-theme="dark"] .callout-success { background: #14532d20; }
[data-bs-theme="dark"] .callout-tip     { background: #1e3a5f30; }

.callout-info    .callout-icon { color: var(--info); }
.callout-warning .callout-icon { color: var(--warning); }
.callout-danger  .callout-icon { color: var(--danger); }
.callout-success .callout-icon { color: var(--success); }
.callout-tip     .callout-icon { color: var(--accent); }

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

.step-item {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  counter-increment: steps; position: relative;
}

.step-item::before {
  content: counter(steps);
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; margin-top: .1rem;
}

/* Feedback */
.feedback-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center; margin-top: 2rem;
}

.feedback-btn {
  border: 1px solid var(--border); background: var(--bg-body);
  color: var(--text-secondary); border-radius: var(--radius);
  padding: .6rem 1.5rem; cursor: pointer;
  transition: all var(--transition); font-size: .875rem;
  display: inline-flex; align-items: center; gap: .4rem;
}

.feedback-btn:hover { border-color: var(--accent); color: var(--accent); }
.feedback-btn.active-yes { background: var(--success); color: #fff; border-color: var(--success); }
.feedback-btn.active-no  { background: var(--danger);  color: #fff; border-color: var(--danger); }

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem;
}

.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border); margin-left: .5rem;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-nav {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: .6rem 0; font-size: .8125rem;
}

.breadcrumb { margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }

/* ── Dark Mode Toggle ─────────────────────────────────────── */
.dark-toggle {
  width: 40px; height: 22px;
  background: rgba(255,255,255,.15); border-radius: 11px;
  cursor: pointer; position: relative;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition); flex-shrink: 0;
}

.dark-toggle::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; background: #fff;
  border-radius: 50%; transition: transform var(--transition);
}

.dark-toggle.active { background: var(--accent); }
.dark-toggle.active::after { transform: translateX(18px); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-darkest); color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem; margin-top: 4rem;
}

.site-footer a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.site-footer a:hover { color: #fff; }

.footer-heading {
  color: rgba(255,255,255,.9); font-weight: 600; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}

.footer-link { display: block; margin-bottom: .35rem; font-size: .85rem; }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  margin-top: 2rem; font-size: .8125rem; text-align: center;
  color: rgba(255,255,255,.4);
}

/* ── Search Page ─────────────────────────────────────────── */
.search-result-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
  transition: all var(--transition);
}

.search-result-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.result-title { font-size: 1.0625rem; font-weight: 600; color: var(--accent); margin-bottom: .35rem; }
.result-excerpt { font-size: .875rem; color: var(--text-secondary); margin-bottom: .5rem; }
.result-meta { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: .75rem; }

/* ── Reading Progress ─────────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent); z-index: 9999;
  transition: width .1s linear; width: 0%;
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-accordion .accordion-button {
  background: var(--bg-card); color: var(--text-primary);
  font-weight: 600; font-size: .9375rem; box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--accent-light); color: var(--accent); box-shadow: none;
}

.faq-accordion .accordion-body {
  background: var(--bg-card); color: var(--text-secondary);
  font-size: .9rem; line-height: 1.7;
}

/* ── Cookie Consent Banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9980;
  background: var(--bg-card);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -6px 32px rgba(0,0,0,.13);
  padding: 1.1rem 0;
  transform: translateY(100%);
  animation: cookieSlideUp .55s cubic-bezier(.16,1,.3,1) .7s forwards;
}

.cookie-banner.hiding {
  animation: cookieSlideDown .38s cubic-bezier(.4,0,1,1) forwards !important;
}

@keyframes cookieSlideUp {
  to { transform: translateY(0); }
}

@keyframes cookieSlideDown {
  to { transform: translateY(110%); opacity: 0; }
}

.cookie-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.cookie-text {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .45rem 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept:hover { background: var(--accent-hover); }

.cookie-btn-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .45rem .9rem;
  font-size: .82rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

@media (max-width: 576px) {
  .cookie-banner .cookie-row { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept,
  .cookie-btn-decline { flex: 1; text-align: center; }
}

/* ── Skeleton ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-sidebar) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp .4s ease both; }

/* Utilities */
.text-navy   { color: var(--navy) !important; }
.bg-navy     { background: var(--navy) !important; }
.bg-card     { background: var(--bg-card) !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section { padding: 2.5rem 0 3.5rem; }
  .search-box-wrapper { margin-top: 1.5rem; }
  .section-title { font-size: 1.1rem; }
}

/* ── Legal Pages (Privacy / Terms) ──────────────────────── */
.legal-page { min-height: 60vh; }

.legal-header {
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}
.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
[data-bs-theme="dark"] .legal-header h1 { color: var(--text-primary); }

.legal-body { color: var(--text-primary); line-height: 1.8; }

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: .65rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
[data-bs-theme="dark"] .legal-body h2 { color: var(--accent); }

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: .45rem;
}

.legal-body p  { margin-bottom: .9rem; }
.legal-body ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-body li { margin-bottom: .35rem; }

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { opacity: .8; }

.legal-body code {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .87em;
  color: var(--accent);
}

.legal-body .lead { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

@media (max-width: 767px) {
  .legal-header h1 { font-size: 1.5rem; }
  .legal-body h2   { font-size: 1.05rem; }
}
