/* ==========================================================================
   fikrimvar.com — tasarım sistemi (marka kimliği)
   Palet: Derin Lacivert #0B2D4F · Turkuaz #19C6B8 · Amber #FFB020
   Tipografi: Sora. cimri/akakçe esinli, kart tabanlı, modern.
   ========================================================================== */

:root {
  /* Marka */
  --navy:      #0B2D4F;
  --ink:       #1F2937;
  --teal:      #19C6B8;
  --teal-d:    #12a596;
  --teal-soft: #e4f8f5;
  --amber:     #FFB020;
  --amber-soft:#fff3da;

  /* Nötrler */
  --bg:        #f4f7fb;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --fg:        #1f2937;
  --muted:     #64748b;
  --line:      #e5e7eb;
  --line-2:    #cbd5e1;

  /* Anlamsal */
  --brand:     var(--teal);
  --brand-d:   var(--teal-d);
  --win:       #0ea89a;
  --win-bg:    #e4f8f5;
  --chip:      #eef4fb;

  --sh-sm: 0 1px 2px rgba(11,45,79,.06);
  --sh:    0 8px 24px rgba(11,45,79,.08);
  --sh-lg: 0 20px 48px rgba(11,45,79,.14);

  --r:    18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --maxw: 1120px;
  --gap: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
h1,h2,h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.teal { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--navy); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand .logo { height: 34px; width: auto; display: block; }

.search {
  flex: 1; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); padding: 5px 5px 5px 18px;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; outline: none; color: var(--fg); }
.search button {
  border: 0; background: var(--teal); color: #fff; border-radius: var(--r-pill);
  padding: 9px 20px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.search button:hover { background: var(--teal-d); }
.main-nav { display: flex; gap: 16px; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: .95rem; }

/* Kategori şeridi */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; }
.catbar a {
  white-space: nowrap; color: var(--navy); font-weight: 600; font-size: .92rem;
  padding: 8px 15px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line);
}
.catbar a:hover { text-decoration: none; border-color: var(--teal); color: var(--teal-d); background: var(--teal-soft); }

main.container { padding-top: 28px; padding-bottom: 48px; }
section { margin-bottom: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.section-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); display: inline-block; }

/* ---------- Hero (ana sayfa) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--sh); padding: 48px 28px; text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; z-index: 0;
}
.hero::before { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #bff0ea, transparent 70%); top: -80px; left: -60px; }
.hero::after  { width: 240px; height: 240px; background: radial-gradient(circle at 60% 40%, #ffe6b0, transparent 70%); bottom: -90px; right: -50px; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--teal-d); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero h1 .hl { color: var(--teal); }
.hero p { color: var(--muted); margin-bottom: 22px; font-size: 1.05rem; }
.hero .search { max-width: 680px; border-color: var(--line-2); box-shadow: var(--sh-sm); }
.hero .stat-row { display: flex; gap: 20px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero .stat { display: inline-flex; align-items: center; gap: 10px; }
.hero .stat .n { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.hero .stat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-d); }
.hero .stat.amber .ic { background: var(--amber-soft); color: #b9790c; }

/* ---------- Kartlar / grid ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); transition: box-shadow .16s, transform .16s, border-color .16s; }
.card:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: var(--line-2); }
.grid { display: grid; gap: var(--gap); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-cmp  { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-prod { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: var(--gap); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.scroller.prod { grid-auto-columns: minmax(165px, 190px); }
.scroller > * { scroll-snap-align: start; }
/* İnce, markaya uygun kaydırma çubuğu */
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }

/* Kategori kartı */
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-align: center; color: var(--navy); }
.cat-card:hover { text-decoration: none; }
.cat-card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-soft); color: var(--teal-d); }
.cat-card .ico.emoji { font-size: 1.5rem; background: var(--surface-2); }
.cat-card b { font-weight: 600; }
.cat-card .count { font-size: .8rem; color: var(--muted); }

