/*
Theme Name: LGS Puan Pro
Theme URI: https://lgspuanhesaplamapro.com/
Author: Mehmet Ali Mustafa
Author URI: https://lgspuanhesaplamapro.com/hakkimizda/
Description: 2027 MEB uyumlu, mobil öncelikli, Core Web Vitals ve SEO odaklı LGS puan ve net hesaplama teması.
Version: 1.1.0
Text Domain: lgs-pro
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #697386;
  --line: #e6eaf0;
  --primary: #3559e0;
  --primary2: #6d7fff;
  --primary-dark: #243b8f;
  --navy: #12213d;
  --soft: #eef2ff;
  --shadow: 0 16px 44px rgba(23, 32, 51, 0.08);
  --success: #10b981;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: auto; }

/* Topbar */
.topbar { background: var(--navy); color: #dce5ff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--navy); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.menu { display: flex; gap: 20px; align-items: center; font-size: 14px; color: #475569; }
.menu a { font-weight: 600; transition: color 0.2s ease; }
.menu a:hover, .menu a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Hero */
.hero {
  padding: 48px 0 32px;
  background: radial-gradient(circle at 10% 10%, rgba(108, 124, 255, 0.15), transparent 32%),
              radial-gradient(circle at 90% 0%, rgba(53, 89, 224, 0.12), transparent 28%);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 34px; align-items: start; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dfe5ff;
  color: #3e50b7;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.hero h1, .page-hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 16px 0;
  color: var(--navy);
}
.lead { font-size: 17px; color: #566074; max-width: 760px; line-height: 1.6; }
.hero-points, .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.point, .card, .article-card, .tool-card, .faq, .school-card, .author-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.04);
}
.point { padding: 14px; }
.point strong { display: block; font-size: 18px; color: var(--navy); }
.point span { font-size: 13px; color: var(--muted); }

