/*
Theme Name: SEO Basic Grid
Theme URI: https://example.com
Author: Claude
Author URI: https://example.com
Description: SEO uyumlu, yeşil/siyah blok tasarımlı WordPress teması — kart (grid) düzenli anasayfa varyasyonu. Navbar, kenar çubuğunda Son Yazılar / Kategoriler / Arama, robots.txt ve sitemap desteği içerir.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-basic-grid
*/

:root{
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-green: #5c8f29;
  --color-green-dark: #456a1f;
  --color-dark: #262626;
  --color-border: #1a1a1a;
  --color-border-light: #e5e7eb;
  --shadow-box: 0 2px 6px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  border-top: 6px solid var(--color-green);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

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

ul{ margin: 0; padding: 0; list-style: none; }

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

/* ================= HEADER ================= */
.site-header{ padding-top: 18px; }

.topbar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-branding a.logo-box,
.site-branding div.logo-box{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 240px;
  height: 62px;
  padding: 0 20px;
  box-shadow: var(--shadow-box);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  overflow: hidden;
}

.site-branding .logo-box a{
  display: flex;
  align-items: center;
  height: 100%;
}

.site-branding .logo-box img,
.site-branding img.custom-logo{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.site-branding p.tagline{
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.header-cta{
  display: flex;
  align-items: center;
}

.header-cta .cta-button{
  background: #fff;
  box-shadow: var(--shadow-box);
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 16px 26px;
  border-radius: 4px;
  cursor: pointer;
}

.header-cta .cta-button:hover{ text-decoration: none; opacity: 0.85; }

/* ---------- Quick nav (yeşil şerit) ---------- */
.quicknav-wrap{
  background: var(--color-green);
  margin-top: 18px;
}

.quicknav{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 24px;
}

.quicknav .home-link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 8px 14px 8px 0;
  background: var(--color-green-dark);
  border-radius: 4px;
  flex-shrink: 0;
}

.quicknav .home-link svg{ width: 22px; height: 22px; fill: #fff; }

.main-navigation{ flex: 1; display: flex; align-items: center; }

.main-navigation ul{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.main-navigation li{
  border-left: 1px dashed rgba(255,255,255,0.55);
}
.main-navigation li:first-child{ border-left: none; }

.main-navigation a{
  display: block;
  padding: 15px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-navigation a:hover{ background: var(--color-green-dark); text-decoration: none; }

.quicknav .search-toggle{
  width: 52px;
  height: 52px;
  margin: 8px 0 8px 14px;
  background: var(--color-dark);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle{
  display: none;
  background: var(--color-green-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
}

.quicknav-search{
  display: none;
  background: var(--color-green-dark);
  padding: 14px 24px;
}
.quicknav-search.is-open{ display: block; }
.quicknav-search .container{ max-width: var(--max-width); padding: 0; margin: 0 auto; }

/* ================= BRAND TAGLINE BOX ================= */
.brand-tagline-box{
  display: inline-block;
  margin: 26px 0 20px;
  padding: 10px 20px;
  box-shadow: var(--shadow-box);
  border-radius: 4px;
  font-weight: 600;
  color: var(--color-muted);
}

/* ================= LAYOUT ================= */
.site-content{ padding: 10px 0 60px; }

.content-layout{
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ================= FEATURE BLOCKS (front page) ================= */
.feature-block{
  box-shadow: var(--shadow-box);
  border-radius: 6px;
  padding: 26px;
  margin-bottom: 26px;
}

.feature-block h2{
  margin: 0 0 12px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.feature-block p{ margin: 0; color: var(--color-text); }

/* ================= FEATURE GRID (kart varyasyonu) ================= */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.feature-card{
  box-shadow: var(--shadow-box);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card .card-flag{
  background: var(--color-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 14px;
}

.feature-card .card-body{ padding: 20px; flex: 1; display: flex; flex-direction: column; }

.feature-card h2{
  margin: 0 0 10px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.feature-card p{ margin: 0 0 14px; color: var(--color-muted); flex: 1; }

.feature-card .card-dark-btn{
  align-self: flex-start;
  background: var(--color-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 4px;
}
.feature-card .card-dark-btn:hover{ background: var(--color-green-dark); text-decoration: none; }

@media (max-width: 900px){
  .feature-grid{ grid-template-columns: 1fr; }
}

/* ================= POSTS ================= */
.post-card{
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.post-card h2{ margin: 0 0 8px; font-size: 1.5rem; }

.post-meta{ font-size: 0.85rem; color: var(--color-muted); margin-bottom: 10px; }

.post-excerpt p{ margin: 0 0 12px; }

.read-more{ display: inline-block; font-weight: 700; color: var(--color-green-dark); }

.single-post .entry-title{ font-size: 2rem; margin-bottom: 8px; }

.entry-content{ margin-top: 20px; }

/* ================= SIDEBAR ================= */
.sidebar{
  position: sticky;
  top: 20px;
  align-self: start;
}

.sidebar .widget{ margin-bottom: 30px; }

.widget-box{
  box-shadow: var(--shadow-box);
  border-radius: 4px;
  padding: 16px 18px;
}

.widget-box .widget-title{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: var(--color-text);
  font-weight: 800;
  white-space: nowrap;
}

.widget-box .widget-title::after{
  content: "";
  flex: 1;
  height: 14px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--color-border-light),
    var(--color-border-light) 2px,
    transparent 2px,
    transparent 7px
  );
}

.widget-box ul li{
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-border-light);
}
.widget-box ul li:last-child{ border-bottom: none; }

.widget-bottom-line{
  height: 4px;
  background: var(--color-green);
  margin-top: 14px;
  border-radius: 2px;
}

.search-form{ display: flex; gap: 8px; }

.search-form input[type="search"]{
  flex: 1;
  padding: 10px 12px;
  border: none;
  box-shadow: var(--shadow-box);
  border-radius: 4px;
}

.search-form button{
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: var(--color-green);
  box-shadow: var(--shadow-box);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

/* ================= PAGINATION ================= */
.pagination{ display: flex; gap: 10px; margin-top: 20px; }
.pagination a, .pagination span{
  padding: 6px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
}

/* ================= FOOTER ================= */
.site-footer{
  border-top: 4px solid var(--color-green);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 30px;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs{ font-size: 0.85rem; color: var(--color-muted); margin-bottom: 20px; }

/* ================= YAZAR KUTUSU ================= */
.author-box{
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-box);
  border-radius: 6px;
  padding: 20px;
  margin-top: 36px;
}

.author-box .author-avatar img{
  border-radius: 6px;
  display: block;
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.author-box h3{ margin: 0 0 6px; font-size: 1.2rem; }

.author-box .author-link{ color: var(--color-text); font-weight: 600; }
.author-box .author-link:hover{ color: var(--color-green-dark); }

/* ================= YORUMLAR ================= */
.comments-area{ margin-top: 36px; }

.comments-title{
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.comment-list{
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.comment-list .comment-body{
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.comment-list .avatar{ border-radius: 6px; flex-shrink: 0; }

.comment-author .fn{ font-weight: 700; font-style: normal; }
.comment-metadata{ font-size: 0.8rem; color: var(--color-muted); margin-bottom: 6px; }
.comment-metadata a{ color: inherit; }

.comment-reply-title{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  font-weight: 800;
}

.comment-reply-title::after{
  content: "";
  flex: 1;
  height: 14px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--color-border-light),
    var(--color-border-light) 2px,
    transparent 2px,
    transparent 7px
  );
}

.comment-form{
  box-shadow: var(--shadow-box);
  border-radius: 4px;
  padding: 22px;
}

.comment-notes{ color: var(--color-muted); font-size: 0.85rem; margin: 0 0 18px; }

.comment-form p{ margin-bottom: 16px; }

.comment-form label{
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  background: #f9fafb;
  font-family: inherit;
  font-size: 0.95rem;
}

.comment-form-cookies-consent{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.comment-form-cookies-consent input{ margin-top: 3px; }

.comment-form .form-submit{ margin-bottom: 0; }

.comment-form .form-submit input[type="submit"]{
  background: var(--color-green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.comment-form .form-submit input[type="submit"]:hover{ opacity: 0.9; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .content-layout{ grid-template-columns: 1fr; }

  .sidebar{ position: static; }

  .topbar{ flex-wrap: wrap; }
  .header-cta{ margin-left: auto; }

  .menu-toggle{ display: inline-block; order: 3; margin-left: auto; }

  .quicknav{ flex-wrap: wrap; }
  .main-navigation{ display: none; width: 100%; order: 4; }
  .main-navigation.is-open{ display: block; }
  .main-navigation ul{ flex-direction: column; }
  .main-navigation li{ border-left: none; border-top: 1px dashed rgba(255,255,255,0.4); }
  .main-navigation li:first-child{ border-top: none; }
}

@media (max-width: 560px){
  .header-cta .cta-button{ padding: 12px 18px; font-size: 0.8rem; }
}