/* Karşılaştırma kartı (fotoğraf odaklı + VS) */
.cmp-card { padding: 14px; color: var(--navy); display: block; }
.cmp-card:hover { text-decoration: none; }
.cmp-card .pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cmp-card .pair .ph, .cmp-card .pair img { width: 100%; height: 110px; object-fit: contain; }
.cmp-card .pair .ph { display: grid; place-items: center; color: var(--line-2); background: var(--surface-2); border-radius: var(--r-sm); font-size: 2rem; }
.cmp-card .vs-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; box-shadow: var(--sh-sm); }
.cmp-card .names { margin-top: 12px; font-weight: 600; font-size: .98rem; text-align: center; color: var(--navy); }
.cmp-card .meta { margin-top: 8px; display: flex; gap: 10px; justify-content: center; color: var(--muted); font-size: .82rem; }
.cmp-card .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Ürün kartı */
.prod-card { padding: 14px; color: var(--navy); text-align: center; display: block; }
.prod-card:hover { text-decoration: none; }
.prod-card .img, .prod-card img { height: 130px; object-fit: contain; margin-bottom: 10px; }
.prod-card .img { display: grid; place-items: center; color: var(--line-2); background: var(--surface-2); border-radius: var(--r-sm); font-size: 2rem; }
.prod-card b { font-weight: 600; display: block; }
.prod-card .rate { margin-top: 6px; color: var(--amber); font-weight: 700; font-size: .9rem; }
.prod-card .rate small { color: var(--muted); font-weight: 500; }

/* ---------- Karşılaştırma sayfası ---------- */
.cmp-hero { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 26px; margin-bottom: 20px; }
.cmp-hero .vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.cmp-hero .side { text-align: center; }
.cmp-hero .side img { height: 170px; object-fit: contain; }
.cmp-hero .side .ph { height: 170px; display: grid; place-items: center; color: var(--line-2); background: var(--surface-2); border-radius: var(--r-sm); font-size: 3rem; }
.cmp-hero .side h2 { font-size: 1.15rem; margin-top: 12px; }
.cmp-hero .vs-medallion { width: 62px; height: 62px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; box-shadow: var(--sh); border: 4px solid #fff; }
.cmp-h1 { text-align: center; font-size: 1.6rem; margin: 20px 0 0; }
.winner-banner { margin-top: 16px; text-align: center; background: var(--teal-soft); color: var(--teal-d); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 700; }
.winner-banner.tie { background: var(--surface-2); color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 22px; margin-bottom: 20px; }
.panel > h3 { margin-top: 0; }
.quick-box { border-left: 4px solid var(--amber); }

/* Özellik tablosu */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec-table thead th { background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; }
.spec-table thead th:first-child { border-top-left-radius: var(--r); }
.spec-table thead th:last-child { border-top-right-radius: var(--r); }
.spec-table tbody th { font-weight: 500; color: var(--ink); width: 36%; }
.spec-table tbody tr:nth-child(even) { background: var(--surface-2); }
.cmp-table td { width: 32%; }
.cmp-table td.win { background: var(--win-bg); color: var(--win); font-weight: 700; }
.cmp-table td.win::after { content: " ✓"; }

/* Kategori skor kartları */
.score-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.score-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; background: var(--surface-2); }
.score-card .g { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.score-card .w { font-weight: 700; color: var(--navy); }
.score-card .w.win { color: var(--win); }
.score-bars { margin-top: 10px; display: grid; gap: 7px; }
.score-bars .sb { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.score-bars .track { height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.score-bars .track > span { display: block; height: 100%; }
.score-bars .a .track > span { background: var(--navy); }
.score-bars .b .track > span { background: var(--teal); }

/* Oylama */
.vote .row { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 600; color: var(--navy); }
.vote .track { height: 12px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin: 6px 0 14px; }
.vote .track > span { display: block; height: 100%; background: var(--teal); }
.vote .btns { display: flex; gap: 12px; margin-top: 8px; }
.btn { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--navy); border-radius: var(--r-pill); padding: 11px 20px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-d); color: #fff; }

/* Yorumlar */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comment-list strong { display: block; color: var(--navy); }

/* Ürün sayfası */
.product-head { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.product-head .img { background: var(--surface-2); border-radius: var(--r); display: grid; place-items: center; padding: 18px; min-height: 260px; }
.product-head .img img { max-height: 240px; }
.product-head .img .ph { background: transparent; height: auto; color: var(--line-2); }

/* İçerik sayfa */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 32px; }
.prose h1 { margin-top: 0; }

/* Rozet / etiket */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--chip); color: var(--navy); }
.badge-amber { background: var(--amber-soft); color: #9a6608; }
.badge-teal { background: var(--teal-soft); color: var(--teal-d); }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px; text-align: center; }

/* Footer */
.site-footer { background: var(--navy); color: #cdd8e6; margin-top: 48px; }
.site-footer a { color: #cdd8e6; }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-top .logo { height: 32px; filter: brightness(0) invert(1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #aebdd0; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #8ea0b6; font-size: .88rem; }

/* Kenar çubuklu liste (kategori / arama) */
.with-sidebar { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; }
.filter-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.filter-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 16px 18px; }
.filter-block h3 { font-size: .95rem; margin: 0 0 10px; color: var(--navy); }
.filter-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-block a { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); padding: 7px 10px; border-radius: 8px; font-size: .94rem; }
.filter-block a:hover { background: var(--surface-2); text-decoration: none; }
.filter-block a.on { background: var(--teal-soft); color: var(--teal-d); font-weight: 700; }
@media (max-width: 760px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .filter-side { position: static; grid-template-columns: 1fr 1fr; }
}

