/* Dexter Blog — v1.1 */
:root {
  --color-accent: #f24436;
  --color-accent-dark: #e53935;
  --color-ink: #141820;
  --color-muted: #5a6270;
  --color-border: #e4e7ec;
  --color-surface: #ffffff;
  --color-header: #f24436;
  --color-nav: #e53935;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --container: 1180px;
  --gutter: 1rem;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 24, 32, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--color-ink);
  line-height: 1.6;
  background:
    radial-gradient(900px 380px at 0% 0%, rgba(242, 68, 54, 0.07), transparent 60%),
    linear-gradient(180deg, #f4f6f9 0%, #eef1f5 40%, #f6f7fa 100%);
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
  touch-action: pan-y;
}

a { color: var(--color-accent-dark); text-decoration: none; transition: color .2s ease, transform .2s ease; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== Header / Brand ===== */
.site-header {
  position: relative;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.header-top {
  background: var(--color-header);
  color: #fff;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  min-height: 96px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.site-logo-link {
  display: block;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.site-logo {
  max-height: 56px;
  width: auto;
  filter: none;
}

.brand-text { min-width: 0; }

.site-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.site-title a { color: #fff; }
.site-title a:hover { color: #fff; opacity: .92; }

.site-description {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  opacity: .9;
  color: #ffe9e6;
}

.header-ad-slot {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  max-width: 728px;
}

.header-nav-bar {
  background: var(--color-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}

.primary-nav { flex: 1 1 auto; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background: rgba(0,0,0,.16);
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
  border: 1px solid rgba(255,255,255,.18);
}

.header-search input {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  width: 150px;
  outline: none;
}

.header-search input::placeholder { color: rgba(255,255,255,.75); }

.header-search button {
  border: 0;
  background: #fff;
  color: var(--color-accent);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 4px; }

/* ===== Featured manset ===== */
.featured-band {
  background: linear-gradient(180deg, #1b222c 0%, #242c38 100%);
  padding: 1.5rem 0 1.75rem;
  border-bottom: 3px solid var(--color-accent);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
}

.featured-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.featured-main__link { display: block; height: 100%; color: #fff; }
.featured-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  transition: transform .45s ease;
}
.featured-main:hover .featured-main__img { transform: scale(1.04); }

.featured-main__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.35rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.featured-cat {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.featured-main__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.featured-main__meta {
  margin: 0.4rem 0 0;
  color: rgba(255,255,255,.8);
  font-size: 0.88rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured-side__item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}

.featured-side__item a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  color: #fff;
}

.featured-side__item img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.featured-side__item strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.featured-side__item small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255,255,255,.65);
}

.featured-side__item:hover {
  background: rgba(242, 68, 54, 0.18);
  border-color: rgba(242, 68, 54, 0.4);
}

/* ===== Layout ===== */
.site-main-wrap { padding: 1.75rem 0 3rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
  gap: 2rem;
  align-items: start;
}

.site-content,
.sidebar { min-width: 0; }

.section-header { margin-bottom: 1.1rem; }
.section-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-lead {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
}

/* ===== Posts ===== */
.posts-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.35rem 1.15rem;
}

.post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-card:last-child { border-bottom: 0; }

.post-card__thumb {
  overflow: hidden;
  border-radius: 10px;
  background: #dce2ea;
  aspect-ratio: 3 / 2;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  color: var(--color-muted);
  font-size: 0.84rem;
}

.post-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card__title a { color: var(--color-ink); }
.post-card__title a:hover { color: var(--color-accent); }

.post-card__excerpt {
  margin: 0.1rem 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.cat-link {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.in-feed-ad {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Single ===== */
.single-post,
.page-article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem 1.75rem;
  max-width: 100%;
}

.entry-content,
.entry-header,
.entry-footer,
.entry-thumbnail {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-content img,
.entry-content figure,
.entry-content video,
.entry-content .wp-caption,
.entry-content .alignnone,
.entry-content .aligncenter,
.entry-content .alignleft,
.entry-content .alignright {
  max-width: 100% !important;
  height: auto !important;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100% !important;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content pre {
  overflow-x: auto;
  white-space: pre-wrap;
  max-width: 100%;
}

.dexter-ad {
  max-width: 100%;
  overflow: visible;
}

.dexter-ad iframe,
.dexter-ad img {
  max-width: 100%;
}

.entry-title,
.archive-title,
.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 800;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.entry-thumbnail {
  margin: 0 0 1.35rem;
  border-radius: 12px;
  overflow: hidden;
}

.entry-content {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.entry-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.tags-links a {
  display: inline-block;
  margin: 0 0.35rem 0.4rem 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #fff1f0;
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.post-navigation {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.post-navigation a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow);
}

.post-navigation a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.post-navigation .nav-subtitle { display: block; font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.15rem; }

.archive-header { margin-bottom: 1rem; }

/* ===== Ads ===== */
.dexter-ad {
  margin: 1rem 0;
  text-align: center;
  overflow: hidden;
}

.dexter-ad__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.dexter-ad--single,
.dexter-ad--archive,
.dexter-ad--in {
  background: #fafbfc;
  border: 1px dashed #d7dbe3;
  border-radius: 10px;
  padding: 0.85rem;
}

.dexter-ad--header {
  margin: 0;
  max-width: 100%;
}

.dexter-ad--sky {
  display: none;
}

@media (min-width: 1401px) {
  .dexter-ad--sky {
    display: block;
    position: fixed;
    top: 140px;
    z-index: 5;
    width: 160px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
    pointer-events: auto;
  }

  .dexter-ad--left { left: 8px; }
  .dexter-ad--right { right: 8px; }
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 0.4rem;
}

.widget {
  padding: 0 0 1.2rem;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.widget:last-child { border-bottom: 0; }

.widget-title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-accent);
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(242,68,54,.35);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.4rem 0; }
.widget a { color: var(--color-ink); }
.widget a:hover { color: var(--color-accent); }

.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { padding: 0.45rem 0; border-bottom: 1px solid rgba(230,232,236,.9); }
.popular-list li:last-child { border-bottom: 0; }

.popular-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  align-items: center;
  color: var(--color-ink);
}

.popular-item__thumb img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
}

.popular-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.popular-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.tagcloud a {
  display: inline-block;
  margin: 0 0.3rem 0.4rem 0;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.84rem !important;
  color: var(--color-muted);
  background: #f8f9fb;
}

.tagcloud a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #fff1f0;
}

/* ===== Pagination / search ===== */
.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-ink);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--color-accent);
  color: #fff;
  background: var(--color-accent);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.search-form input[type="submit"],
.button {
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

/* ===== Footer ===== */
.site-footer {
  background: #1b222c;
  color: rgba(255,255,255,.82);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0 1.6rem;
}

.footer-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  background: transparent;
  padding: 0;
}

.footer-brand p { margin: 0; line-height: 1.5; }

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-menu a,
.footer-contact a { color: rgba(255,255,255,.82); }
.footer-menu a:hover,
.footer-contact a:hover { color: #fff; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0.95rem 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
}

.footer-copy .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy a { color: rgba(255,255,255,.8); }

/* ===== Responsive — mobil düzen (sıfırdan) ===== */
@media (max-width: 991px) {
  :root {
    --gutter: 16px;
  }

  html, body {
    overflow-x: clip;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    touch-action: pan-y pinch-zoom;
  }

  /* Tek yatay boşluk: sadece --gutter. Ekstra kart kenarı yok. */
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--gutter);
  }

  .site-main-wrap {
    padding: 0 0 2rem;
  }

  .content-grid,
  .featured-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    width: 100%;
    max-width: 100%;
    gap: 0;
    padding-inline: 0;
  }

  /* Kart çerçevesini kaldır — ana sayfa / detay aynı tam genişlik */
  .posts-list,
  .single-post,
  .page-article,
  .sidebar {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-surface);
    margin: 0;
    max-width: 100%;
  }

  .posts-list {
    padding: 0.25rem 0;
  }

  .single-post,
  .page-article {
    padding: 1rem 0 1.35rem;
  }

  .sidebar {
    margin-top: 0.75rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--color-border);
  }

  .section-header,
  .archive-header {
    padding: 1rem 0 0.35rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .post-navigation a {
    border-radius: 0;
    box-shadow: none;
  }

  .entry-thumbnail {
    margin: 0 0 1rem;
    border-radius: 0;
    width: 100%;
  }

  .entry-thumbnail img {
    width: 100%;
    height: auto;
  }

  .entry-title,
  .archive-title,
  .page-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .entry-content {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .dexter-ad--single,
  .dexter-ad--archive,
  .dexter-ad--in {
    margin: 0.75rem 0;
    padding: 0.55rem 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .dexter-ad--sky {
    display: none !important;
    pointer-events: none !important;
  }

  /* Header */
  .header-top-inner {
    flex-direction: row;
    align-items: center;
    min-height: 72px;
    padding: 0.65rem 0;
    gap: 0.75rem;
  }

  .header-ad-slot { display: none; }
  .brand-text .site-title { font-size: 1.15rem; }
  .menu-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #c62828;
    padding: 0.5rem var(--gutter) 1rem;
    z-index: 40;
  }

  .header-nav-bar { position: relative; }
  .primary-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; }
  .header-search { display: none; }

  /* Manset ve icerik: soldan/sagdan az bosluk */
  .featured-band {
    padding: 0.65rem 0 0.85rem;
  }

  .featured-band .container {
    padding-inline: var(--gutter);
  }

  .featured-grid {
    gap: 0.55rem;
  }

  .featured-main,
  .featured-main__img {
    min-height: 240px;
    border-radius: 10px;
  }

  .featured-side__item {
    border-radius: 10px;
  }

  .site-content,
  .posts-list,
  .single-post,
  .page-article,
  .sidebar,
  .section-header,
  .archive-header,
  .post-navigation {
    padding-inline: 0;
  }

  .post-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .footer-grid {
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 14px;
  }

  .brand-text .site-description { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .site-logo { max-height: 44px; }

  .entry-content pre,
  .entry-content code {
    font-size: 0.85rem;
  }
}
