/* ========================================
   Kuaförüm Mobil Blog — Elite Luxury CSS
   Mobile-first, Google Fonts, no framework
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --kf-text: #111111;
  --kf-text-light: #555555;
  --kf-bg: #ffffff;
  --kf-max-width: 1280px;
  --kf-content-width: 760px;
}

.kf-blog-wrap *,
.kf-blog-wrap *::before,
.kf-blog-wrap *::after {
  box-sizing: border-box;
}

.kf-blog-wrap {
  font-family: var(--kf-font-body);
  color: var(--kf-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: var(--kf-bg);
}

.kf-blog-wrap a {
  color: var(--kf-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.kf-blog-wrap a:hover {
  opacity: 0.6;
}

/* ============================
   CATEGORY HERO / MENU
   ============================ */
.kf-category-hero {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.kf-category-hero-inner {
  max-width: var(--kf-max-width);
  width: 100%;
  margin: 0 auto;
}

.kf-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

.kf-category-item {
  position: relative;
}

.kf-category-link {
  font-family: var(--kf-font-menu);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  padding: 8px 4px;
  display: inline-block;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.kf-category-link:hover {
  opacity: 0.8;
}

/* Sub-menu indicator arrow */
.kf-category-arrow {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.7em;
  line-height: 1;
  vertical-align: middle;
}

.kf-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  min-width: 200px;
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 100;
}

.kf-category-item.has-sub:hover .kf-sub-menu,
.kf-category-item.has-sub .kf-sub-menu:hover {
  display: block;
}

.kf-sub-link {
  display: block;
  padding: 8px 20px;
  font-family: var(--kf-font-menu);
  font-size: 15px;
  font-style: italic;
  color: #222;
  transition: background 0.15s;
  white-space: nowrap;
}

.kf-sub-link:hover {
  background: #f5f5f5;
  opacity: 1;
}

/* Back button — hidden on desktop, shown on mobile */
.kf-cat-back {
  display: none;
  background: none;
  border: none;
  outline: none;
  color: #000;
  font-size: 14px;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  text-shadow: none;
}

/* Mobile: slide sub-menu with back */
@media (max-width: 639px) {
  .kf-category-hero {
    padding: 28px 16px;
  }
  .kf-category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }
  .kf-category-link {
    font-size: 18px;
    padding: 6px 0;
  }

  /* Back button (mobile only) — centered, compact */
  .kf-cat-back.is-visible {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0 0 4px;
  }

  /* Sub-menu slide: hide all items except the active one */
  .kf-category-nav.kf-nav-hidden .kf-category-item:not(.kf-sub-active) {
    display: none;
  }

  /* Active sub-menu styling */
  .kf-category-item.kf-sub-active .kf-category-link {
    display: none;
  }
  .kf-category-item.kf-sub-active .kf-sub-menu {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    min-width: auto;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
    background: none;
    z-index: auto;
  }
  .kf-sub-link {
    display: inline-block;
    color: #000;
    font-size: 15px;
    font-style: italic;
    padding: 10px 20px;
    transition: background 0.15s;
  }
  .kf-sub-link:hover {
    background: rgba(0,0,0,0.04);
  }
}