/* Flash mesajları */
.flash { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.flash-ok { background: var(--teal-soft); color: var(--teal-d); }
.flash-err { background: #fdecec; color: #c0392b; }

/* Formlar */
.mini-form { margin-top: 16px; display: grid; gap: 10px; max-width: 560px; }
.mini-form input[type=text], .mini-form textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 14px; font: inherit; color: var(--fg); background: #fff;
}
.mini-form input:focus, .mini-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.mini-form .btn { justify-self: start; }

/* Yıldız puanlama */
.star-form { display: flex; align-items: center; gap: 12px; }
.star-form .stars { display: inline-flex; flex-direction: row-reverse; }
.star-form .star { background: none; border: 0; font-size: 1.7rem; color: var(--line-2); cursor: pointer; padding: 0 2px; line-height: 1; }
.star-form .stars .star:hover, .star-form .stars .star:hover ~ .star { color: var(--amber); }
.prod-rating { font-size: 1.05rem; color: var(--amber); }
.prod-rating .muted { color: var(--muted); }

/* Soru-cevap */
.qa-list { list-style: none; padding: 0; margin: 0 0 8px; }
.qa-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.qa-list .q { margin: 0; }
.qa-list .a { margin: 6px 0 0; padding-left: 14px; border-left: 3px solid var(--teal); color: var(--muted); }

/* ============================= YÖNETİM PANELİ ============================= */
body.admin { background: #eef1f6; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #cdd8e6; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.admin-brand { color: #fff; font-size: 1.05rem; margin-bottom: 14px; display: block; }
.admin-brand b { color: var(--teal); }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { color: #cdd8e6; padding: 10px 12px; border-radius: 10px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.admin-side nav a .i { width: 18px; text-align: center; }
.admin-side nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.admin-side nav a.active { background: var(--teal); color: #042f2a; font-weight: 700; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.admin-side-foot a { color: #aebdd0; font-size: .9rem; padding: 6px 12px; }
.admin-main { padding: 24px 28px; max-width: 1000px; }
.admin-head h1 { font-size: 1.5rem; margin: 0 0 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: var(--sh-sm); }
.admin-card h3 { margin-top: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat-tile .num { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat-tile .lbl { color: var(--muted); font-size: .9rem; }
.stat-tile.alert .num { color: var(--amber); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.admin-form { display: grid; gap: 14px; max-width: 640px; }
.admin-form label { font-weight: 600; color: var(--navy); font-size: .92rem; display: block; margin-bottom: 4px; }
.admin-form input[type=text], .admin-form input[type=url], .admin-form input[type=number],
.admin-form input[type=password], .admin-form input[type=email], .admin-form select, .admin-form textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--fg);
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.admin-form .hint { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.admin-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.pill.ok { background: var(--teal-soft); color: var(--teal-d); }
.pill.warn { background: var(--amber-soft); color: #9a6608; }
.pill.off { background: #eef1f6; color: var(--muted); }
.login-wrap { max-width: 360px; margin: 10vh auto; }
.toggle { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot { flex-direction: row; margin: 0; border: 0; padding: 0; }
}

/* Hata */
.error-page { text-align: center; padding: 72px 0; }
.error-page h1 { font-size: 3rem; color: var(--teal); }

/* Responsive */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .search { max-width: none; }
  .product-head { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  .site-header .container { height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .hero { padding: 32px 18px; }
  .hero h1 { font-size: 1.7rem; }

  /* Mobilde iki ürün YAN YANA kalsın (küçülerek) */
  .cmp-hero { padding: 16px; }
  .cmp-hero .vs-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .cmp-hero .side img, .cmp-hero .side .ph { height: 100px; font-size: 2rem; }
  .cmp-hero .side h2 { font-size: .92rem; margin-top: 8px; }
  .cmp-hero .vs-medallion { width: 44px; height: 44px; font-size: .85rem; }
  .cmp-h1 { font-size: 1.2rem; }

  /* Karşılaştırma tablosu dar ekranda okunur kalsın */
  .spec-table th, .spec-table td { padding: 10px 8px; font-size: .82rem; }
  .spec-table tbody th { width: 34%; }
  .cmp-table td.win::after { content: ""; }  /* dar alanda ✓ yer kaplamasın */
}
