/* Izlandapedia ortak modern arayüzü — dil öğrenme bölümlerine yüklenmez. */
:root {
  --izp-navy: #0b2440;
  --izp-navy-2: #12395d;
  --izp-red: #d9222a;
  --izp-ice: #eaf4f8;
  --izp-mist: #f5f7f8;
  --izp-ink: #172a3b;
  --izp-muted: #5d6b77;
  --izp-line: #dce4e9;
  --izp-card: #ffffff;
  --izp-radius: 22px;
  --izp-shadow: 0 18px 50px rgba(11, 36, 64, .10);
}

html { scroll-behavior: smooth; }

body.site-modernized {
  color: var(--izp-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(58, 148, 177, .11), transparent 34rem),
    linear-gradient(180deg, #fbfcfc 0, #f3f6f7 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.site-modernized :where(main, section, article, div, nav, header, footer) { min-width: 0; }

body.site-modernized::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--izp-navy) 0 62%, var(--izp-red) 62% 100%);
}

.izp-global-header {
  position: relative;
  z-index: 50;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: rgba(11, 36, 64, .97);
  color: #fff;
  box-shadow: 0 12px 35px rgba(11, 36, 64, .16);
}

.izp-global-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff !important;
  text-decoration: none;
}

.izp-global-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.izp-global-brand span { display: grid; gap: 2px; }
.izp-global-brand b { font-family: Georgia, serif; font-size: 1.14rem; letter-spacing: .08em; }
.izp-global-brand small { max-width: 320px; color: #b9cad7; font-size: .76rem; line-height: 1.25; }

.izp-global-header > nav { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 2vw, 27px); }
.izp-global-header > nav a { color: #e7eef3; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.izp-global-header > nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--izp-red); }

.izp-language-switch { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.izp-language { min-width: 34px; padding: 6px 8px; border-radius: 999px; color: #fff !important; font-size: .72rem; font-weight: 800; text-align: center; text-decoration: none; }
.izp-language.active { background: #fff; color: var(--izp-navy) !important; }

/* Eski genel başlıklar yerine tek kurumsal başlık; uygulama içi alt menüler korunur. */
.site-modernized > :where(.site-header, .guide-index-header, .food-header, .ed-top) { display: none !important; }

.site-modernized :where(a) {
  color: #0b5276;
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

.site-modernized :where(a:hover) { color: var(--izp-red); }

.site-modernized :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(217, 34, 42, .36);
  outline-offset: 3px;
}

.site-modernized :where(img, svg, video) { max-width: 100%; height: auto; }

.site-modernized :where(.site-header, .guide-index-header, .food-header, .guide-nav) {
  border: 0;
  background: linear-gradient(135deg, var(--izp-navy), var(--izp-navy-2));
  color: #fff;
  box-shadow: 0 10px 34px rgba(11, 36, 64, .18);
}

.site-modernized :where(.site-header, .guide-index-header, .food-header) a,
.site-modernized .guide-nav a { color: #fff; }

.site-modernized :where(.site-header, .guide-index-header, .food-header) img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .16));
}

.site-modernized > main,
.site-modernized main.guide-index,
.site-modernized main.guide-page {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-modernized > main { padding-block: clamp(28px, 5vw, 72px); }

.site-modernized :where(.article-body, .guide-content) {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--izp-line);
  border-radius: var(--izp-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--izp-shadow);
}

.site-modernized :where(h1, h2, h3) {
  color: var(--izp-navy);
  line-height: 1.13;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.site-modernized h1 { font-size: clamp(2.1rem, 6vw, 4.4rem); }
.site-modernized h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin-top: 1.65em; }
.site-modernized h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); }

.site-modernized :where(p, li) { max-width: 78ch; }
.site-modernized :where(.lead, .intro, .subtitle) { color: var(--izp-muted); font-size: 1.08rem; }

.site-modernized :where(.hy-card, .news-item, .recipe, .guide-card, .card, article:not(.article-body):not(.guide-content)) {
  border: 1px solid var(--izp-line);
  border-radius: var(--izp-radius);
  background: var(--izp-card);
  box-shadow: 0 12px 36px rgba(11, 36, 64, .07);
}

.site-modernized :where(.hy-card, .news-item, .guide-card, .card) {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.site-modernized :where(.hy-card, .news-item, .guide-card, .card):hover {
  transform: translateY(-3px);
  border-color: #b8cbd5;
  box-shadow: 0 18px 45px rgba(11, 36, 64, .11);
}

.site-modernized :where(table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--izp-line);
  border-radius: 16px;
  background: #fff;
}

.site-modernized :where(th) {
  background: var(--izp-navy);
  color: #fff;
  text-align: left;
}

.site-modernized :where(th, td) { padding: .8rem .9rem; border-bottom: 1px solid var(--izp-line); }
.site-modernized tbody tr:nth-child(even) { background: var(--izp-mist); }

.site-modernized :where(input, select, textarea) {
  min-height: 46px;
  border: 1px solid #bdcbd3;
  border-radius: 12px;
  background: #fff;
  color: var(--izp-ink);
}

.site-modernized :where(button, .button, .btn, [class*="cta"]) {
  border-radius: 999px;
  font-weight: 750;
}

.site-modernized :where(blockquote, .note, .tip, .info-box, .callout) {
  border: 0;
  border-left: 5px solid var(--izp-red);
  border-radius: 0 16px 16px 0;
  background: var(--izp-ice);
  padding: 1rem 1.2rem;
}

.site-modernized :where(footer, .site-footer) {
  margin-top: 64px;
  border-top: 5px solid var(--izp-red);
  background: var(--izp-navy);
  color: #dce8f0;
}

.site-modernized :where(footer, .site-footer) a { color: #fff; }

.izp-global-footer {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) 2fr;
  gap: 34px 60px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 6vw, 84px) 28px;
  border-top: 5px solid var(--izp-red) !important;
  background: var(--izp-navy) !important;
  color: #dce8f0 !important;
}

.izp-footer-brand { display: flex; align-items: center; gap: 18px; }
.izp-footer-brand img { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; background: #fff; }
.izp-footer-brand b { color: #fff; font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: .09em; }
.izp-footer-brand p { margin: 6px 0 0; color: #b9cad7; }
.izp-global-footer > nav { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); align-content: center; gap: 12px 24px; }
.izp-global-footer a { color: #fff !important; font-weight: 650; }
.izp-footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.izp-footer-legal span { margin-left: auto; color: #93a9b9; }

@media (max-width: 760px) {
  .izp-global-header {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .izp-global-brand img { width: 52px; height: 52px; }
  .izp-global-brand small { display: none; }
  .izp-global-header > nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    padding: 10px 0 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .izp-global-header > nav::-webkit-scrollbar { display: none; }

  .izp-global-footer { grid-template-columns: 1fr; gap: 30px; }
  .izp-global-footer > nav { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .izp-footer-legal { grid-column: 1; }
  .izp-footer-legal span { width: 100%; margin-left: 0; }
  .site-modernized > main,
  .site-modernized main.guide-index,
  .site-modernized main.guide-page { width: min(100% - 20px, 1180px); }

  .site-modernized :where(.article-body, .guide-content) {
    padding: 22px 17px;
    border-radius: 17px;
  }

  .site-modernized :where(h1, h2, h3, p, li, a) {
    overflow-wrap: anywhere;
  }

  .site-modernized :where(table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-modernized :where(th, td) { min-width: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-modernized *, .site-modernized *::before, .site-modernized *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