/* Calculator Card */
.lgs-calc-wrapper {
  min-height: 670px;
}
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: clip;
  min-height: 670px;
}
.calc-head {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary2));
  color: #fff;
  border-radius: 24px 24px 0 0;
}
.calc-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.calc-head p { margin: 0; color: #dce4ff; font-size: 13px; }
.calc-body { padding: 22px; }
.subject {
  display: grid;
  grid-template-columns: 1fr 84px 84px 82px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f5;
}
.subject.has-error .input {
  border-color: #dc2626;
  background: #fef2f2;
}
.calc-error-slot {
  min-height: 24px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}
.calc-error-msg {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.calc-error-msg.visible {
  opacity: 1;
}
.calc-results-top {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
}
.calc-results-top .score-box {
  flex: 1;
  margin-top: 0;
}
.calc-reset-btn {
  border: 1px solid #dfe4ec;
  background: #f8fafc;
  color: #475569;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.calc-reset-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.calc-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  min-height: 44px;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.calc-result-actions.active {
  opacity: 1;
  pointer-events: auto;
}
.calc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease;
}
.calc-action-btn.primary {
  background: var(--primary);
  color: #fff !important;
}
.calc-action-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.calc-action-btn.secondary {
  background: #eef2ff;
  color: var(--primary-dark) !important;
  border: 1px solid #d7e0ff;
}
.calc-action-btn.secondary:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}
.subject-name { font-weight: 700; font-size: 14px; }
.input {
  height: 40px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fbfcfe;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.input:focus { border-color: var(--primary); outline: none; background: #fff; }
.net {
  background: #f1f5ff;
  color: #3850c8;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.calc-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.helper, .note { font-size: 12px; color: #8b94a7; margin-top: 10px; }

/* Score Box */
.score-box { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.score-box .metric {
  background: #f8faff;
  border: 1px solid #e7ebfb;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.score-box .metric.primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary2));
  color: #fff;
}
.score-box .num { font-size: 28px; font-weight: 900; line-height: 1.1; }
.score-box .primary .num { font-size: 38px; }
.score-box .cap { font-size: 12px; color: #7a8497; margin-top: 6px; }
.score-box .primary .cap { color: #dfe5ff; }

/* Sections & Content */
.section { padding: 56px 0; }
.section h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 10px; color: var(--navy); }
.section-intro { color: var(--muted); max-width: 800px; margin: 0 0 24px; font-size: 16px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card, .tool-card { padding: 24px; }
.article-card h3, .tool-card h3 { margin-top: 0; font-size: 20px; color: var(--navy); }
.article-card p, .tool-card p { color: var(--muted); font-size: 15px; }
.callout {
  background: #eef4ff;
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
  border-radius: 12px;
  color: #334155;
  margin: 16px 0;
}
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #08775a;
  font-size: 12px;
  font-weight: 800;
}
.status {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7e8;
  color: #a05d00;
}
.notice { background: #fff9e8; border: 1px solid #f3df9b; color: #775a00; border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.source-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 16px; font-size: 13px; color: #566074; }

/* Links Grid */
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--primary2); box-shadow: var(--shadow); }
.link-card b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--navy); }
.link-card span { color: var(--muted); font-size: 14px; }

/* Table */
.table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.table th, .table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #edf0f4; }
.table th { font-size: 12px; color: #7b8494; text-transform: uppercase; background: #fafbfc; }

/* Breadcrumbs & Layout */
.breadcrumbs { font-size: 13px; color: #748094; padding: 20px 0 0; }
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.page-hero { padding: 32px 0 20px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar .card { padding: 20px; }
.sidebar a { display: block; padding: 9px 0; color: #556074; border-bottom: 1px solid #eef1f5; font-size: 14px; }
.sidebar a:hover { color: var(--primary); font-weight: 600; }

/* Author Box (E-E-A-T) */
.author-card {
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f9fbff);
  border: 1px solid #dce5ff;
}
.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(53, 89, 224, 0.25);
}
.author-meta { flex: 1; }
.author-badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.author-name { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--navy); }
.author-role { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.author-bio { font-size: 14px; color: #475569; line-height: 1.55; margin: 0; }

/* FAQ Accordion */
.faq-box { margin-top: 24px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--navy);
  font-size: 16px;
}
.faq-item p { margin: 12px 0 0; color: #566074; font-size: 14px; line-height: 1.6; }

/* Footer */
footer { background: #13213b; color: #dbe4ff; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0; }
footer h4 { margin-top: 0; color: #fff; font-size: 16px; }
footer a { display: block; color: #b8c3d9; font-size: 14px; margin: 9px 0; transition: color 0.2s ease; }
footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; color: #9fb0cb; font-size: 13px; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.2);
  border-radius: 18px;
  padding: 16px;
  display: none;
  max-width: 900px;
  margin: auto;
}
.cookie-banner.show { display: block; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cookie-actions button { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-reject { background: #eef1f5; color: #334155; }

/* Responsive */
@media (max-width: 900px) {
  .menu { display: none; }
  .hero-grid, .content-grid, .page-layout { grid-template-columns: 1fr; }
  .hero-points, .trust-row { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .calc-sticky-results {
    position: sticky;
    bottom: 8px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    padding: 10px;
    margin: 10px -10px 0;
    border-radius: 18px;
    border: 1px solid #dce5ff;
    box-shadow: 0 -6px 24px rgba(18, 33, 61, 0.14);
  }
  .calc-sticky-results .score-box {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 6px;
  }
  .calc-sticky-results .score-box .metric {
    padding: 8px 6px;
    border-radius: 12px;
  }
  .calc-sticky-results .score-box .primary .num { font-size: 24px; }
  .calc-sticky-results .score-box .num { font-size: 18px; }
  .calc-sticky-results .score-box .cap { font-size: 10px; margin-top: 2px; }
  .calc-results-top { gap: 6px; margin-top: 0; }
  .calc-reset-btn { padding: 0 10px; font-size: 12px; }
  .calc-result-actions { margin-top: 8px; min-height: 38px; gap: 6px; }
  .calc-action-btn { padding: 8px 6px; font-size: 12px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 20px, 1160px); }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .container span:last-child { display: none; }
  .hero { padding-top: 24px; }
  .hero h1, .page-hero h1 { font-size: 32px; }
  .hero-points, .trust-row, .footer-grid, .link-grid { grid-template-columns: 1fr; }
  .subject { grid-template-columns: 1fr 66px 66px 64px; gap: 6px; }
  .author-card { flex-direction: column; text-align: center; }
}
