/* ==========================================================================
   WATER GRUP — blog listesi (.wg-blog), yazı kartı (.wg-post), tekil yazı (.wg-article-page), yan panel (.wg-side)
   ========================================================================== */

body.wg-theme .site-page-header, body.wg-theme .empty-blog-header { display: none; }

/* ---------- Liste hero ---------- */
.wg-blog__hero { margin-top: 10px; }
.wg-blog__hero-inner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 44px; padding-bottom: 44px; border-radius: var(--wg-radius-lg); border: 1px solid var(--wg-border); background: linear-gradient(135deg, #f7fafb 0%, #eaf5f4 100%); }
.wg-blog__hero-inner::before { content: ""; position: absolute; right: -120px; top: -140px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 155, 154, .18), transparent); pointer-events: none; }
.wg-blog__title { margin: 4px 0 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--wg-navy); }
.wg-blog__intro { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.75; color: var(--wg-text); }
.wg-blog__search { position: relative; z-index: 1; margin-top: 14px; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; padding: 6px 6px 6px 16px; background: #fff; border: 2px solid var(--wg-border); border-radius: 14px; transition: border-color .15s; }
.wg-blog__search:focus-within { border-color: var(--wg-teal); }
.wg-blog__search .wg-i { color: var(--wg-teal-dark); font-size: 18px; }
.wg-blog__search input[type="search"] { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; color: var(--wg-navy); padding: 8px 0; box-shadow: none; }
.wg-blog__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wg-blog__body { padding-top: 26px; }

/* ---------- Izgara ve kart ---------- */
.wg-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wg-blog__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wg-post { display: flex; flex-direction: column; border: 1px solid var(--wg-border); border-radius: var(--wg-radius); background: #fff; overflow: hidden; min-width: 0; transition: transform .22s var(--wg-ease), box-shadow .22s, border-color .22s; }
.wg-post:hover { transform: translateY(-5px); box-shadow: var(--wg-shadow); border-color: rgba(21, 155, 154, .45); }
.wg-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #f7fafb, #eaf5f4); }
.wg-post__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--wg-ease); }
.wg-post:hover .wg-post__img { transform: scale(1.05); }
.wg-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.wg-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--wg-muted); }
.wg-post__cat { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--wg-teal-soft); color: var(--wg-petrol); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.wg-post__title { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wg-post__title a { color: var(--wg-navy); text-decoration: none; }
.wg-post__title a:hover { color: var(--wg-teal-dark); }
.wg-post__excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--wg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wg-post__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 750; color: var(--wg-petrol); text-decoration: none; }
.wg-post__more .wg-i { transition: transform .2s; }
.wg-post__more:hover { color: var(--wg-teal-dark); }
.wg-post__more:hover .wg-i { transform: translateX(4px); }
.wg-post--feature { grid-column: 1 / -1; flex-direction: row; }
.wg-post--feature .wg-post__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.wg-post--feature .wg-post__body { justify-content: center; padding: 34px 38px; gap: 12px; }
.wg-post--feature .wg-post__title { font-size: clamp(22px, 2.4vw, 30px); -webkit-line-clamp: 3; }
.wg-post--feature .wg-post__excerpt { font-size: 15.5px; -webkit-line-clamp: 4; }

