/* ==========================================================================
   Blog & Single Post — Premium Modern Redesign
   ========================================================================== */

/* === Page Hero === */

.olgun-page-hero {
  background: #0F172A;
  padding: var(--space-32) 0 var(--space-20);
  text-align: center;
  margin-top: 0;
  padding-top: var(--space-24);
  position: relative;
  overflow: hidden;
}

.olgun-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59, 99, 226, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.olgun-page-hero--small,
.olgun-page-hero--blog {
  padding-bottom: var(--space-16);
}

.olgun-page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: #fff;
  margin-bottom: var(--space-4);
  position: relative;
  letter-spacing: -0.03em;
}

.olgun-page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.4);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

.olgun-page-hero .olgun-section-label {
  color: rgba(255, 255, 255, 0.35);
  position: relative;
}

.olgun-page-hero .olgun-section-label::before {
  background-color: var(--color-primary-light);
}

/* Decorative hero shapes */
.olgun-page-hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.olgun-page-hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  background: #fff;
}

.olgun-page-hero__shape--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.olgun-page-hero__shape--2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  opacity: 0.03;
}

@media (min-width: 768px) {
  .olgun-page-hero__title {
    font-size: var(--text-5xl);
  }
}

/* === Blog Section === */

.olgun-blog-section {
  padding-top: var(--space-16);
}

/* === Featured Post — Hero Card === */

.olgun-featured-post {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-16);
  transition: all var(--duration-slow) var(--ease-out);
}

.olgun-featured-post:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.olgun-featured-post__image {
  position: relative;
  overflow: hidden;
}

.olgun-featured-post__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.olgun-featured-post:hover .olgun-featured-post__image img {
  transform: scale(1.03);
}

.olgun-featured-post__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-bg) 100%);
  color: var(--color-text-muted);
}

.olgun-featured-post__content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.olgun-featured-post__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.olgun-featured-post__date,
.olgun-featured-post__read {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.olgun-featured-post__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.olgun-featured-post__title a {
  color: var(--color-text);
  transition: color var(--transition);
}

.olgun-featured-post__title a:hover {
  color: var(--color-primary);
}

.olgun-featured-post__excerpt {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.olgun-featured-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
}

.olgun-featured-post__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.olgun-featured-post__author img {
  border-radius: var(--radius-full);
}

.olgun-featured-post__author span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .olgun-featured-post {
    grid-template-columns: 1.15fr 1fr;
  }

  .olgun-featured-post__image img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
  }

  .olgun-featured-post__content {
    padding: var(--space-10) var(--space-12);
  }

  .olgun-featured-post__title {
    font-size: var(--text-3xl);
  }
}

/* === Blog Grid Header === */

.olgun-blog-grid-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.olgun-blog-grid-header__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.olgun-blog-grid-header__line {
  flex: 1;
  height: 1px;
  background: var(--color-border-light);
}

/* === Post Cards === */

.olgun-post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.olgun-post-list--three {
  gap: var(--space-6);
}

.olgun-post-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.olgun-post-card__inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.olgun-post-card__inner:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: translateY(-6px);
}

.olgun-post-card__image {
  overflow: hidden;
  position: relative;
}

.olgun-post-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.olgun-post-card__inner:hover .olgun-post-card__image img {
  transform: scale(1.05);
}

.olgun-post-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-bg) 100%);
  color: var(--color-text-muted);
}

.olgun-post-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.olgun-post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.olgun-post-card__read-time {
  opacity: 0.7;
}

.olgun-post-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.olgun-post-card__title a {
  color: var(--color-text);
  transition: color var(--transition);
}

.olgun-post-card__title a:hover {
  color: var(--color-primary);
}

.olgun-post-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.olgun-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition);
}

.olgun-post-card__link svg {
  transition: transform var(--transition);
}

.olgun-post-card__link:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .olgun-post-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .olgun-post-list--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .olgun-post-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Single Post — Premium Layout
   ========================================================================== */

/* === Progress Bar === */

.olgun-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  z-index: 999;
  transition: width 50ms linear;
  box-shadow: 0 0 10px rgba(59, 99, 226, 0.4);
}

