/*
Theme Name: OltaBlog Balık Ansiklopedisi
Theme URI: https://oltablog.com
Author: OltaBlog
Description: Balık türleri, yaşam alanları ve güvenli tüketim bilgileri için hazırlanmış sade ansiklopedi teması.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: oltablog
*/

:root {
  --navy: #062a43;
  --deep-sea: #074f78;
  --blue: #087fc3;
  --sea: #20b9cd;
  --sky: #8adff1;
  --foam: #eafaff;
  --sand: #fff3da;
  --coral: #ff7e5f;
  --ink: #10364f;
  --muted: #607f91;
  --line: #cfe7ef;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 14px 42px rgba(11, 43, 64, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(138,223,241,.19), transparent 28rem),
    radial-gradient(circle at 92% 60%, rgba(32,185,205,.12), transparent 30rem),
    #f7fcfe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220, 232, 237, .85);
  background: rgba(247, 252, 254, .92);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 15px; color: white;
  background: linear-gradient(145deg, var(--deep-sea), var(--blue) 58%, var(--sea));
  box-shadow: 0 8px 24px rgba(22, 102, 197, .22);
}
.brand-mark svg { width: 28px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.22rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .72rem; letter-spacing: .01em; font-weight: 650; }
.nav-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-weight: 700; color: #355266; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--blue); }
.menu-toggle { display: none; border: 0; border-radius: 12px; padding: 10px; background: var(--foam); color: var(--navy); }

.hero {
  position: relative; overflow: hidden; color: white;
  background:
    radial-gradient(circle at 82% 22%, rgba(138,223,241,.24), transparent 23rem),
    linear-gradient(120deg, #05263d 0%, #0874ac 55%, #19b5c7 100%);
}
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -150px; top: -300px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018); }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px; height: 78px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 68C180 14 330 108 520 58s330-26 470 4 282 34 450-18v76H0Z' fill='%23f7fcfe'/%3E%3Cpath d='M0 48c180-54 330 40 520-10s330-26 470 4 282 34 450-18' fill='none' stroke='%238adff1' stroke-opacity='.52' stroke-width='3'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat; }
.hero-inner { position: relative; z-index: 1; padding: 84px 0 76px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #bff8f2; font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.45rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.hero p { max-width: 650px; margin: 24px 0 30px; color: #dceff5; font-size: 1.08rem; }
.fish-search { display: flex; max-width: 720px; gap: 10px; padding: 8px; border-radius: 18px; background: white; box-shadow: 0 18px 40px rgba(3, 28, 45, .22); }
.fish-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 12px 14px; color: var(--ink); background: transparent; }
.fish-search button { flex: 0 0 auto; border: 0; border-radius: 13px; padding: 12px 22px; color: white; background: var(--coral); font-weight: 800; cursor: pointer; }
.hero-card { position: relative; overflow: hidden; padding: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.08)); backdrop-filter: blur(12px); }
.hero-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -65px; bottom: -70px; border: 18px solid rgba(138,223,241,.11); border-radius: 50%; }
.hero-card-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: rgba(255,255,255,.16); font-size: 1.9rem; }
.hero-card-icon svg { width: 58px; height: 58px; }
.hero-card strong { display: block; margin-top: 20px; font-size: 1.3rem; }
.hero-card p { margin: 8px 0 0; font-size: .93rem; }