/* Sayfalama (core the_posts_pagination) */
.wg-pagination.navigation { margin: 30px 0 10px; }
.wg-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.wg-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Blog CTA ---------- */
.wg-blog__cta { margin-top: 50px; background: linear-gradient(135deg, var(--wg-navy), var(--wg-petrol)); color: #d7e6ea; }
.wg-blog__cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.wg-blog__cta-title { margin: 10px 0 10px; color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.wg-blog__cta-text { margin: 0; max-width: 600px; font-size: 15px; line-height: 1.7; }
.wg-blog__cta .wg-btn--primary { background: #fff; color: var(--wg-navy) !important; box-shadow: none; }
.wg-blog__cta .wg-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.wg-blog__cta .wg-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Tekil yazı ---------- */
.wg-article-page__head {padding-top: 20px; }
.wg-article-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; color: var(--wg-muted); }
.wg-article-page__meta .wg-i { margin-right: 5px; color: var(--wg-teal); }
.wg-article-page__title { margin: 16px 0 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--wg-navy); }
.wg-article-page__lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--wg-text); }
.wg-article-page__media { margin: 28px auto 0; }
.wg-article-page__img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--wg-radius-lg); display: block; }
.wg-article-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 34px; align-items: start; }
.wg-article-page__prose { max-width: none; }
.wg-article-page__prose .wg-article { max-width: none; }
.wg-article-page__prose > *:first-child { margin-top: 0; }
.wg-article-page__prose img { max-width: 100%; height: auto; border-radius: 12px; }
.wg-article-page__prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 36px 0 12px; color: var(--wg-navy); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: calc(var(--wg-hdr-h) + 20px); }
.wg-article-page__prose h3 { scroll-margin-top: calc(var(--wg-hdr-h) + 20px); }
.wg-article-page__prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.wg-article-page__prose th, .wg-article-page__prose td { border: 1px solid var(--wg-border); padding: 10px 12px; text-align: left; }
.wg-article-page__prose th { background: var(--wg-bg); }
.wg-article-page__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.wg-article-page__tags a { padding: 5px 11px; border-radius: 999px; background: var(--wg-bg); border: 1px solid var(--wg-border); color: var(--wg-petrol); font-size: 12.5px; font-weight: 650; text-decoration: none; }
.wg-article-page__share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--wg-border); display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--wg-muted); }
.wg-article-page__share a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--wg-border); display: inline-flex; align-items: center; justify-content: center; color: var(--wg-navy); transition: background-color .15s, color .15s, border-color .15s; }
.wg-article-page__share a:hover { background: var(--wg-navy); border-color: var(--wg-navy); color: #fff; }
.wg-article-page__pn { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wg-article-page__pn-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--wg-border); background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.wg-article-page__pn-link:hover { border-color: var(--wg-teal); box-shadow: var(--wg-shadow-sm); }
.wg-article-page__pn-link small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wg-teal-dark); display: inline-flex; align-items: center; gap: 5px; }
.wg-article-page__pn-link span { font-size: 14.5px; font-weight: 700; color: var(--wg-navy); line-height: 1.4; }
.wg-article-page__pn-link--next { text-align: right; align-items: flex-end; }
.wg-article-page__related { padding-top: 54px; }
.wg-article-page__comments { padding-top: 40px; max-width: 860px; }

/* ---------- Yan panel ---------- */
.wg-article-page__side { position: sticky; top: calc(var(--wg-hdr-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.wg-side { padding: 20px; border-radius: var(--wg-radius); border: 1px solid var(--wg-border); background: #fff; }
.wg-side[hidden] { display: none; }
.wg-side__title { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wg-navy); }
.wg-side__title .wg-i { color: var(--wg-teal); }
.wg-side__toc { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; scrollbar-width: thin; }
.wg-side__toc li { list-style: none; margin: 0; }
.wg-side__toc li.is-h3 { padding-left: 14px; }
.wg-side__toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--wg-muted); text-decoration: none; border-left: 2px solid transparent; }
.wg-side__toc a:hover, .wg-side__toc a.is-active { color: var(--wg-teal-dark); background: var(--wg-teal-soft); border-left-color: var(--wg-teal); }
.wg-side--cta { background: linear-gradient(160deg, var(--wg-navy), var(--wg-petrol)); border: 0; color: #d7e6ea; }
.wg-side__cta-title { margin: 10px 0 8px; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.wg-side__cta-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; }
.wg-side--cta .wg-btn--primary { background: #fff; color: var(--wg-navy) !important; box-shadow: none; }
.wg-side__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wg-side__list li { list-style: none; margin: 0; }
.wg-side__list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wg-navy); font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.wg-side__list a:hover { color: var(--wg-teal-dark); }
.wg-side__list img, .wg-side__list .wg-ph { flex: none; width: 58px; height: 58px; object-fit: cover; border-radius: 10px; min-height: 0; }
.wg-side__list .wg-ph__txt { display: none; }

/* ---------- Kırılma ---------- */
@media (max-width: 1024px) {
  .wg-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-blog__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-post--feature .wg-post__body { padding: 24px; }
  .wg-article-page__layout { grid-template-columns: 1fr; gap: 28px; }
  .wg-article-page__side { position: static; }
  .wg-blog__cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wg-post--feature { flex-direction: column; }
  .wg-post--feature .wg-post__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 767px) {
  .wg-blog__hero-inner { padding-top: 22px; padding-bottom: 22px; border-radius: 16px; }
  .wg-blog__title { font-size: 26px; }
  .wg-blog__search .wg-btn { min-height: 38px; padding: 0 12px; }
  .wg-blog__grid, .wg-blog__grid--3 { grid-template-columns: 1fr; gap: 14px; }
  .wg-article-page__title { font-size: 26px; }
  .wg-article-page__img { aspect-ratio: 16 / 10; border-radius: 14px; }
  .wg-article-page__pn { grid-template-columns: 1fr; }
  .wg-article-page__pn-link--next { text-align: left; align-items: flex-start; }
  .wg-blog__cta .wg-cta { flex-direction: column; }
  .wg-blog__cta .wg-cta .wg-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-post, .wg-post__img, .wg-post__more .wg-i { transition: none !important; }
  .wg-post:hover, .wg-post:hover .wg-post__img { transform: none !important; }
}
