/* VRF Compare — Ana Stil
 * Modern, içerik yoğun, GSMArena tarzı katalog UI
 */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: #e3e6ea;
  --border-strong: #cbd1d8;
  --text: #1a1d21;
  --text-muted: #5b6470;
  --text-dim: #8a939f;
  --accent: #0d6efd;
  --accent-hover: #0a58ca;
  /* === LOGO === Header logosunun rengi. Değiştirmek için sadece bu satır yeterli. */
  --logo-color: #2d3540;
  --logo-width: 200px;
  --success: #198754;
  --success-bg: #e8f5ee;
  --warning: #c97a00;
  --warning-bg: #fff4dd;
  --danger: #c52828;
  --danger-bg: #fde9e9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* ===================== Karanlık mod ===================== */
/* <html data-theme="dark"> olunca tüm renk değişkenleri override edilir.
   Tema seçimi header.php'deki erken script ile aygıt başına (localStorage) hatırlanır. */
[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b20;
  --surface-alt: #21262d;
  --border: #2c333b;
  --border-strong: #3a424c;
  --text: #e6e9ed;
  --text-muted: #9aa4b0;
  --text-dim: #6b7480;
  --accent: #4d94ff;
  --accent-hover: #7badff;
  --logo-color: #e6e9ed;
  --success: #3fb950; --success-bg: #132a1a;
  --warning: #d29922; --warning-bg: #2b2310;
  --danger: #f85149;  --danger-bg: #2c1416;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow: 0 2px 10px rgba(0,0,0,0.6);
  color-scheme: dark;
}

/* Tema değiştirme butonu (header) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; padding: 0;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: inline; }

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ===================== Header ===================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 0;
}
.logo {
  display: flex; align-items: center;
  color: var(--logo-color, #2d3540);
  line-height: 0;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.logo-svg {
  width: var(--logo-width, 200px);
  height: auto;
  aspect-ratio: 1628 / 306;
  display: block;
  color: var(--logo-color, #2d3540); /* currentColor SVG fill'i buradan alır */
}
.logo-mark {
  display: inline-flex; width: 32px; height: 32px;
  background: var(--accent); color: #fff;
  border-radius: 6px; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px; color: var(--text-muted);
  border-radius: 6px; font-weight: 500;
}
.nav a:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--surface-alt); }

.search-bar {
  flex: 1; max-width: 480px; margin-left: auto;
  position: relative;
}
.search-bar input {
  width: 100%; padding: 8px 12px 8px 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-alt); font-size: 14px;
  font-family: inherit;
}
.search-bar input:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.search-bar::before {
  content: "🔍"; position: absolute; left: 11px; top: 7px;
  font-size: 14px; opacity: 0.5;
}

/* ===================== Layout ===================== */
.main { padding: 24px 0 64px; }

.layout-2col { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 900px) { .layout-2col { grid-template-columns: 1fr; } }

/* ===================== Filtreler ===================== */
.filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  position: sticky; top: 72px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.filters h3 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
}
.filter-group { margin-bottom: 18px; }
.filter-group h4 {
  margin: 0 0 6px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.5px;
}
.filter-group label {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; font-size: 13px; cursor: pointer;
  color: var(--text);
}
.filter-group label:hover { color: var(--accent); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] {
  accent-color: var(--accent);
}
.filter-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; justify-content: center; }

/* ===================== Product Grid ===================== */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.toolbar .result-count { color: var(--text-muted); font-size: 13px; }
.toolbar select {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-family: inherit; font-size: 13px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow);
}
.product-card .product-image {
  width: 100%; aspect-ratio: 4/3; background: var(--surface-alt);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-dim); margin-bottom: 12px;
}
.product-card .product-brand {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-card .product-name {
  font-size: 14px; font-weight: 600; margin: 2px 0 8px;
  color: var(--text);
}
.product-card a { color: inherit; }

.spec-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.spec-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--surface-alt); color: var(--text-muted);
}
.spec-pill.info { background: #e6f1fb; color: #0c447c; }
.spec-pill.green { background: var(--success-bg); color: var(--success); }
.spec-pill.warn { background: var(--warning-bg); color: var(--warning); }

.compare-checkbox {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; accent-color: var(--accent);
}

/* ===================== Product Detail ===================== */
.detail-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
}
@media (max-width: 720px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero .image {
  width: 200px; height: 200px; background: var(--surface-alt);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--text-dim);
}
.detail-hero h1 { margin: 4px 0 12px; font-size: 24px; }

.spec-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; font-size: 13px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  text-align: left; padding: 10px 14px;
  background: var(--surface-alt);
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.spec-table td {
  padding: 9px 14px;
}
.spec-table td:first-child { color: var(--text-muted); width: 40%; }
.spec-table td:nth-child(2) { font-weight: 500; }

.section-title {
  font-size: 16px; font-weight: 600; margin: 24px 0 12px;
  color: var(--text);
}

/* ===================== Compare Table ===================== */
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; font-size: 13px;
  table-layout: fixed;
}
.compare-table th, .compare-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center; vertical-align: middle;
  word-wrap: break-word;
}
.compare-table th:last-child, .compare-table td:last-child { border-right: none; }
.compare-table thead th {
  background: var(--surface-alt); font-weight: 600;
}
.compare-table .label {
  text-align: left; color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  background: var(--surface-alt);
}
.compare-table .best {
  background: var(--success-bg); color: var(--success); font-weight: 600;
}
.compare-table .worst {
  background: var(--danger-bg); color: var(--danger);
}

