/* =============================================
   HERYERPARKOUR — Blog Page Styles
   ============================================= */

/* ——— Blog 2-Column Layout (Main + Sidebar) ——— */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Blog Cards Grid — inside main area */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ——— Blog Grid (legacy) ——— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ——— Blog Card ——— */
.blog-card {
  background: var(--white);
  clip-path: var(--clip-card);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-body {
  padding: 24px;
}
.blog-card-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  clip-path: var(--clip-btn);
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-card-title a:hover { color: var(--accent); }

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ——— Blog Detail ——— */
.blog-detail {
  max-width: 760px;
  margin: 0 auto;
}
.blog-detail-header {
  margin-bottom: 40px;
}
.blog-detail-header .blog-card-tag {
  margin-bottom: 16px;
}
.blog-detail-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-detail-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.blog-detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  clip-path: var(--clip-card);
  margin-bottom: 40px;
}

/* ——— Blog Content (prose) ——— */
.blog-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  text-transform: uppercase;
  margin: 40px 0 16px;
}
.blog-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  text-transform: uppercase;
  margin: 32px 0 12px;
}
.blog-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.blog-content img {
  width: 100%;
  clip-path: var(--clip-card);
  margin: 24px 0;
}
.blog-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(255, 77, 0, 0.04);
}
.blog-content ul,
.blog-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.blog-content li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ——— Related posts ——— */
.blog-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.blog-related h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ——— Featured Card ——— */
.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.blog-card--featured .blog-card-img { aspect-ratio: 4/3; }
.blog-card--featured .blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.blog-card--featured .blog-card-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

/* ——— Blog Card Scroll Reveal ——— */
.blog-cards-grid .blog-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              box-shadow 0.3s;
  transition-delay: var(--card-delay, 0s);
}
.blog-cards-grid .blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.blog-cards-grid .blog-card.visible:hover {
  transform: translateY(-6px);
}

/* ——— Blog Card Link ——— */
.blog-card-img-link {
  display: block;
}

/* ——— Results Bar ——— */
.blog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.blog-count {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-active-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--ff-heading);
  font-weight: 700;
  text-transform: uppercase;
}
.blog-active-filter[hidden] {
  display: none;
}
.blog-active-filter button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

/* ——— Blog Hero — base stiller inner-page.css'ten gelir ——— */
.blog-hero + .page-content {
  padding-top: 48px;
}
/* PARKUR: beyaz stroke outline → hover turuncu */
.blog-hero-title .letter.stroke-letter {
  -webkit-text-stroke: 2px var(--text-on-dark) !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  transition: -webkit-text-stroke 0.3s, -webkit-text-fill-color 0.3s, color 0.3s, filter 0.3s;
}
.blog-hero-title .letter.stroke-letter:hover {
  -webkit-text-stroke: 0px transparent !important;
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
  filter: drop-shadow(0 4px 16px rgba(255, 77, 0, 0.4));
}
/* DÜNYASINDAN: turuncu → hover beyaz */
.blog-hero-title .letter.accent-letter {
  transition: color 0.3s, -webkit-text-fill-color 0.3s, filter 0.3s;
}
.blog-hero-title .letter.accent-letter:hover {
  color: white !important;
  -webkit-text-fill-color: white !important;
  filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
}