.section { padding: 70px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .archive-title { margin: 0; color: var(--navy); font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { max-width: 550px; margin: 8px 0 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 800; white-space: nowrap; }

.stat-strip { position: relative; z-index: 2; margin-top: -28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.stat { padding: 22px 26px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--blue); font-size: 1.55rem; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 700; }

.fish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fish-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #fbfeff); box-shadow: 0 9px 28px rgba(5,65,96,.07); transition: transform .2s ease, box-shadow .2s ease; }
.fish-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fish-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(145deg, #dff7fb, #e8f2fc); }
.fish-card-media::after { content: ""; position: absolute; inset: auto 0 -1px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 42' preserveAspectRatio='none'%3E%3Cpath d='M0 24C80 2 145 39 230 18s150-4 215 8 106 8 155-4v20H0Z' fill='%23ffffff'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.fish-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fish-card:hover .fish-card-media img { transform: scale(1.035); }
.fish-placeholder { height: 100%; display: grid; place-items: center; padding: 20px; color: var(--muted); font-size: .9rem; font-weight: 800; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 11px; color: #16565c; background: var(--foam); font-size: .76rem; font-weight: 850; }
.badge-danger { color: #9a332c; background: #fff0ec; }
.fish-card .badge { position: absolute; top: 14px; left: 14px; }
.fish-card-body { padding: 21px; }
.fish-card h3 { margin: 0; color: var(--navy); font-size: 1.32rem; line-height: 1.2; }
.latin { margin: 4px 0 15px; color: var(--muted); font-size: .9rem; font-style: italic; }
.fish-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); color: #496577; font-size: .82rem; }
.fish-facts strong { display: block; color: var(--ink); font-size: .88rem; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; overflow: hidden; min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, white 35%, var(--foam)); box-shadow: 0 8px 24px rgba(5,65,96,.055); transition: transform .2s ease, border-color .2s ease; }
.category-card::after { content: "≈"; position: absolute; right: 15px; bottom: -13px; color: rgba(8,127,195,.13); font-size: 4.5rem; font-weight: 900; }
.category-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.category-card span { font-size: 1.7rem; }
.category-card strong { display: block; margin-top: 14px; color: var(--navy); font-size: 1.05rem; }
.category-card small { color: var(--muted); }

.app-promo { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 86% 18%, rgba(138,223,241,.2), transparent 24rem), linear-gradient(125deg, #041f34, #086b9e 58%, #19b5c7); }
.app-promo::before { content: ""; position: absolute; inset: 0; opacity: .32; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='140' viewBox='0 0 320 140'%3E%3Cpath d='M-20 80c55-36 98 34 155 0s104-3 180 1' fill='none' stroke='%238adff1' stroke-opacity='.34' stroke-width='2'/%3E%3Cpath d='M20 108c55-36 98 34 155 0s104-3 180 1' fill='none' stroke='%23ffffff' stroke-opacity='.2' stroke-width='2'/%3E%3C/svg%3E") repeat; }
.app-promo::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; top: -260px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.018); }
.app-promo-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px; padding: 78px 0; }
.app-promo h2 { max-width: 650px; margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
.app-promo p { max-width: 620px; margin: 20px 0 25px; color: #d4edf2; }
.app-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #9ef3e8; font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-button { background: var(--coral); box-shadow: 0 12px 26px rgba(0,0,0,.15); }
.app-button.is-disabled { cursor: default; background: rgba(255,255,255,.16); box-shadow: none; }
.app-link { padding: 12px 4px; color: white; font-weight: 800; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.feature-pills span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #dff5f7; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 750; }
.phone-shell { width: min(330px, 85vw); margin-inline: auto; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 38px; background: #071d2b; box-shadow: 0 28px 70px rgba(2,19,29,.42); transform: rotate(2deg); }
.phone-screen { min-height: 485px; overflow: hidden; border-radius: 29px; color: var(--ink); background: #f8fbfc; }
.phone-top { padding: 24px 20px 40px; color: white; background: linear-gradient(140deg, var(--blue), var(--sea)); }
.phone-brand-logo { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 13px; padding: 5px; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 10px 25px rgba(1,25,42,.2); }
.phone-brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.phone-top small { color: #cceeff; }
.phone-top strong { display: block; margin-top: 6px; font-size: 1.5rem; }
.phone-content { margin-top: -22px; padding: 0 15px 18px; }
.phone-card { margin-bottom: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 7px 18px rgba(11,43,64,.08); }
.phone-card b { display: block; color: var(--navy); }
.phone-card small { color: var(--muted); }
.phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-stat { padding: 13px; border-radius: 14px; color: #166170; background: var(--foam); font-size: .78rem; font-weight: 800; }
.app-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.app-feature { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, #fff, #f1fbfe); box-shadow: 0 8px 25px rgba(5,65,96,.055); }
.app-feature span { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 15px; border-radius: 14px; color: var(--blue); background: #eaf4ff; font-size: 1.3rem; }
.app-feature h3 { margin: 0 0 7px; color: var(--navy); }
.app-feature p { margin: 0; color: var(--muted); font-size: .9rem; }

.archive-hero { padding: 54px 0 34px; background: linear-gradient(180deg, var(--foam), transparent); }
.filter-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; margin-top: 25px; }
.filter-bar input, .filter-bar select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; color: var(--ink); background: white; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 13px; padding: 13px 20px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: center; }
.pagination .current { color: white; background: var(--blue); }

.single-hero { padding: 52px 0; color: white; background: linear-gradient(125deg, var(--navy), #135f8c); }
.single-head { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: 46px; align-items: center; }
.single-image { overflow: hidden; border-radius: 28px; background: var(--foam); aspect-ratio: 4/3; box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.single-image img { width: 100%; height: 100%; object-fit: cover; }
.single-title h1 { margin: 10px 0 4px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.single-title .latin { color: #c7e5ee; font-size: 1.05rem; }
.detail-grid { display: block; }
.content-card, .fact-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(11,43,64,.05); }
.content-card { padding: 30px; }
.content-card h2 { margin-top: 0; color: var(--navy); }
.fact-panel { overflow: hidden; }
.fact-panel h2 { margin: 0; padding: 20px 22px; color: var(--navy); background: var(--foam); font-size: 1.15rem; }
.fact-list { margin: 0; padding: 4px 22px 12px; }
.fact-row { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.fact-row dd { margin: 0; color: var(--ink); font-weight: 750; }
.notice { margin-top: 24px; padding: 18px; border-radius: 16px; color: #6c4b12; background: var(--sand); font-size: .9rem; }
.source-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.source-box a { color: var(--blue); text-decoration: underline; }
.available-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.available-fact { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfc; }
.available-fact span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.available-fact strong { color: var(--ink); font-size: .95rem; }
.image-credit { margin-top: 10px; color: #c7e5ee; font-size: .78rem; }

.empty-state { padding: 48px; border: 1px dashed #b7ccd5; border-radius: var(--radius); background: white; text-align: center; }
.site-footer { position: relative; margin-top: 70px; padding: 72px 0 26px; color: #cce1ea; background: linear-gradient(145deg, #031f33, #073e5d 58%, #075b74); }
.site-footer::before { content: ""; position: absolute; inset: -42px 0 auto; height: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 54c180-56 330 44 520-8s330-22 470 5 282 31 450-20v59H0Z' fill='%23031f33'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.site-footer p { max-width: 610px; color: #a9c4cf; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8fadb9; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-inner, .single-head, .detail-grid, .app-promo-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .fish-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .app-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { gap: 20px; }
  .fact-panel { order: -1; }
}
@media (max-width: 680px) {
  .menu-toggle { display: inline-grid; }
  .nav-menu { display: none; position: absolute; inset: 76px 16px auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .nav-menu.is-open { display: grid; gap: 14px; }
  .hero-inner { padding: 58px 0 56px; }
  .fish-search { display: grid; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .fish-grid, .category-grid, .app-feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .footer-links { justify-content: start; }
  .available-facts { grid-template-columns: 1fr; }
}