/* === Single Header === */

.olgun-single__header {
  background: #0F172A;
  padding: var(--space-32) 0 var(--space-24);
  text-align: center;
  margin-top: 0;
  padding-top: var(--space-20);
  position: relative;
  overflow: hidden;
}

.olgun-single__header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.olgun-single__header-shape {
  position: absolute;
  border-radius: 50%;
}

.olgun-single__header-shape--1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(59, 99, 226, 0.1) 0%, transparent 70%);
}

.olgun-single__header-shape--2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -50px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.olgun-single__header-shape--3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(107, 138, 255, 0.06) 0%, transparent 70%);
}

.olgun-single__header-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

/* Breadcrumb */
.olgun-single__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.olgun-single__breadcrumb a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.olgun-single__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.olgun-single__breadcrumb svg {
  color: rgba(255, 255, 255, 0.15);
}

.olgun-single__breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.olgun-single__category {
  margin-bottom: var(--space-6);
}

.olgun-single__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-8);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Meta */
.olgun-single__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.olgun-single__meta-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: none;
}

.olgun-single__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.olgun-single__author img {
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.olgun-single__author-info {
  text-align: left;
}

.olgun-single__author-name {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: var(--text-sm);
}

.olgun-single__author-role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.olgun-single__date {
  color: rgba(255, 255, 255, 0.4);
}

.olgun-single__read-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.35);
}

.olgun-single__read-time svg {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .olgun-single__title {
    font-size: var(--text-4xl);
  }

  .olgun-single__meta-divider {
    display: block;
  }
}

@media (min-width: 1024px) {
  .olgun-single__title {
    font-size: var(--text-5xl);
  }
}

/* === Featured Image === */

.olgun-single__featured {
  margin-top: calc(-1 * var(--space-16));
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}

.olgun-single__featured-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.olgun-single__featured-wrapper img {
  width: 100%;
  display: block;
}

/* === Content Layout — Sidebar + Article === */

.olgun-single__layout {
  padding: var(--space-12) 0 var(--space-20);
}

.olgun-single__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 760px;
  margin: 0 auto;
}

/* Sidebar */
.olgun-single__sidebar {
  display: none;
}

.olgun-single__sidebar-sticky {
  position: sticky;
  top: 100px;
}

.olgun-single__sidebar-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.olgun-single__sidebar-share {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.olgun-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.olgun-share-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 99, 226, 0.3);
}

@media (min-width: 1024px) {
  .olgun-single__grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-10);
    max-width: 860px;
  }

  .olgun-single__sidebar {
    display: block;
  }
}

/* === Prose Content === */

.olgun-prose {
  font-size: var(--text-lg);
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.olgun-prose p {
  margin-bottom: var(--space-6);
}

.olgun-prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  color: var(--color-text);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.olgun-prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.olgun-prose img {
  border-radius: var(--radius-lg);
  margin: var(--space-10) 0;
  box-shadow: var(--shadow-md);
}

.olgun-prose ul,
.olgun-prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-8);
}

.olgun-prose li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

.olgun-prose blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-xl);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-10) 0;
  background: var(--color-primary-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--color-text-secondary);
}

.olgun-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(59, 99, 226, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.olgun-prose a:hover {
  text-decoration-color: var(--color-primary);
}

/* Tags */
.olgun-single__tags {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-light);
}

.olgun-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.olgun-tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.olgun-tags a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* === Author Box === */

.olgun-author-box {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  margin: var(--space-10) 0;
}

.olgun-author-box__avatar img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.olgun-author-box__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.olgun-author-box__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.olgun-author-box__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* === Post Navigation === */

.olgun-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.olgun-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition);
}

.olgun-post-nav__item:hover {
  background: var(--color-surface);
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.olgun-post-nav__item--next {
  text-align: right;
}

.olgun-post-nav__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.olgun-post-nav__item--next .olgun-post-nav__label {
  justify-content: flex-end;
}

.olgun-post-nav__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .olgun-post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Related Posts === */

.olgun-related-posts {
  background: var(--color-bg);
}
