/*
Theme Name: Kadence Child - Panel Rehberi
Template: kadence
Version: 1.0.0
*/

:root {
  --pr-green:       #2d6a4f;
  --pr-green-mid:   #52b788;
  --pr-green-light: #d8f3dc;
  --pr-bg:          #f4f7f4;
  --pr-white:       #ffffff;
  --pr-text:        #1b1b1b;
  --pr-text-2:      #4a4a4a;
  --pr-text-3:      #777777;
  --pr-border:      #dde8de;
  --pr-shadow:      0 2px 12px rgba(0,0,0,0.08);
  --pr-radius:      10px;
  --pr-radius-sm:   6px;
}

* { box-sizing: border-box; }

body {
  background: var(--pr-bg);
  color: var(--pr-text);
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--pr-green); text-decoration: none; }
a:hover { color: var(--pr-green-mid); }

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

/* ── HEADER ── */
.site-header {
  background: var(--pr-green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all .2s;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── BREADCRUMB ── */
.pr-breadcrumb {
  background: var(--pr-white);
  border-bottom: 1px solid var(--pr-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--pr-text-3);
}
.pr-breadcrumb .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pr-breadcrumb a { color: var(--pr-green); }
.pr-breadcrumb span { margin: 0 6px; }

/* ── LAYOUT ── */
.pr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── SINGLE POST ── */
.pr-article {
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  overflow: hidden;
  box-shadow: var(--pr-shadow);
}

.pr-article-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.pr-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pr-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
}
.pr-article-hero-overlay h1 {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.pr-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--pr-border);
  flex-wrap: wrap;
}
.pr-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.pr-meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.pr-meta-date { font-size: 13px; color: var(--pr-text-3); }
.pr-meta-cat {
  background: var(--pr-green-light);
  color: var(--pr-green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.pr-article-body {
  padding: 32px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--pr-text-2);
}
.pr-article-body h2 {
  font-size: 22px;
  color: var(--pr-text);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pr-green-light);
}
.pr-article-body h3 { font-size: 18px; margin: 24px 0 10px; color: var(--pr-text); }
.pr-article-body p { margin-bottom: 16px; }
.pr-article-body ul, .pr-article-body ol { margin: 0 0 16px 24px; }
.pr-article-body li { margin-bottom: 6px; }
.pr-article-body blockquote {
  background: var(--pr-green-light);
  border-left: 4px solid var(--pr-green);
  padding: 16px 20px;
  border-radius: 0 var(--pr-radius-sm) var(--pr-radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--pr-green);
}
.pr-article-body img {
  border-radius: var(--pr-radius-sm);
  margin: 16px 0;
}

/* ── CHECKLIST ── */
.pr-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.pr-checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 15px;
}
.pr-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pr-green);
  font-weight: 700;
}

/* ── INFO BOX ── */
.pr-infobox {
  background: var(--pr-green-light);
  border: 1px solid #b7e4c7;
  border-radius: var(--pr-radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--pr-green);
}

/* ── AUTHOR BOX ── */
.pr-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 32px;
  border-top: 1px solid var(--pr-border);
  background: var(--pr-bg);
}
.pr-author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pr-author-box h4 { font-size: 15px; margin: 0 0 4px; }
.pr-author-box p { font-size: 13px; color: var(--pr-text-3); margin: 0; }

/* ── RELATED POSTS ── */
.pr-related {
  padding: 32px;
  border-top: 1px solid var(--pr-border);
}
.pr-related h3 { font-size: 20px; margin: 0 0 20px; }
.pr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pr-related-card {
  background: var(--pr-bg);
  border-radius: var(--pr-radius-sm);
  overflow: hidden;
  border: 1px solid var(--pr-border);
  transition: transform .2s, box-shadow .2s;
}
.pr-related-card:hover { transform: translateY(-3px); box-shadow: var(--pr-shadow); }
.pr-related-card img { width: 100%; height: 140px; object-fit: cover; }
.pr-related-card-body { padding: 12px; }
.pr-related-card-body h4 { font-size: 14px; margin: 0 0 6px; line-height: 1.4; }
.pr-related-card-body span { font-size: 12px; color: var(--pr-text-3); }

/* ── COMMENTS ── */
.pr-comments { padding: 32px; border-top: 1px solid var(--pr-border); }
.pr-comments h3 { font-size: 20px; margin: 0 0 20px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--pr-green);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.pr-btn {
  background: var(--pr-green);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.pr-btn:hover { background: var(--pr-green-mid); }

/* ── SIDEBAR ── */
.pr-sidebar { display: flex; flex-direction: column; gap: 20px; }

.pr-widget {
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  padding: 20px;
  box-shadow: var(--pr-shadow);
}
.pr-widget h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--pr-text-3);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pr-green-light);
}