/* Current category label */
.kf-archive-cat-label {
  font-family: var(--kf-font-title);
  font-size: 14px;
  font-style: italic;
  color: #999;
  margin: 0 0 40px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Current menu item */
.kf-category-item.current > .kf-category-link {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.kf-sub-link.current {
  font-weight: 700;
  opacity: 0.7;
}

/* ============================
   ARCHIVE / GRID
   ============================ */
.kf-blog-archive {
  max-width: var(--kf-max-width);
  margin: 0 auto;
  padding: 60px 20px 80px;
  background: #fff;
}

.kf-blog-grid {
  display: grid;
  gap: 40px 30px;
}

.kf-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.kf-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.kf-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.kf-blog-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
}

.kf-blog-card-img {
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.kf-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.kf-blog-card-noimg {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}

.kf-blog-card-body {
  padding: 0;
  text-align: center;
}

.kf-blog-card-title {
  font-family: var(--kf-font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #000;
}

.kf-blog-card-title a {
  color: #000;
}

.kf-blog-card-excerpt {
  font-family: var(--kf-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  margin: 0 0 14px;
}

.kf-blog-card-btn {
  display: inline-block;
  font-family: var(--kf-font-title);
  font-size: 13px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding-bottom: 2px;
  border-bottom: 1px solid #000;
  transition: opacity 0.2s;
}

.kf-blog-card-btn:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* ============================
   PAGINATION
   ============================ */
.kf-blog-pagination {
  margin-top: 60px;
  text-align: center;
}

.kf-blog-pagination ul {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kf-blog-pagination li {
  margin: 0;
}

.kf-blog-pagination a,
.kf-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--kf-font-body);
  font-size: 13px;
  color: #000;
  background: transparent;
  border: none;
  transition: opacity 0.15s;
}

.kf-blog-pagination .current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kf-blog-pagination a:hover {
  opacity: 0.5;
}

/* ============================
   READING PROGRESS BAR
   ============================ */
.kf-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99999;
}

.kf-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #111, #555);
  transition: width 0.1s linear;
}

/* ============================
   SINGLE BLOG POST — CENTERED
   ============================ */
.kf-blog-single {
  max-width: var(--kf-content-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Breadcrumbs */
.kf-breadcrumbs {
  font-family: var(--kf-font-body);
  font-size: 12px;
  color: var(--kf-text-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.kf-breadcrumbs a {
  color: var(--kf-text-light);
}

.kf-breadcrumbs span {
  margin: 0 6px;
  color: #ccc;
}

/* Featured Image */
.kf-blog-featured {
  margin-bottom: 32px;
  overflow: hidden;
}

.kf-blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Header */
.kf-blog-header {
  margin-bottom: 40px;
}

.kf-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.kf-blog-categories a {
  display: inline-block;
  padding: 4px 14px;
  font-family: var(--kf-font-body);
  font-size: 11px;
  font-weight: 500;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s;
}

.kf-blog-categories a:hover {
  color: #000;
  border-color: #000;
}

.kf-blog-title {
  font-family: var(--kf-font-title);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #000;
  letter-spacing: -0.02em;
}

.kf-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--kf-font-body);
  font-size: 13px;
  color: var(--kf-text-light);
}

.kf-blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================
   TOC — INLINE TABLE (afilli)
   ============================ */
.kf-toc-inline {
  margin-bottom: 40px;
}

.kf-toc {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.kf-toc:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.kf-toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 0;
}

.kf-toc-icon {
  font-size: 14px;
  color: #c9a96e;
  line-height: 1;
}

.kf-toc-title {
  font-family: var(--kf-font-title);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  margin: 0;
}

.kf-toc-body {
  padding: 12px 24px 20px;
}

.kf-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kf-toc-item {
  margin: 0;
  padding: 0;
}

.kf-toc-item + .kf-toc-item {
  border-top: 1px solid #f0f0f0;
}

.kf-toc-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 8px;
  font-family: var(--kf-font-body);
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 0;
}

.kf-toc-link:hover {
  color: #000;
  background: #f3f4f6;
  padding-left: 12px;
  text-decoration: none;
}

.kf-toc-link.kf-toc-active {
  color: #c9a96e;
  font-weight: 600;
  background: #f8f6f0;
}

.kf-toc-link.kf-toc-active .kf-toc-marker {
  color: #c9a96e;
}

.kf-toc-marker {
  flex-shrink: 0;
  font-family: var(--kf-font-title);
  font-size: 12px;
  font-weight: 600;
  color: #c9a96e;
  min-width: 24px;
  text-align: right;
  line-height: 1.6;
}

.kf-toc-label {
  flex: 1;
  line-height: 1.5;
}

/* H3 indentation */
.kf-toc-item-h3 .kf-toc-link {
  padding-left: 44px;
  font-size: 12px;
  color: #666;
}

.kf-toc-item-h3 .kf-toc-link:hover {
  padding-left: 48px;
}

.kf-toc-item-h3 .kf-toc-marker {
  font-size: 10px;
  min-width: 16px;
  color: #bbb;
}

/* Blog Content */
.kf-blog-content {
  font-family: var(--kf-font-content);
  font-size: 19px;
  line-height: 1.8;
  color: #1a1a1a;
}

.kf-blog-content h2 {
  font-family: var(--kf-font-title);
  font-size: 26px;
  font-weight: 700;
  margin: 44px 0 18px;
  color: #000;
  letter-spacing: -0.01em;
}

.kf-blog-content h3 {
  font-family: var(--kf-font-title);
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 14px;
  color: #111;
}

.kf-blog-content p {
  margin: 0 0 20px;
}

.kf-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

.kf-blog-content ul,
.kf-blog-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.kf-blog-content li {
  margin-bottom: 8px;
}

.kf-blog-content blockquote {
  border-left: 3px solid #000;
  margin: 28px 0;
  padding: 12px 24px;
  font-style: italic;
  color: #333;
}

/* Backlinks */
.kf-backlinks {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.kf-backlinks-title {
  font-family: var(--kf-font-title);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #000;
}

.kf-backlinks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kf-backlink-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #eee;
  transition: border-color 0.15s;
}

.kf-backlink-item:hover {
  border-color: #999;
}

.kf-backlink-item .kf-backlink-arrow {
  font-size: 16px;
  color: #999;
  flex-shrink: 0;
}

.kf-backlink-item a {
  font-family: var(--kf-font-body);
  font-size: 13px;
  font-weight: 500;
}

/* Author Bio */
.kf-author-bio {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid #eee;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kf-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.kf-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kf-author-info h4 {
  font-family: var(--kf-font-title);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.kf-author-info p {
  font-family: var(--kf-font-body);
  margin: 0;
  font-size: 13px;
  color: var(--kf-text-light);
}

/* Related Posts */
.kf-related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #eee;
}

.kf-related-title {
  font-family: var(--kf-font-title);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  color: #000;
}

.kf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kf-related-card {
  background: transparent;
  border: none;
}

.kf-related-card-img {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.kf-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.kf-related-card-body {
  padding: 0;
}

.kf-related-card-body h4 {
  margin: 0;
  font-family: var(--kf-font-title);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.kf-related-card-body h4 a {
  color: #000;
}

.kf-related-card-body .kf-related-date {
  font-family: var(--kf-font-body);
  font-size: 11px;
  color: var(--kf-text-light);
  margin-top: 6px;
  display: block;
}

/* Social Share */
.kf-social-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.kf-share-label {
  font-family: var(--kf-font-body);
  font-size: 12px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.kf-share-buttons {
  display: flex;
  gap: 10px;
}

.kf-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--kf-font-body);
  transition: all 0.2s;
  text-decoration: none;
}

.kf-share-facebook {
  background: #1877f2;
  color: #fff !important;
  border: none;
}

.kf-share-facebook:hover {
  background: #166fe5;
  color: #fff !important;
  opacity: 0.9;
}

.kf-share-linkedin {
  background: #0a66c2;
  color: #fff !important;
  border: none;
}

.kf-share-linkedin:hover {
  background: #0959a8;
  color: #fff !important;
  opacity: 0.9;
}

.kf-share-copy {
  background: #222;
  color: #fff !important;
  border: none;
  font-size: 16px;
  line-height: 1;
}

.kf-share-copy:hover {
  background: #000;
  color: #fff !important;
}

/* ============================
   WIDGET
   ============================ */
.kf-widget-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kf-widget-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kf-widget-post-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
}

.kf-widget-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kf-widget-post-body {
  flex: 1;
  min-width: 0;
}

.kf-widget-post-title {
  margin: 0 0 4px;
  font-family: var(--kf-font-title);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.kf-widget-post-title a {
  color: #000;
}

.kf-widget-post-excerpt {
  margin: 0 0 6px;
  font-family: var(--kf-font-body);
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.kf-widget-post-btn {
  font-family: var(--kf-font-title);
  font-size: 11px;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
}

/* Comments */
.kf-comments-wrap {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #eee;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .kf-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .kf-grid-4,
  .kf-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .kf-blog-title {
    font-size: 28px;
  }

  .kf-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .kf-blog-archive {
    padding: 40px 16px 60px;
  }

  .kf-blog-grid {
    gap: 32px;
  }

  .kf-grid-4,
  .kf-grid-3,
  .kf-grid-2 {
    grid-template-columns: 1fr;
  }

  .kf-blog-single {
    padding: 24px 16px 60px;
  }

  .kf-blog-title {
    font-size: 24px;
  }

  .kf-blog-content {
    font-size: 17px;
  }

  .kf-blog-content h2 {
    font-size: 22px;
  }

  .kf-blog-content h3 {
    font-size: 19px;
  }

  .kf-blog-card-title {
    font-size: 18px;
  }

  .kf-related-card-img {
    aspect-ratio: 3 / 2;
  }

  .kf-related-grid {
    grid-template-columns: 1fr;
  }

  .kf-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .kf-social-share {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .kf-share-buttons {
    gap: 8px;
  }

  .kf-share-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 379px) {
  .kf-blog-title {
    font-size: 20px;
  }
}