/* ===================== Simulation ===================== */
.sim-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.sim-form { display: grid; gap: 12px; }
.sim-form .field { display: flex; flex-direction: column; gap: 4px; }
.sim-form label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.sim-form input, .sim-form select {
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 14px;
  background: var(--surface);
}
.sim-form input:focus, .sim-form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}
.sim-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sim-tabs button {
  padding: 8px 14px; border: none; background: transparent;
  border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--text-muted);
}
.sim-tabs button.active {
  color: var(--accent); border-bottom-color: var(--accent); font-weight: 600;
}

.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-top: 16px;
}
.metric-card {
  background: var(--surface-alt); border-radius: var(--radius);
  padding: 14px;
}
.metric-card .label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px;
}
.metric-card .value {
  font-size: 22px; font-weight: 700; color: var(--text);
}
.metric-card .sub {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.metric-card.accent { background: var(--success-bg); }
.metric-card.accent .value { color: var(--success); }

/* ===================== Pagination ===================== */
.pagination {
  display: flex; gap: 4px; justify-content: center; margin: 24px 0;
}
.pagination a, .pagination span {
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
}
.pagination a:hover { background: var(--surface-alt); text-decoration: none; }
.pagination .current {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ===================== Compare Bar (sticky bottom) ===================== */
.compare-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  border-radius: 32px; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 40; display: none;
}
.compare-bar.visible { display: flex; }
.compare-bar .count {
  background: var(--accent); padding: 2px 8px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.compare-bar .btn {
  background: var(--accent); color: #fff; border: none;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 32px 0; margin-top: 64px;
  font-size: 13px; color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }

/* ===================== Utilities ===================== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-info { background: #e6f1fb; color: #0c447c; border-left: 4px solid var(--accent); }
.alert-warn { background: var(--warning-bg); color: var(--warning); border-left: 4px solid var(--warning); }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-left: 4px solid var(--danger); }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-1 { flex: 1; } .gap-2 { gap: 12px; }
.hidden { display: none; }

/* ============================================
   PORTAL / ANA SAYFA MODÜLLERİ
   ============================================ */

.home-hero {
  background: linear-gradient(135deg, var(--primary, #2563eb) 0%, #1e40af 100%);
  color: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
}
.home-hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #fff;
}
.home-hero p {
  font-size: 15px;
  opacity: 0.92;
  margin: 0 0 24px;
}
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 16px;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
}
.hero-search button {
  padding: 12px 24px;
  white-space: nowrap;
}
.hero-quick {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-quick a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity .15s;
}
.hero-quick a:hover { opacity: 1; text-decoration: underline; }

.home-section { margin-bottom: 40px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border, #e5e7eb);
  padding-bottom: 8px;
}
.section-head h2 {
  font-size: 20px;
  margin: 0;
}
.see-all {
  font-size: 14px;
  color: var(--primary, #2563eb);
  text-decoration: none;
  font-weight: 600;
}
.see-all:hover { text-decoration: underline; }

/* Öne çıkanlar - büyük kartlar */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.featured-img {
  height: 160px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.featured-img .placeholder { font-size: 48px; opacity: 0.3; }
.featured-body { padding: 14px; }
.featured-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted, #6b7280);
  font-weight: 600;
}
.featured-name {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

/* Blog kartları */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.blog-cover {
  position: relative;
  height: 150px;
  background: var(--surface-alt);
  overflow: hidden;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 40px;
  opacity: 0.3;
}
.blog-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.blog-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.blog-body p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: 0 0 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
}

/* Reklam alanı */
.ad-slot { margin: 24px 0; }

/* Reklam animasyonları */
.ad-slot-anim {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ad-slot-anim:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ad-slot-anim img {
  display: block;
  transition: transform 0.4s ease;
}
.ad-slot-anim:hover img {
  transform: scale(1.02);
}
/* Shimmer — yavaş parlak çizgi geçişi */
.ad-slot-anim::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
  animation: adShimmer 6s ease-in-out infinite;
}
@keyframes adShimmer {
  0%, 60%, 100% { left: -100%; }
  70%           { left: 130%; }
}
/* Reklam etiketi */
.ad-label {
  display: inline-block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  font-weight: 600;
}
.ad-label::before {
  content: '●';
  color: #f59e0b;
  margin-right: 4px;
  animation: adDot 2s ease-in-out infinite;
}
@keyframes adDot {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
/* Reduced motion respekt */
@media (prefers-reduced-motion: reduce) {
  .ad-slot-anim::before,
  .ad-label::before { animation: none; }
  .ad-slot-anim,
  .ad-slot-anim img { transition: none; }
}

/* Mobil */
@media (max-width: 640px) {
  .home-hero { padding: 32px 20px; }
  .home-hero h1 { font-size: 22px; }
  .hero-search { flex-direction: column; }
  .section-head h2 { font-size: 17px; }
  .logo-svg { width: 150px; }
}

/* ============================================
   INFO TOOLTIP — SEER/SCOP yanı bilgi balonu (v2)
   ============================================ */
.info-tip {
  display: inline-block;
  width: 18px; height: 18px;
  background: #6b7280; color: #fff;
  border-radius: 50%;
  font-size: 12px; line-height: 18px;
  text-align: center; cursor: help;
  margin-left: 6px;
  font-weight: 600;
  position: relative;
  user-select: none;
  vertical-align: middle;
  font-style: italic;
  font-family: serif;
}
.info-tip:hover { background: #2563eb; }
.info-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  width: 280px;
  white-space: normal;
  line-height: 1.55;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
  font-style: normal;
  font-family: inherit;
}
.info-tip:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 1001;
  pointer-events: none;
}
.spec-table { overflow: visible !important; }
.spec-table td { overflow: visible !important; }