/* Search */
.pr-search-form { display: flex; gap: 8px; }
.pr-search-form input {
  flex: 1;
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
.pr-search-form button {
  background: var(--pr-green);
  color: #fff;
  border: none;
  border-radius: var(--pr-radius-sm);
  padding: 9px 14px;
  cursor: pointer;
  font-size: 16px;
}

/* Categories */
.pr-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-cat-tag {
  background: var(--pr-green-light);
  color: var(--pr-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
}
.pr-cat-tag:hover { background: var(--pr-green); color: #fff; }

/* Recent Posts */
.pr-recent-list { display: flex; flex-direction: column; gap: 12px; }
.pr-recent-item { display: flex; gap: 10px; align-items: flex-start; }
.pr-recent-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--pr-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.pr-recent-item h5 { font-size: 13px; margin: 0 0 4px; line-height: 1.4; }
.pr-recent-item span { font-size: 11px; color: var(--pr-text-3); }

/* ── HOMEPAGE ── */
.pr-hero {
  background: linear-gradient(135deg, var(--pr-green) 0%, #1b4332 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
}
.pr-hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.pr-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.pr-hero h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.pr-hero h1 em { color: #95d5b2; font-style: normal; }
.pr-hero p { color: rgba(255,255,255,0.8); font-size: 17px; margin: 0 0 32px; }
.pr-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pr-hero-btn {
  background: #fff;
  color: var(--pr-green);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}
.pr-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); color: var(--pr-green); }
.pr-hero-btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.pr-hero-btn.outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Stats bar */
.pr-stats {
  background: var(--pr-white);
  border-bottom: 1px solid var(--pr-border);
  padding: 20px 24px;
}
.pr-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.pr-stat { padding: 8px 16px; border-right: 1px solid var(--pr-border); }
.pr-stat:last-child { border-right: none; }
.pr-stat-num { font-size: 26px; font-weight: 800; color: var(--pr-green); }
.pr-stat-label { font-size: 12px; color: var(--pr-text-3); margin-top: 2px; }

/* Featured posts grid */
.pr-home-section { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.pr-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.pr-section-title h2 { font-size: 24px; margin: 0; }
.pr-section-title a { font-size: 14px; color: var(--pr-green); font-weight: 500; }

.pr-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pr-posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.pr-post-card {
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  overflow: hidden;
  box-shadow: var(--pr-shadow);
  border: 1px solid var(--pr-border);
  transition: transform .2s, box-shadow .2s;
}
.pr-post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.pr-post-card-img { height: 200px; overflow: hidden; }
.pr-post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pr-post-card:hover .pr-post-card-img img { transform: scale(1.04); }
.pr-post-card-body { padding: 18px; }
.pr-post-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pr-green);
  margin-bottom: 8px;
}
.pr-post-card-body h3 { font-size: 17px; line-height: 1.35; margin: 0 0 10px; }
.pr-post-card-body p { font-size: 14px; color: var(--pr-text-3); margin: 0 0 14px; }
.pr-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--pr-text-3);
  padding-top: 12px;
  border-top: 1px solid var(--pr-border);
}

/* Categories section */
.pr-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pr-cat-card {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
}
.pr-cat-card:hover { border-color: var(--pr-green); transform: translateY(-3px); box-shadow: var(--pr-shadow); }
.pr-cat-card-icon { font-size: 32px; margin-bottom: 10px; }
.pr-cat-card h3 { font-size: 15px; color: var(--pr-text); margin: 0 0 4px; }
.pr-cat-card span { font-size: 12px; color: var(--pr-text-3); }

/* ── ARCHIVE / CATEGORY ── */
.pr-archive-header {
  background: var(--pr-green);
  padding: 40px 24px;
  text-align: center;
}
.pr-archive-header h1 { color: #fff; font-size: 32px; margin: 0 0 8px; }
.pr-archive-header p { color: rgba(255,255,255,0.75); font-size: 15px; margin: 0; }

.pr-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.pr-archive-list { display: flex; flex-direction: column; gap: 24px; }
.pr-archive-card {
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  overflow: hidden;
  box-shadow: var(--pr-shadow);
  border: 1px solid var(--pr-border);
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: transform .2s;
}
.pr-archive-card:hover { transform: translateY(-3px); }
.pr-archive-card img { width: 100%; height: 100%; object-fit: cover; }
.pr-archive-card-body { padding: 20px 24px; }
.pr-archive-card-body .pr-meta-cat { margin-bottom: 8px; display: inline-block; }
.pr-archive-card-body h2 { font-size: 19px; margin: 0 0 10px; line-height: 1.35; }
.pr-archive-card-body p { font-size: 14px; color: var(--pr-text-3); margin: 0 0 16px; }
.pr-archive-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--pr-text-3);
}
.pr-read-more {
  margin-left: auto;
  background: var(--pr-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}
.pr-read-more:hover { background: var(--pr-green-mid); color: #fff; }

/* ── FOOTER ── */
.pr-footer {
  background: #1b1b1b;
  color: #aaa;
  padding: 48px 24px 24px;
  margin-top: 60px;
}
.pr-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.pr-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.pr-footer ul { list-style: none; padding: 0; margin: 0; }
.pr-footer ul li { margin-bottom: 8px; }
.pr-footer ul li a { color: #aaa; font-size: 13px; text-decoration: none; transition: color .2s; }
.pr-footer ul li a:hover { color: var(--pr-green-mid); }
.pr-footer-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.pr-footer-desc { font-size: 13px; line-height: 1.7; }
.pr-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── NEWSLETTER ── */
.pr-newsletter {
  background: linear-gradient(135deg, var(--pr-green), #1b4332);
  border-radius: var(--pr-radius);
  padding: 32px;
  text-align: center;
  color: #fff;
}
.pr-newsletter h3 { margin: 0 0 8px; font-size: 20px; }
.pr-newsletter p { font-size: 14px; opacity: .8; margin: 0 0 16px; }
.pr-newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.pr-newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}
.pr-newsletter-form button {
  background: #fff;
  color: var(--pr-green);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pr-container { grid-template-columns: 1fr; }
  .pr-archive-container { grid-template-columns: 1fr; }
  .pr-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pr-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .pr-archive-card { grid-template-columns: 1fr; }
  .pr-archive-card img { height: 200px; }
}

@media (max-width: 600px) {
  .pr-posts-grid { grid-template-columns: 1fr; }
  .pr-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-footer-grid { grid-template-columns: 1fr; }
  .pr-hero { padding: 48px 20px; }
  .pr-article-hero { height: 240px; }
  .pr-article-body { padding: 20px; }
  .pr-article-meta { padding: 14px 20px; }
  .pr-related { padding: 20px; }
  .pr-comments { padding: 20px; }
  .site-nav { display: none; }
}
