/*
Theme Name: Cam Balkon Programı
Theme URI: https://cambalkonprogram.com
Author: Rexson Media
Description: Cam balkon programı tanıtımı için SEO odaklı, Rank Math uyumlu, hızlı ve hafif WordPress teması. GA4 ve Search Console kodları Görünüm > Özelleştir panelinden kolayca eklenir.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cambalkonprogram
Tags: blog, one-column, custom-menu, translation-ready
*/

/* ==========================================================
   TASARIM SİSTEMİ — Cam & Alüminyum paleti
   ink:   koyu kurşun (metin)
   glass: cam turkuazı (marka)
   sky:   açık cam tonu (zemin)
   alu:   alüminyum gri (yardımcı)
   amber: CTA turuncusu (aksiyon)
   ========================================================== */
:root {
  --ink: #17242f;
  --ink-soft: #3d5060;
  --glass: #157f92;
  --glass-dark: #0e5d6b;
  --sky: #edf5f7;
  --sky-deep: #dcebef;
  --alu: #8b98a1;
  --line: #d5e0e5;
  --amber: #f29a2e;
  --amber-dark: #d97f14;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(23, 36, 47, 0.10);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--glass); text-decoration: none; }
a:hover { color: var(--glass-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--glass);
  display: inline-block;
  margin-bottom: 10px;
}

/* ---------- Üst bar & menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo:hover { color: var(--glass); }
.logo-mark {
  width: 30px; height: 30px;
  border: 2px solid var(--glass);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px;
  width: 2px;
  background: var(--glass);
  opacity: 0.55;
}
.logo-mark::before { left: 8px; }
.logo-mark::after { left: 16px; }

.main-nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--glass); }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--amber-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--glass);
  color: var(--glass);
}
.btn-ghost:hover { background: var(--glass); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- HERO: cam panel imzası ---------- */
.hero {
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding: 80px 0 90px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .vurgu { color: var(--glass); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Katlanır cam panel illüstrasyonu (saf CSS) */
.glass-panels {
  display: flex;
  gap: 6px;
  height: 320px;
  perspective: 900px;
  align-items: stretch;
}
.pane {
  flex: 1;
  background: linear-gradient(175deg, rgba(255,255,255,0.85), rgba(21,127,146,0.18));
  border: 3px solid var(--alu);
  border-radius: 4px;
  box-shadow: var(--shadow);
  position: relative;
}
.pane::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 15%;
  width: 18%;
  height: 60%;
  background: linear-gradient(200deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
  border-radius: 40%;
  transform: rotate(8deg);
}
.pane:nth-child(2) { transform: rotateY(-14deg); }
.pane:nth-child(3) { transform: rotateY(-28deg); }
.pane:nth-child(4) { transform: rotateY(-46deg); opacity: 0.9; }
.rail {
  height: 10px;
  background: linear-gradient(180deg, #b9c4cb, #7f8d96);
  border-radius: 3px;
  margin-top: 6px;
}

/* ---------- Bölümler ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--sky); }
.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Nasıl çalışır — alüminyum ray zaman çizgisi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: adim; }
.step {
  position: relative;
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 6px solid var(--glass);
}
.step::before {
  counter-increment: adim;
  content: counter(adim, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sky-deep);
  position: absolute;
  top: 12px;
  right: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* CTA bandı */
.cta-band {
  background: linear-gradient(120deg, var(--glass-dark), var(--glass));
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Blog ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  padding: 60px 0;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--white);
}
.post-card-body { padding: 26px; }
.post-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--glass); }
.post-meta {
  font-size: 0.85rem;
  color: var(--alu);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.post-card .excerpt { color: var(--ink-soft); }
.read-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Tekil yazı — Google'ın sevdiği okunabilirlik */
.single-content { max-width: 760px; }
.single-content .entry-title { margin-bottom: 14px; }
.entry-content { margin-top: 30px; }
.entry-content h2 {
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 5px solid var(--glass);
}
.entry-content h3 { margin: 30px 0 12px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content blockquote {
  background: var(--sky);
  border-left: 5px solid var(--amber);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.entry-content th { background: var(--sky); font-weight: 600; }
.wp-block-image figcaption { text-align: center; color: var(--alu); font-size: 0.85rem; }

/* Breadcrumb */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--alu);
  margin: 24px 0 10px;
}
.breadcrumbs a { color: var(--glass); }

/* Sidebar */
.sidebar .widget {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}
.sidebar .widget-title, .sidebar .wp-block-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar ul { list-style: none; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--sky-deep); }
.sidebar li:last-child { border-bottom: none; }

/* Sayfalama */
.pagination { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 500;
}
.pagination .current { background: var(--glass); color: var(--white); border-color: var(--glass); }

/* Yorumlar */
.comments-area { max-width: 760px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; }
.comment-body { background: var(--sky); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-body);
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c7d1;
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;
}
.site-footer a { color: #b9c7d1; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.footer-bottom {
  border-top: 1px solid #2b3a46;
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--alu);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* WhatsApp yüzen buton */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: #25d366;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.wa-float:hover { color: var(--white); transform: scale(1.06); }

/* Ekran okuyucu */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 50px 0 60px; }
  .glass-panels { height: 220px; max-width: 460px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px; align-items: stretch; }
  .main-nav li { border-bottom: 1px solid var(--sky); }
  .main-nav a { display: block; padding: 13px 0; }
  .header-cta { display: none; }
}