/* ——— Hero Category Pills ——— */
.blog-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.blog-cat-pill {
  padding: 6px 16px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  clip-path: var(--clip-btn);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.blog-cat-pill:hover,
.blog-cat-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ——— Pagination ——— */
.blog-pagination {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.blog-pagination-info {
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-page-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  clip-path: var(--clip-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  color: var(--text-primary);
}
.blog-page-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--white);
}
.blog-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.blog-page-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.blog-page-num {
  min-width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  clip-path: var(--clip-btn);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-page-num.active,
.blog-page-num:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ——— Sidebar ——— */
.blog-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-self: start;
}
.sidebar-widget {
  background: var(--white);
  padding: 28px;
  clip-path: var(--clip-card-2);
}
.sidebar-widget-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* Sidebar — Search */
.sidebar-search-form { position: relative; }
.sidebar-search-input-wrap {
  display: flex;
  position: relative;
}
.sidebar-search-input-wrap input[type="search"] {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--bg-primary);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  clip-path: var(--clip-btn);
}
.sidebar-search-input-wrap input:focus { border-color: var(--accent); }
.sidebar-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.sidebar-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.sidebar-search-results {
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  max-height: 240px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
}
.search-result-item:hover { background: var(--bg-primary); }
.search-result-title {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.search-result-cat {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--ff-heading);
}
.search-no-result {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sidebar — Recent Posts */
.sidebar-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-recent-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
}
.sidebar-recent-thumb {
  width: 80px;
  flex-shrink: 0;
  clip-path: var(--clip-card-3);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.sidebar-recent-link:hover .sidebar-recent-thumb img { transform: scale(1.08); }
.sidebar-recent-title {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text-primary);
  display: block;
  transition: color 0.3s;
}
.sidebar-recent-link:hover .sidebar-recent-title { color: var(--accent); }
.sidebar-recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* ——— Blog Card Tag Badges ——— */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.blog-tag-badge {
  padding: 3px 10px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  font-family: var(--ff-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  clip-path: var(--clip-btn);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.blog-tag-badge:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.blog-tag-badge.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ——— Sidebar Tags (free-floating below widgets) ——— */
.sidebar-tags-scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
}
.sidebar-all-tag {
  padding: 4px 11px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  font-family: var(--ff-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-decoration: none;
  clip-path: var(--clip-btn);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.sidebar-all-tag:nth-child(odd) {
  clip-path: polygon(0 0, 100% 3%, 98% 100%, 2% 96%);
}
.sidebar-all-tag:nth-child(even) {
  clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 97%);
}
.sidebar-all-tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.sidebar-all-tag.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ——— No Results ——— */
.blog-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* ——— Floating Category FAB ——— */
.cat-fab {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cat-fab.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.cat-fab-trigger {
  width: 52px;
  height: 52px;
  background: var(--bg-dark);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 0;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}
.cat-fab-trigger:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(255, 77, 0, 0.4);
}
.cat-fab-trigger svg {
  width: 22px;
  height: 22px;
}
.cat-fab-icon-filter { display: block; }
.cat-fab-icon-close { display: none; }
.cat-fab.open .cat-fab-icon-filter { display: none; }
.cat-fab.open .cat-fab-icon-close { display: block; }
.cat-fab.open .cat-fab-trigger {
  background: var(--accent);
}

/* FAB Menu — fan-out upward */
.cat-fab-menu {
  position: absolute;
  bottom: 62px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.cat-fab-item {
  white-space: nowrap;
  padding: 8px 16px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--ff-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, color 0.2s;
  transition-delay: calc(var(--i) * 0.04s);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.cat-fab.open .cat-fab-menu {
  pointer-events: auto;
}
.cat-fab.open .cat-fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cat-fab-item:hover {
  background: var(--accent);
  color: var(--white);
}
.cat-fab-item.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 300px; gap: 32px; }
}
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    align-self: auto;
  }
  .sidebar-widget--search {
    order: 1;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    align-self: start;
  }
  .sidebar-widget--recent { order: 2; }

  /* Tags JS ile sidebar dışına taşınır — ayrı blok olarak tam genişlik */
  .blog-layout > .sidebar-tags-scatter {
    margin-top: 20px;
  }
  .blog-card--featured { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-related-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero-cats { gap: 6px; }
  .blog-cat-pill { font-size: 0.7rem; padding: 5px 12px; }
  .cat-fab { bottom: 90px; left: 16px; }
  .cat-fab-trigger { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .blog-cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-widget--search,
  .sidebar-widget--recent { order: unset; grid-row: unset; grid-column: unset; }
  .sidebar-widget--search {
    position: static;
  }
}
