/**
 * Yazılım Yap - Modern Developer Design System
 * Inspired by GitHub, Stripe, Linear, Vercel & Microsoft Learn
 */

/* ==========================================================================
   1. Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Brand / Primary - Mature, solid engineering blue (not fluorescent/AI-like) */
  --yy-primary: #1d4ed8;
  --yy-primary-hover: #1e40af;
  --yy-primary-light: rgba(29, 78, 216, 0.08);
  --yy-primary-glow: rgba(29, 78, 216, 0.12);
  --yy-accent: #2563eb;

  /* Surfaces & Backgrounds (Light Mode - Warm Broken Off-White / Krem Kırık Beyaz) */
  --yy-bg: #f7f6f2;
  --yy-surface: #ffffff;
  --yy-surface-hover: #efeee8;
  --yy-surface-elevated: #ffffff;
  --yy-border: #e2e1da;
  --yy-border-subtle: #eae9e2;
  --yy-border-hover: #c8c7be;

  /* Typography Colors - Natural Charcoal & Slate */
  --yy-text-strong: #18181b;
  --yy-text: #374151;
  --yy-text-muted: #6b7280;
  --yy-text-subtle: #9ca3af;

  /* Status Colors */
  --yy-success: #10b981;
  --yy-success-bg: rgba(16, 185, 129, 0.08);
  --yy-success-border: rgba(16, 185, 129, 0.25);

  --yy-warning: #f59e0b;
  --yy-warning-bg: rgba(245, 158, 11, 0.08);
  --yy-warning-border: rgba(245, 158, 11, 0.25);

  --yy-danger: #ef4444;
  --yy-danger-bg: rgba(239, 68, 68, 0.08);
  --yy-danger-border: rgba(239, 68, 68, 0.25);

  --yy-info: #0284c7;
  --yy-info-bg: rgba(2, 132, 199, 0.08);
  --yy-info-border: rgba(2, 132, 199, 0.25);

  /* Code Blocks (VS Code / GitHub Dark) */
  --yy-code-bg: #0d1117;
  --yy-code-header-bg: #161b22;
  --yy-code-border: #30363d;
  --yy-code-text: #e6edf3;
  --yy-code-muted: #8b949e;

  /* Technology Badges */
  --yy-tech-dotnet: #512bd4;
  --yy-tech-csharp: #178600;
  --yy-tech-sql: #d97706;
  --yy-tech-js: #d97706;
  --yy-tech-react: #0284c7;
  --yy-tech-ai: #10b981;
  --yy-tech-arch: #6366f1;

  /* Typography */
  --yy-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --yy-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, ui-monospace, monospace;

  /* Layout & Spacing */
  --yy-radius-sm: 6px;
  --yy-radius-md: 10px;
  --yy-radius-lg: 14px;
  --yy-radius-xl: 18px;
  --yy-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --yy-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --yy-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --yy-shadow-glow: none;

  /* Kadence Global Palette Overrides */
  --global-palette1: var(--yy-primary);
  --global-palette2: var(--yy-primary-hover);
  --global-palette3: var(--yy-text-strong);
  --global-palette4: var(--yy-text);
  --global-palette5: var(--yy-text-muted);
  --global-palette6: var(--yy-text-subtle);
  --global-palette7: var(--yy-border);
  --global-palette8: var(--yy-bg);
  --global-palette9: var(--yy-surface);
}

/* ==========================================================================
   2. Global Typography & Core Overrides
   ========================================================================== */
body {
  font-family: var(--yy-font-sans);
  background-color: var(--yy-bg);
  color: var(--yy-text);
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--yy-font-sans);
  color: var(--yy-text-strong);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

code, kbd, samp, pre {
  font-family: var(--yy-font-mono) !important;
  font-feature-settings: "calt" 1;
}

/* Subtle selection styling */
::selection {
  background-color: var(--yy-primary-light);
  color: var(--yy-primary);
}

/* ==========================================================================
   3. Header Styling & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yy-border);
  transition: all 0.25s ease;
}

.site-header .main-header-row {
  height: 64px;
}

/* Brand Logo */
.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.yy-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--yy-primary);
  color: #ffffff;
  border-radius: var(--yy-radius-sm);
  font-family: var(--yy-font-mono);
  font-weight: 800;
  font-size: 15px;
}

.yy-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yy-text-strong);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.yy-brand-dot {
  color: var(--yy-primary);
}

/* Navigation Links */
.main-navigation .primary-menu-container > ul > li > a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yy-text);
  padding: 8px 14px;
  border-radius: var(--yy-radius-sm);
  transition: all 0.15s ease;
}

.main-navigation .primary-menu-container > ul > li > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: var(--yy-primary);
  background-color: var(--yy-primary-light);
}

/* Dropdown Menu */
.main-navigation ul ul {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  box-shadow: var(--yy-shadow-lg);
  padding: 6px;
  min-width: 200px;
}

.main-navigation ul ul li a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--yy-text);
  padding: 8px 12px;
  border-radius: var(--yy-radius-sm);
  transition: background 0.15s ease;
}

.main-navigation ul ul li a:hover {
  background: var(--yy-surface-hover);
  color: var(--yy-primary);
}

/* Quick Search Button in Header */
.yy-header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--yy-surface-hover);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  color: var(--yy-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yy-header-search-btn:hover {
  border-color: var(--yy-border-hover);
  color: var(--yy-text);
  background: var(--yy-surface);
}

.yy-kbd-shortcut {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.72rem;
  font-family: var(--yy-font-mono);
  background: var(--yy-border);
  color: var(--yy-text-muted);
  border-radius: 4px;
}

/* ==========================================================================
   4. Hero Section (Homepage)
   ========================================================================== */
.yy-hero {
  position: relative;
  padding: 64px 0 54px;
  background: var(--yy-bg);
  border-bottom: 1px solid var(--yy-border);
  text-align: center;
  overflow: visible;
}

.yy-hero-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.yy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yy-text-strong);
  margin-bottom: 24px;
  box-shadow: var(--yy-shadow-sm);
  letter-spacing: 0.02em;
}

.yy-hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
}

[data-theme="dark"] .yy-hero-badge-icon {
  color: #60a5fa;
}

.yy-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--yy-text-strong);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.yy-hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--yy-text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Hero Search Box */
.yy-hero-search-wrapper {
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 100;
}

.yy-hero-search-form {
  display: flex;
  align-items: center;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 6px 8px 6px 18px;
  box-shadow: var(--yy-shadow-md);
  transition: all 0.2s ease;
}

.yy-hero-search-form:focus-within {
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px var(--yy-primary-light);
}

.yy-hero-search-icon {
  color: var(--yy-text-subtle);
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.yy-hero-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 0.98rem;
  color: var(--yy-text-strong);
  background: transparent !important;
  padding: 8px 0;
}

.yy-hero-search-btn {
  background: var(--yy-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--yy-radius-md) !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: background 0.15s ease !important;
}

.yy-hero-search-btn:hover {
  background: var(--yy-primary-hover) !important;
}

/* Quick Topic Pills */
.yy-quick-topics {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.yy-quick-label {
  font-size: 0.82rem;
  color: var(--yy-text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.yy-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--yy-text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.yy-topic-pill:hover {
  border-color: var(--yy-primary);
  color: var(--yy-primary);
  background: var(--yy-primary-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   5. Technical Cards & Grid System
   ========================================================================== */
.yy-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yy-border);
}

.yy-section-title-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.yy-section-desc {
  font-size: 0.92rem;
  color: var(--yy-text-muted);
  margin: 0;
}

.yy-section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yy-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.yy-section-link:hover {
  gap: 8px;
}

/* Featured 3-Column Grid */
.yy-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .yy-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yy-featured-grid {
    grid-template-columns: 1fr;
  }
}

.yy-card {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--yy-shadow-sm);
  text-decoration: none;
  color: inherit;
}

.yy-card:hover {
  border-color: var(--yy-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--yy-shadow-md);
}

.yy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.yy-card-badges-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.yy-card-news .yy-level-badge,
.yy-card--news-active .yy-level-badge {
  display: none !important;
}

/* Category Badges & Tags */
.yy-cat-badge,
.yy-cat-badge *,
a.yy-cat-badge,
a.yy-cat-badge:hover,
a.yy-cat-badge:focus,
.yy-card .yy-cat-badge,
.yy-article-header .yy-cat-badge,
.entry-content .yy-cat-badge,
.post-tags a,
.entry-tags a,
.tags-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--yy-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.yy-cat-badge.dotnet {
  background: rgba(81, 43, 212, 0.1);
  color: #512bd4;
  border: 1px solid rgba(81, 43, 212, 0.2);
}

.yy-cat-badge.csharp {
  background: rgba(23, 134, 0, 0.1);
  color: #178600;
  border: 1px solid rgba(23, 134, 0, 0.2);
}

.yy-cat-badge.sql {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.yy-cat-badge.react {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.yy-cat-badge.ai {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.yy-cat-badge.arch {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.yy-cat-badge.news {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.25);
  font-weight: 600;
}

[data-theme="dark"] .yy-cat-badge.news {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
}

/* News Source Box */
.yy-news-source-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: var(--yy-surface);
  border: 1px dashed var(--yy-border);
  border-radius: var(--yy-radius-md, 8px);
  margin: 32px 0 24px;
  font-size: 0.88rem;
  color: var(--yy-text-muted);
}

.yy-news-source-label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yy-text-strong);
}

.yy-news-source-link {
  color: var(--yy-primary);
  text-decoration: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.yy-news-source-link:hover {
  text-decoration: underline !important;
  color: var(--yy-primary-hover, #2563eb);
}

.yy-read-time {
  font-size: 0.8rem;
  color: var(--yy-text-subtle);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yy-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--yy-text-strong);
  transition: color 0.15s ease;
}

.yy-card:hover .yy-card-title {
  color: var(--yy-primary);
}

.yy-card-excerpt {
  font-size: 0.92rem;
  color: var(--yy-text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.yy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--yy-border-subtle);
  font-size: 0.82rem;
  color: var(--yy-text-muted);
}

.yy-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.yy-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ==========================================================================
   6. Categories Grid (Tech Map)
   ========================================================================== */
.yy-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.yy-category-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.yy-category-card:hover {
  border-color: var(--yy-primary);
  background: var(--yy-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--yy-shadow-sm);
}

.yy-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--yy-radius-sm);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  color: var(--yy-primary);
  font-size: 20px;
  flex-shrink: 0;
}

.yy-category-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--yy-text-strong);
}

.yy-category-info p {
  font-size: 0.82rem;
  color: var(--yy-text-muted);
  margin: 0 0 6px;
  line-height: 1.4;
}

.yy-category-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--yy-primary);
}

/* ==========================================================================
   7. Homepage Main Content & Sticky Sidebar
   ========================================================================== */
.yy-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
  margin-bottom: 60px;
}

.yy-main-content {
  min-width: 0; /* Prevent grid breakout */
}

.yy-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yy-list-item {
  display: flex;
  flex-direction: column;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.yy-list-item:hover {
  border-color: var(--yy-border-hover);
  box-shadow: var(--yy-shadow-sm);
  transform: translateX(4px);
}

/* Sticky Sidebar */
.yy-sidebar-sticky {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yy-widget-box {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 22px;
}

.yy-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yy-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Popular Posts Widget List */
.yy-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yy-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yy-popular-rank {
  font-family: var(--yy-font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--yy-text-subtle);
  width: 22px;
  flex-shrink: 0;
}

.yy-popular-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
}

.yy-popular-content a {
  color: var(--yy-text-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-popular-content a:hover {
  color: var(--yy-primary);
}

/* Newsletter Widget */
.yy-newsletter-box {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
}

.yy-newsletter-box p {
  font-size: 0.88rem;
  color: var(--yy-text-muted);
  margin-bottom: 14px;
}

.yy-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yy-newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  background: var(--yy-surface);
  font-size: 0.88rem;
}

.yy-newsletter-btn {
  width: 100%;
  padding: 10px;
  background: var(--yy-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--yy-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yy-newsletter-btn:hover {
  background: var(--yy-primary-hover);
}

.yy-newsletter-btn .yy-spinner {
  animation: yy-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes yy-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.yy-sidebar-newsletter {
  margin-top: 24px;
}

/* ==========================================================================
   8. Developer Resources Section
   ========================================================================== */
.yy-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.yy-resource-card {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.yy-resource-card:hover {
  border-color: var(--yy-primary);
  transform: translateY(-2px);
  box-shadow: var(--yy-shadow-sm);
}

.yy-resource-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.yy-resource-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.yy-resource-card p {
  font-size: 0.86rem;
  color: var(--yy-text-muted);
  margin: 0 0 14px;
  flex: 1;
}

.yy-resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--yy-border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

.yy-resource-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--yy-text-subtle);
  font-family: var(--yy-font-mono);
  letter-spacing: 0.04em;
}

.yy-resource-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yy-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.yy-resource-card:hover .yy-resource-cta {
  transform: translateX(3px);
}

/* ==========================================================================
   9. Single Article (Makale Sayfası) Design
   ========================================================================== */
.yy-article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 48px;
  max-width: 1200px;
  margin: 32px auto 64px;
  padding: 0 20px;
  align-items: start;
}

.yy-article-content-wrapper {
  max-width: 820px;
  min-width: 0;
}

/* Breadcrumbs */
.yy-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--yy-text-muted);
  margin-bottom: 24px;
}

.yy-breadcrumbs a {
  color: var(--yy-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-breadcrumbs a:hover {
  color: var(--yy-primary);
}

.yy-breadcrumbs-sep {
  color: var(--yy-text-subtle);
  font-size: 0.8rem;
}

/* Article Header */
.yy-article-header {
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: none !important;
}

.yy-article-header .yy-cat-badge {
  margin-bottom: 14px;
}

.yy-article-title {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--yy-text-strong);
}

.yy-article-lede {
  font-size: 1.15rem;
  color: var(--yy-text-muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

/* Article Meta Bar */
.yy-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--yy-text-muted);
}

.yy-meta-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yy-meta-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--yy-border);
}

.yy-meta-author-name {
  font-weight: 600;
  color: var(--yy-text-strong);
  display: block;
}

.yy-meta-dates {
  font-size: 0.8rem;
  color: var(--yy-text-subtle);
}

.yy-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yy-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  color: var(--yy-text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-share-btn:hover {
  background: var(--yy-surface-hover);
  border-color: var(--yy-primary);
  color: var(--yy-primary);
}

.yy-share-container {
  position: relative;
  display: inline-flex;
}

.yy-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 195px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  box-shadow: var(--yy-shadow-lg);
  padding: 6px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yy-share-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.yy-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--yy-text);
  text-decoration: none !important;
  border: none;
  background: transparent;
  border-radius: var(--yy-radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.yy-share-item:hover {
  background: var(--yy-surface-hover);
  color: var(--yy-text-strong);
}

.yy-share-item svg {
  flex-shrink: 0;
  color: var(--yy-text-muted);
  transition: color 0.12s ease;
}

.yy-share-item:hover svg {
  color: var(--yy-primary);
}

/* Article Content Body */
.entry-content,
.yy-entry-content {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--yy-text);
}

.yy-entry-content h2 {
  font-size: 1.7rem;
  margin: 48px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--yy-border-subtle);
  scroll-margin-top: 80px;
}

.yy-entry-content h3 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  scroll-margin-top: 80px;
}

.yy-entry-content p {
  margin-bottom: 22px;
}

.yy-entry-content ul,
.yy-entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.yy-entry-content li {
  margin-bottom: 8px;
}

.yy-entry-content a {
  color: var(--yy-primary);
  text-decoration: underline;
  text-decoration-color: rgba(9, 105, 218, 0.3);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

.yy-entry-content a:hover {
  text-decoration-color: var(--yy-primary);
}

/* ==========================================================================
   10. Table of Contents (TOC)
   ========================================================================== */
.yy-toc-sticky-box {
  position: sticky;
  top: 84px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 22px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-shadow: var(--yy-shadow-sm);
}

.yy-toc-header {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yy-text-subtle);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--yy-border);
}

.yy-toc-item {
  margin: 0;
  position: relative;
}

.yy-toc-link {
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  color: var(--yy-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
  border-radius: 0 var(--yy-radius-sm) var(--yy-radius-sm) 0;
}

.yy-toc-link:hover {
  color: var(--yy-primary);
  background: var(--yy-surface-hover);
}

.yy-toc-link.is-active {
  color: var(--yy-primary) !important;
  font-weight: 600 !important;
  border-left-color: var(--yy-primary) !important;
  background: var(--yy-primary-light) !important;
}

/* Hierarchical Sublist (H3 headings - collapsed by default until H2 is active) */
.yy-toc-sublist {
  list-style: none;
  padding: 2px 0 2px 0;
  margin: 2px 0 4px 12px;
  border-left: 1.5px solid var(--yy-border);
  display: none;
}

/* Auto-reveal when H2 is active or when an H3 child is active */
.yy-toc-item.depth-2.is-active > .yy-toc-sublist,
.yy-toc-item.depth-2.has-active-child > .yy-toc-sublist {
  display: block !important;
  animation: yy-dropdown-in 0.2s ease;
}

.yy-toc-sublist .yy-toc-link {
  font-size: 0.8rem;
  padding: 4px 10px;
  color: var(--yy-text-subtle);
  margin-left: -1.5px;
}

.yy-toc-sublist .yy-toc-link.is-active {
  border-left-color: var(--yy-primary) !important;
  color: var(--yy-primary) !important;
  background: var(--yy-primary-light) !important;
}

/* Mobile Collapsible TOC */
.yy-mobile-toc {
  display: none;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  margin-bottom: 28px;
  overflow: hidden;
}

.yy-mobile-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--yy-surface-hover);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--yy-text-strong);
  cursor: pointer;
}

.yy-mobile-toc-content {
  padding: 14px 18px;
  border-top: 1px solid var(--yy-border);
}

/* ==========================================================================
   11. Code Blocks & Syntax Highlighting
   ========================================================================== */
.yy-code-container,
pre.wp-block-code {
  position: relative;
  background: var(--yy-code-bg) !important;
  border: 1px solid var(--yy-code-border);
  border-radius: var(--yy-radius-md);
  margin: 28px 0;
  overflow: hidden;
  box-shadow: var(--yy-shadow-md);
}

.yy-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--yy-code-header-bg);
  border-bottom: 1px solid var(--yy-code-border);
}

.yy-code-lang {
  font-family: var(--yy-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--yy-code-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yy-code-lang::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
}

.yy-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--yy-code-border);
  color: var(--yy-code-muted);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: var(--yy-font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.yy-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.yy-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--yy-success);
  color: #34d399;
}

pre.wp-block-code code,
.yy-code-container code {
  display: block;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--yy-code-text);
  tab-size: 4;
  -webkit-overflow-scrolling: touch;
}

/* Inline code styling */
:not(pre) > code {
  background: rgba(9, 105, 218, 0.08);
  color: #0969da;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
  font-weight: 500;
}

/* Prism Syntax Highlighting Theme (One Dark / VS Code Dark) */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #768390 !important;
  font-style: italic;
}

.token.punctuation {
  color: #adbac7 !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #6cb6ff !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #96d0ff !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #f47067 !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #ff7b72 !important;
  font-weight: 600;
}

.token.function,
.token.class-name {
  color: #d2a8ff !important;
}

.token.regex,
.token.important,
.token.variable {
  color: #ffa657 !important;
}

/* Single Article Sticky Sidebar */
.yy-article-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}

/* ==========================================================================
   12. Callout Boxes (Info, Tip, Warning, Danger)
   ========================================================================== */
.yy-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin: 28px 0;
  border-radius: var(--yy-radius-md);
  border-left: 4px solid;
  font-size: 0.96rem;
  line-height: 1.65;
}

.yy-callout-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.yy-callout-content {
  flex: 1;
}

.yy-callout-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.yy-callout-content p:last-child {
  margin-bottom: 0;
}

/* Callout Variants */
.yy-callout.info {
  background: var(--yy-info-bg);
  border-color: var(--yy-info);
  color: #0c4a6e;
}
.yy-callout.info .yy-callout-title {
  color: #0369a1;
}

.yy-callout.tip {
  background: var(--yy-success-bg);
  border-color: var(--yy-success);
  color: #064e3b;
}
.yy-callout.tip .yy-callout-title {
  color: #047857;
}

.yy-callout.warning {
  background: var(--yy-warning-bg);
  border-color: var(--yy-warning);
  color: #78350f;
}
.yy-callout.warning .yy-callout-title {
  color: #b45309;
}

.yy-callout.danger {
  background: var(--yy-danger-bg);
  border-color: var(--yy-danger);
  color: #7f1d1d;
}
.yy-callout.danger .yy-callout-title {
  color: #b91c1c;
}

/* ==========================================================================
   13. Author Box & Related Posts
   ========================================================================== */
.yy-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 24px;
  margin: 48px 0;
}

.yy-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yy-author-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.yy-author-details p {
  font-size: 0.9rem;
  color: var(--yy-text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.yy-related-section {
  margin: 48px 0;
  padding-top: 36px;
  border-top: 1px solid var(--yy-border);
}

.yy-related-section h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   14. Category Archive Page
   ========================================================================== */
.yy-archive-hero {
  padding: 44px 0 36px;
  background: var(--yy-surface);
  border-bottom: 1px solid var(--yy-border);
  margin-bottom: 40px;
}

.yy-archive-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.yy-archive-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.yy-archive-desc {
  font-size: 1.05rem;
  color: var(--yy-text-muted);
  max-width: 760px;
  margin: 0 0 20px;
}

.yy-level-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yy-level-pill {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--yy-text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-level-pill.active,
.yy-level-pill:hover {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
}

/* ==========================================================================
   15. Footer Styling
   ========================================================================== */
.yy-footer {
  background: #0d1117;
  color: #e6edf3;
  border-top: 1px solid #30363d;
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.yy-footer a {
  color: #8b949e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-footer a:hover {
  color: #ffffff;
}

.yy-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.yy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.yy-footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.yy-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yy-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #21262d;
  font-size: 0.82rem;
  color: #8b949e;
}

/* ==========================================================================
   16. Responsive Breakpoints & Multi-Device Polish
   ========================================================================== */
@media (max-width: 1024px) {
  .yy-layout-container {
    grid-template-columns: 1fr;
  }
  .yy-sidebar-sticky {
    position: static;
    margin-top: 40px;
  }
  .yy-article-layout {
    grid-template-columns: 1fr;
  }
  .yy-toc-sticky-box {
    display: none; /* In desktop sidebar */
  }
  .yy-mobile-toc {
    display: block; /* Show inline collapsible on tablet/mobile */
  }
  .yy-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .yy-hero {
    padding: 40px 0 36px;
  }
  .yy-hero-title {
    font-size: 1.85rem;
  }
  .yy-featured-grid {
    grid-template-columns: 1fr;
  }
  .yy-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .yy-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  pre.wp-block-code code,
  .yy-code-container code {
    font-size: 0.82rem;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .yy-card {
    padding: 18px;
  }
  .yy-category-grid {
    grid-template-columns: 1fr;
  }
  .yy-article-title {
    font-size: 1.75rem;
  }
  .yy-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   17. Featured Images & In-Article Media Architecture
   ========================================================================== */
/* Featured Cards Thumbnail */
.yy-card-thumb-wrap {
  width: calc(100% + 48px);
  margin: -24px -24px 18px -24px;
  border-top-left-radius: var(--yy-radius-lg);
  border-top-right-radius: var(--yy-radius-lg);
  overflow: hidden;
  background: var(--yy-code-bg);
  aspect-ratio: 16 / 9;
  position: relative;
}

.yy-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-card:hover .yy-card-thumb {
  transform: scale(1.04);
}

/* List Item with Thumbnail (Latest Feed) */
.yy-list-item.has-thumb {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.yy-list-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--yy-radius-md);
  overflow: hidden;
  background: var(--yy-code-bg);
  box-shadow: var(--yy-shadow-sm);
}

.yy-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.yy-list-item:hover .yy-list-thumb {
  transform: scale(1.04);
}

.yy-list-body {
  min-width: 0;
}

/* Placeholder for Featured Cards without Image */
.yy-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .yy-card-thumb-placeholder {
  background: linear-gradient(135deg, #161b22 0%, #090d13 100%);
  border-bottom: 1px solid var(--yy-border);
}

.yy-thumb-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.yy-card:hover .yy-thumb-placeholder-inner {
  transform: scale(1.08);
}

.yy-thumb-placeholder-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.yy-thumb-placeholder-watermark {
  font-family: var(--yy-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: lowercase;
}

@media (max-width: 768px) {
  .yy-list-item.has-thumb {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .yy-list-thumb-wrap {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
  .yy-card-thumb-wrap {
    width: calc(100% + 36px);
    margin: -18px -18px 14px -18px;
  }
}

/* Single Article Featured Hero Image Banner */
.yy-article-featured-image {
  margin: 0 0 36px 0;
  border-radius: var(--yy-radius-lg);
  overflow: hidden;
  border: 1px solid var(--yy-border);
  box-shadow: var(--yy-shadow-md);
  background: var(--yy-code-bg);
}

.yy-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* In-Article Figures & Diagrams */
.yy-article-figure,
figure.wp-block-image {
  margin: 36px 0;
}

.yy-article-figure img,
figure.wp-block-image img {
  width: 100%;
  border-radius: var(--yy-radius-md);
  border: 1px solid var(--yy-border);
  box-shadow: var(--yy-shadow-sm);
  display: block;
}

.yy-article-figure figcaption,
figure.wp-block-image figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--yy-text-muted);
  margin-top: 10px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   18. Dynamic Live Search (Instant Search Dropdown)
   ========================================================================== */
.yy-live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  max-height: 480px;
  overflow-y: auto;
  text-align: left;
  animation: yy-dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes yy-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yy-search-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--yy-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.yy-search-item:last-child {
  border-bottom: none;
}

.yy-search-item:hover,
.yy-search-item.is-selected {
  background: var(--yy-surface-hover);
}

.yy-search-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--yy-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--yy-code-bg);
  border: 1px solid var(--yy-border);
}

.yy-search-info {
  flex: 1;
  min-width: 0;
}

.yy-search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yy-search-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  margin: 0 0 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yy-search-excerpt {
  font-size: 0.82rem;
  color: var(--yy-text-muted);
  line-height: 1.45;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yy-search-footer-btn {
  display: block;
  padding: 12px 18px;
  background: var(--yy-surface-hover);
  border-top: 1px solid var(--yy-border);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yy-primary);
  text-decoration: none;
  transition: background 0.15s ease;
}

.yy-search-footer-btn:hover {
  background: var(--yy-primary-light);
}

.yy-search-empty {
  padding: 24px;
  text-align: center;
  color: var(--yy-text-muted);
  font-size: 0.92rem;
}

.yy-search-spinner {
  padding: 20px;
  text-align: center;
  color: var(--yy-text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   19. Dark Theme System (GitHub / Linear / Vercel Dark Mode Palette)
   ========================================================================== */
[data-theme="dark"] {
  --yy-bg: #0d1117;
  --yy-surface: #161b22;
  --yy-surface-hover: #1f242c;
  --yy-surface-elevated: #161b22;
  --yy-border: #30363d;
  --yy-border-subtle: #21262d;
  --yy-border-hover: #484f58;

  --yy-text-strong: #f0f6fc;
  --yy-text: #c9d1d9;
  --yy-text-muted: #8b949e;
  --yy-text-subtle: #6e7681;

  --yy-primary: #3b82f6;
  --yy-primary-hover: #60a5fa;
  --yy-primary-light: rgba(59, 130, 246, 0.1);

  --yy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --yy-shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
  --yy-shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.4);
  --yy-shadow-glow: none;

  --yy-info-bg: #0f2438;
  --yy-success-bg: #062618;
  --yy-warning-bg: #2d1c08;
  --yy-danger-bg: #2d0e0e;
}

/* Dark Theme Global Element Styling */
[data-theme="dark"],
[data-theme="dark"] body {
  background-color: var(--yy-bg);
  color: var(--yy-text);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .main-header-row {
  background-color: var(--yy-surface) !important;
  border-bottom: 1px solid var(--yy-border) !important;
}

[data-theme="dark"] .main-navigation .primary-menu-container > ul > li > a {
  color: var(--yy-text) !important;
}

[data-theme="dark"] .main-navigation .primary-menu-container > ul > li > a:hover {
  color: var(--yy-primary) !important;
}

[data-theme="dark"] .site-title a,
[data-theme="dark"] .yy-hero-title,
[data-theme="dark"] .yy-section-title-wrap h2,
[data-theme="dark"] .yy-article-title,
[data-theme="dark"] .yy-archive-title {
  color: var(--yy-text-strong);
}

[data-theme="dark"] .yy-live-search-dropdown {
  background: var(--yy-surface) !important;
  border-color: var(--yy-border) !important;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .yy-hero-search-form {
  background: var(--yy-surface);
  border-color: var(--yy-border);
}

[data-theme="dark"] .yy-hero-search-input {
  color: var(--yy-text-strong);
}

[data-theme="dark"] .yy-newsletter-input {
  background: var(--yy-bg);
  color: var(--yy-text-strong);
  border-color: var(--yy-border);
}

[data-theme="dark"] .yy-newsletter-box {
  background: var(--yy-surface);
  border-color: var(--yy-border);
}

[data-theme="dark"] .yy-archive-hero {
  background: var(--yy-surface);
  border-bottom-color: var(--yy-border);
}

[data-theme="dark"] .yy-level-pill {
  background: var(--yy-bg);
  border-color: var(--yy-border);
  color: var(--yy-text);
}

[data-theme="dark"] .yy-level-pill:hover,
[data-theme="dark"] .yy-level-pill.active {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
}

[data-theme="dark"] .yy-footer {
  background: #06090e;
  border-top-color: var(--yy-border);
}

/* ==========================================================================
   20. Theme Toggle Button Styling
   ========================================================================== */
.yy-theme-toggle-item {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 12px;
}

.yy-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--yy-radius-md);
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  color: var(--yy-text);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: var(--yy-shadow-sm);
}

.yy-theme-toggle-btn:hover {
  border-color: var(--yy-primary);
  color: var(--yy-primary);
  background: var(--yy-surface-hover);
  transform: translateY(-1px);
}

.yy-icon-sun {
  display: none;
}

.yy-icon-moon {
  display: inline-flex;
}

[data-theme="dark"] .yy-icon-sun {
  display: inline-flex;
  color: #f1e05a;
}

[data-theme="dark"] .yy-icon-moon {
  display: none;
}

/* ==========================================================================
   21. SVG Icon System & Utilities
   ========================================================================== */
.yy-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.yy-read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yy-read-time .yy-icon {
  color: var(--yy-text-muted);
}

.yy-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
}

.yy-category-icon svg {
  stroke: var(--yy-primary);
}

.yy-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yy-toc-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-toc-arrow.is-open {
  transform: rotate(180deg);
}

@keyframes yy-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.yy-spinner {
  animation: yy-spin 0.9s linear infinite;
  display: inline-block;
}

.yy-search-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yy-surface-hover);
  color: var(--yy-text-muted);
}

/* ==========================================================================
   22. Google AdSense & Ads Architecture (Zero CLS)
   ========================================================================== */
.yy-ad-slot-wrapper {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  contain: layout;
  width: 100%;
}

.yy-ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yy-text-subtle);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yy-ad-container {
  width: 100%;
  border-radius: var(--yy-radius-md);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Fixed min-heights to eliminate Cumulative Layout Shift (CLS) */
.yy-ad-in-feed .yy-ad-container {
  min-height: 120px;
}

.yy-ad-in-article .yy-ad-container {
  min-height: 250px;
  max-width: 680px;
  margin: 0 auto;
}

.yy-ad-in-article-bottom {
  margin: 44px 0 28px !important;
  border-top: 1px solid var(--yy-border);
  padding-top: 24px;
}

.yy-ad-sidebar .yy-ad-container {
  min-height: 250px;
}

.yy-ad-top-leaderboard .yy-ad-container {
  min-height: 90px;
}

/* AdSense Developer Simulator / Placeholder */
.yy-ad-placeholder {
  background: var(--yy-surface);
  border: 1px dashed var(--yy-border);
  border-radius: var(--yy-radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.yy-ad-placeholder:hover {
  border-color: var(--yy-primary);
  background: var(--yy-surface-hover);
}

.yy-ad-placeholder-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yy-ad-placeholder-icon {
  color: var(--yy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--yy-radius-sm);
  background: var(--yy-primary-light);
  flex-shrink: 0;
}

.yy-ad-placeholder-text {
  text-align: left;
}

.yy-ad-placeholder-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--yy-text-strong);
  margin-bottom: 2px;
}

.yy-ad-placeholder-text span {
  font-size: 0.76rem;
  color: var(--yy-text-muted);
}

/* Google Auto Ads Protection (Prevent injecting ads into code blocks, search and TOC) */
pre ins.adsbygoogle,
code ins.adsbygoogle,
.yy-code-block ins.adsbygoogle,
.yy-search-container ins.adsbygoogle,
.yy-search-dropdown ins.adsbygoogle,
.yy-toc-card ins.adsbygoogle,
.site-header ins.adsbygoogle,
.yy-card-thumb-wrap ins.adsbygoogle {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

/* Ensure Google Auto Ads placed elements have clean spacing and zero layout shift */
.google-auto-placed {
  margin: 32px auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  contain: layout !important;
}

/* ==========================================================================
   23. Sub-Menu (Dropdown) Navigation Architecture
   ========================================================================== */
.main-navigation ul.menu li {
  position: relative;
}

.main-navigation ul.menu li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 10000;
  display: none !important;
}

/* Ensure right-most sub-menus open inwards to prevent viewport overflow (e.g. Kaynaklar) */
.main-navigation ul.menu > li:last-child ul.sub-menu,
.main-navigation ul.menu > li:nth-last-child(2) ul.sub-menu {
  left: auto !important;
  right: 0 !important;
}

.main-navigation ul.menu li:hover > ul.sub-menu,
.main-navigation ul.menu li.menu-item--toggled-on > ul.sub-menu,
.main-navigation ul.menu li:focus-within > ul.sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: yy-dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-navigation ul.menu li ul.sub-menu li {
  width: 100%;
  margin: 0;
}

.main-navigation ul.menu li ul.sub-menu li a {
  display: flex !important;
  align-items: center;
  padding: 9px 18px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--yy-text) !important;
  background: transparent !important;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.main-navigation ul.menu li ul.sub-menu li a:hover {
  background: var(--yy-surface-hover) !important;
  color: var(--yy-primary) !important;
  padding-left: 22px !important;
}

[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu {
  background: var(--yy-surface);
  border-color: var(--yy-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li a {
  color: var(--yy-text) !important;
  background: transparent !important;
}

[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li a:hover {
  background: var(--yy-surface-hover) !important;
  color: var(--yy-primary) !important;
}

/* ==========================================================================
   Active Menu Items High Contrast & Clarity (Fix identical text/bg issue)
   ========================================================================== */
.header-navigation .header-menu-container ul li.menu-item.current-menu-item > a,
.header-navigation .header-menu-container ul li.menu-item.current-menu-ancestor > a,
.header-navigation .header-menu-container ul li.menu-item.current_page_item > a,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current-menu-ancestor > a {
  color: var(--yy-primary) !important;
  background: transparent !important;
  font-weight: 600 !important;
}

/* Sub-menu Active Item (High contrast and clear highlight) */
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a,
.main-navigation ul.menu li ul.sub-menu li.current-menu-item > a {
  background: rgba(56, 189, 248, 0.14) !important;
  color: var(--yy-primary) !important;
  border-left: 3px solid var(--yy-primary) !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.current-menu-item > a {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
  border-left: 3px solid #38bdf8 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a,
[data-theme="light"] .main-navigation ul.menu li ul.sub-menu li.current-menu-item > a {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-left-color: #0284c7 !important;
}

/* ==========================================================================
   24. Hero Typewriter Dynamic Text Architecture
   ========================================================================== */
.yy-hero-title {
  min-height: 2.3em; /* Preserve height to prevent Cumulative Layout Shift (CLS) */
  line-height: 1.25;
}

.yy-typewriter-wrap {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  max-width: 100%;
}

.yy-typewriter {
  color: #60a5fa;
  font-weight: 800;
  display: inline;
}

[data-theme="light"] .yy-typewriter {
  color: #1d4ed8;
}

.yy-typewriter-cursor {
  display: inline-block;
  color: #60a5fa;
  font-weight: 300;
  margin-left: 2px;
  animation: yyCursorBlink 0.9s infinite;
  user-select: none;
}

[data-theme="light"] .yy-typewriter-cursor {
  color: #1d4ed8;
}

@keyframes yyCursorBlink {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   25. Developer Comments & Collapsible Top Form Architecture
   ========================================================================== */
.yy-comments-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--yy-border);
}

.yy-comments-header {
  margin-bottom: 24px;
}

.yy-comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yy-comments-icon {
  color: var(--yy-primary);
  display: flex;
  align-items: center;
}

.yy-comments-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yy-comments-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  color: var(--yy-text-muted);
}

/* --- Collapsed Trigger Bar --- */
.yy-comment-box {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  margin-bottom: 36px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.yy-comment-box:focus-within {
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.yy-comment-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--yy-surface);
  transition: background 0.15s ease;
}

.yy-comment-trigger:hover {
  background: var(--yy-surface-hover);
}

.yy-comment-user-avatar img,
.yy-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yy-surface-hover);
  color: var(--yy-text-muted);
  border: 1px solid var(--yy-border);
}

.yy-comment-fake-input {
  flex: 1;
  font-size: 0.92rem;
  color: var(--yy-text-muted);
  user-select: none;
}

.yy-comment-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--yy-primary);
  border: none;
  border-radius: var(--yy-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-comment-trigger-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- Full Expanded Form --- */
.yy-comment-form-body {
  display: none;
  padding: 20px 24px 24px 24px;
  border-top: 1px solid var(--yy-border);
  background: var(--yy-surface);
}

.yy-comment-box.is-expanded .yy-comment-trigger {
  display: none;
}

.yy-comment-box.is-expanded .yy-comment-form-body {
  display: block;
  animation: yy-dropdown-in 0.2s ease;
}

.yy-comment-box .comment-respond {
  margin: 0;
  padding: 0;
}

.yy-form-group {
  margin-bottom: 16px;
}

.yy-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--yy-text-strong);
  margin-bottom: 6px;
}

.yy-form-comment textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--yy-text);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.yy-form-comment textarea:focus {
  outline: none;
  border-color: var(--yy-primary);
}

.yy-comment-form-body .comment-form-author,
.yy-comment-form-body .comment-form-email,
.yy-comment-form-body .comment-form-url {
  display: block;
}

.yy-comment-form-body input[type="text"],
.yy-comment-form-body input[type="email"],
.yy-comment-form-body input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--yy-text);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  box-sizing: border-box;
}

.yy-comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.yy-btn-cancel-comment {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--yy-text-muted);
  background: transparent;
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-btn-cancel-comment:hover {
  background: var(--yy-surface-hover);
  color: var(--yy-text-strong);
}

.yy-btn-submit-comment {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--yy-primary) !important;
  border: none !important;
  border-radius: var(--yy-radius-sm) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-btn-submit-comment:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- Comments List Styling --- */
.yy-comments-list-wrap {
  margin-top: 24px;
}

.yy-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yy-comment-item {
  margin-bottom: 24px;
}

.yy-comment-body {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  padding: 18px 20px;
  transition: border-color 0.15s ease;
}

.yy-comment-body:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.yy-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.yy-comment-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.yy-comment-author-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.yy-comment-author-name a {
  color: inherit;
  text-decoration: none;
}

.yy-comment-badge-author {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--yy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yy-comment-date {
  font-size: 0.78rem;
  color: var(--yy-text-muted);
}

.yy-comment-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--yy-text);
  margin-bottom: 12px;
}

.yy-comment-content p:last-child {
  margin-bottom: 0;
}

.yy-comment-actions {
  display: flex;
  justify-content: flex-end;
}

.yy-comment-actions .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yy-text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--yy-radius-sm);
  background: var(--yy-surface-hover);
  transition: all 0.15s ease;
}

.yy-comment-actions .comment-reply-link:hover {
  color: var(--yy-primary);
  background: rgba(56, 189, 248, 0.12);
}

/* Threaded replies indentation */
.yy-comment-list .children {
  list-style: none;
  padding-left: 28px;
  margin-top: 14px;
  border-left: 2px solid var(--yy-border);
}

/* Empty State */
.yy-no-comments {
  text-align: center;
  padding: 40px 20px;
  background: var(--yy-surface);
  border: 1px dashed var(--yy-border);
  border-radius: var(--yy-radius-md);
}

.yy-no-comments-icon {
  color: var(--yy-text-muted);
  margin-bottom: 12px;
}

.yy-no-comments h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--yy-text-strong);
}

.yy-no-comments p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--yy-text-muted);
}

/* ==========================================================================
   26. Menu Customization Tools (Color, Underline, Featured Glow)
   ========================================================================== */
/* Color Overrides */
.header-navigation li.yy-menu-color-cyan > a,
.main-navigation li.yy-menu-color-cyan > a,
.header-navigation .header-menu-container ul li.yy-menu-color-cyan > a,
.header-navigation .header-menu-container ul ul li.yy-menu-color-cyan > a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-cyan a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-cyan.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-cyan > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-cyan.current-menu-item > a {
  color: #38bdf8 !important;
}
.header-navigation li.yy-menu-color-cyan > a:hover,
.main-navigation li.yy-menu-color-cyan > a:hover,
.header-navigation .header-menu-container ul li.yy-menu-color-cyan > a:hover,
.header-navigation .header-menu-container ul ul li.yy-menu-color-cyan > a:hover {
  color: #0284c7 !important;
}
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-cyan a:hover,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-cyan a:hover {
  color: #7dd3fc !important;
}

.header-navigation li.yy-menu-color-emerald > a,
.main-navigation li.yy-menu-color-emerald > a,
.header-navigation .header-menu-container ul li.yy-menu-color-emerald > a,
.header-navigation .header-menu-container ul ul li.yy-menu-color-emerald > a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-emerald a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-emerald.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-emerald > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-emerald.current-menu-item > a {
  color: #10b981 !important;
}
.header-navigation li.yy-menu-color-emerald > a:hover,
.main-navigation li.yy-menu-color-emerald > a:hover,
.header-navigation .header-menu-container ul li.yy-menu-color-emerald > a:hover,
.header-navigation .header-menu-container ul ul li.yy-menu-color-emerald > a:hover {
  color: #059669 !important;
}
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-emerald a:hover,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-emerald a:hover {
  color: #34d399 !important;
}

.header-navigation li.yy-menu-color-amber > a,
.main-navigation li.yy-menu-color-amber > a,
.header-navigation .header-menu-container ul li.yy-menu-color-amber > a,
.header-navigation .header-menu-container ul ul li.yy-menu-color-amber > a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-amber a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-amber.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-amber > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-amber.current-menu-item > a {
  color: #f59e0b !important;
}
.header-navigation li.yy-menu-color-amber > a:hover,
.main-navigation li.yy-menu-color-amber > a:hover,
.header-navigation .header-menu-container ul li.yy-menu-color-amber > a:hover,
.header-navigation .header-menu-container ul ul li.yy-menu-color-amber > a:hover {
  color: #d97706 !important;
}
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-amber a:hover,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-amber a:hover {
  color: #fbbf24 !important;
}

.header-navigation li.yy-menu-color-purple > a,
.main-navigation li.yy-menu-color-purple > a,
.header-navigation .header-menu-container ul li.yy-menu-color-purple > a,
.header-navigation .header-menu-container ul ul li.yy-menu-color-purple > a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-purple a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-purple.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-purple > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-purple.current-menu-item > a {
  color: #a855f7 !important;
}
.header-navigation li.yy-menu-color-purple > a:hover,
.main-navigation li.yy-menu-color-purple > a:hover,
.header-navigation .header-menu-container ul li.yy-menu-color-purple > a:hover,
.header-navigation .header-menu-container ul ul li.yy-menu-color-purple > a:hover {
  color: #7e22ce !important;
}
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-purple a:hover,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-purple a:hover {
  color: #c084fc !important;
}

.header-navigation li.yy-menu-color-rose > a,
.main-navigation li.yy-menu-color-rose > a,
.header-navigation .header-menu-container ul li.yy-menu-color-rose > a,
.header-navigation .header-menu-container ul ul li.yy-menu-color-rose > a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-rose a,
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-rose.current-menu-item > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-rose > a,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-rose.current-menu-item > a {
  color: #f43f5e !important;
}
.header-navigation li.yy-menu-color-rose > a:hover,
.main-navigation li.yy-menu-color-rose > a:hover,
.header-navigation .header-menu-container ul li.yy-menu-color-rose > a:hover,
.header-navigation .header-menu-container ul ul li.yy-menu-color-rose > a:hover {
  color: #be123c !important;
}
[data-theme="dark"] .main-navigation ul.menu li.yy-menu-color-rose a:hover,
[data-theme="dark"] .main-navigation ul.menu li ul.sub-menu li.yy-menu-color-rose a:hover {
  color: #fb7185 !important;
}

/* Underline Style */
.header-navigation .yy-menu-underline > a,
.main-navigation .yy-menu-underline > a {
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  text-decoration-thickness: 2px !important;
}

/* Featured Highlight Pill (Öne Çıkan Menü Elemanı) */
.header-navigation ul.menu > li.yy-menu-glow > a,
.main-navigation ul.menu > li.yy-menu-glow > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  background: var(--yy-primary-light) !important;
  border: 1px solid rgba(37, 99, 235, 0.3) !important;
  color: var(--yy-primary) !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.header-navigation ul.menu > li.yy-menu-glow > a:hover,
.main-navigation ul.menu > li.yy-menu-glow > a:hover {
  background: var(--yy-primary) !important;
  border-color: var(--yy-primary) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .header-navigation ul.menu > li.yy-menu-glow > a,
[data-theme="dark"] .main-navigation ul.menu > li.yy-menu-glow > a {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #60a5fa !important;
}
[data-theme="dark"] .header-navigation ul.menu > li.yy-menu-glow > a:hover,
[data-theme="dark"] .main-navigation ul.menu > li.yy-menu-glow > a:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Sub-menu featured items */
.header-navigation ul.sub-menu > li.yy-menu-glow > a,
.main-navigation ul.sub-menu > li.yy-menu-glow > a {
  border-left: 3px solid var(--yy-primary) !important;
  background: var(--yy-primary-light) !important;
}

/* ==========================================================================
   21. E-E-A-T Yazar Uzmanlık Kartı (Author Box) & AI Takeaways
   ========================================================================== */

/* AI / LLM Key Takeaways (TL;DR) Box */
.yy-ai-takeaways {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-left: 4px solid var(--yy-primary);
  border-radius: var(--yy-radius-md, 10px);
  padding: 20px 24px;
  margin: 28px 0 36px;
  box-shadow: var(--yy-shadow-sm);
  transition: border-color 0.2s ease;
}

.yy-ai-takeaways:hover {
  border-color: var(--yy-border-hover);
  border-left-color: var(--yy-primary);
}

.yy-ai-takeaways-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.yy-ai-takeaways-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yy-primary);
}

.yy-ai-takeaways-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  letter-spacing: -0.01em;
}

.yy-ai-takeaways-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--yy-font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.yy-ai-takeaways-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--yy-text);
}

/* E-E-A-T Author Box */
.yy-author-box {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg, 12px);
  padding: 32px;
  margin: 48px 0;
  box-shadow: var(--yy-shadow-sm);
  transition: all 0.2s ease;
}

.yy-author-box:hover {
  border-color: var(--yy-border-hover);
  box-shadow: var(--yy-shadow-md);
}

.yy-author-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.yy-author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.yy-author-avatar-link {
  display: block;
}

.yy-author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yy-border);
  background: var(--yy-surface-hover);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.yy-author-avatar-link:hover .yy-author-avatar {
  transform: scale(1.04);
  border-color: var(--yy-primary);
}

.yy-author-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yy-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yy-surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.yy-author-content {
  flex: 1;
  min-width: 0;
}

.yy-author-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.yy-author-meta-left {
  flex: 1;
  min-width: 200px;
}

.yy-author-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yy-primary);
  margin-bottom: 4px;
  font-family: var(--yy-font-mono, monospace);
}

.yy-author-name {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.yy-author-name a {
  color: var(--yy-text-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-author-name a:hover {
  color: var(--yy-primary);
}

.yy-author-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--yy-text-muted);
  font-family: var(--yy-font-mono, monospace);
}

.yy-author-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yy-author-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--yy-radius-sm, 6px);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  color: var(--yy-text-muted);
  transition: all 0.18s ease;
  text-decoration: none !important;
}

.yy-author-social-btn:hover {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.yy-author-bio {
  margin: 14px 0 16px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--yy-text);
}

.yy-author-bio p {
  margin: 0;
}

.yy-author-expertise {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--yy-border);
}

.yy-author-expertise-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yy-text-muted);
}

.yy-author-expertise-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.yy-author-skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-family: var(--yy-font-mono, monospace);
  font-weight: 500;
  border-radius: var(--yy-radius-sm, 6px);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  color: var(--yy-text-strong);
  transition: border-color 0.15s ease;
}

.yy-author-skill-pill:hover {
  border-color: var(--yy-primary);
  color: var(--yy-primary);
}

@media (max-width: 640px) {
  .yy-author-box {
    padding: 24px 18px;
  }
  .yy-author-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .yy-author-header {
    flex-direction: column;
    align-items: center;
  }
  .yy-author-socials {
    justify-content: center;
  }
  .yy-author-expertise {
    justify-content: center;
  }
}

/* ==========================================================================
   22. Geliştirici Blokları: Terminal, Code File & Pros/Cons
   ========================================================================== */

/* 1. Terminal Window */
.yy-terminal-window {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--yy-radius-md, 10px);
  margin: 28px 0;
  overflow: hidden;
  box-shadow: var(--yy-shadow-md);
  font-family: var(--yy-font-mono, monospace);
}

.yy-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  padding: 10px 16px;
  border-bottom: 1px solid #30363d;
  user-select: none;
}

.yy-terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.yy-terminal-dots .yy-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.yy-dot-red { background: #ff5f56; }
.yy-dot-yellow { background: #ffbd2e; }
.yy-dot-green { background: #27c93f; }

.yy-terminal-title {
  font-size: 0.8rem;
  color: #8b949e;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.yy-terminal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #c9d1d9;
  font-size: 0.74rem;
  font-family: var(--yy-font-mono, monospace);
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-terminal-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.yy-terminal-body {
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.6;
  overflow-x: auto;
}

.yy-terminal-prompt {
  color: #7ee787;
  font-weight: 700;
  user-select: none;
}

.yy-terminal-cmd {
  color: #e6edf3;
  font-family: inherit;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

/* 2. Code File Window */
.yy-code-file-window {
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md, 10px);
  margin: 32px 0;
  overflow: hidden;
  background: var(--yy-surface);
  box-shadow: var(--yy-shadow-sm);
}

.yy-code-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--yy-bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--yy-border);
  font-family: var(--yy-font-mono, monospace);
  flex-wrap: wrap;
  gap: 10px;
}

.yy-code-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yy-code-file-icon {
  display: inline-flex;
  align-items: center;
  color: var(--yy-primary);
}

.yy-code-file-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--yy-text-strong);
}

.yy-code-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yy-code-file-lang {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.yy-code-file-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-family: var(--yy-font-mono, monospace);
  color: var(--yy-text-muted);
  padding: 3px 8px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yy-code-file-copy-btn:hover {
  background: var(--yy-primary);
  border-color: var(--yy-primary);
  color: #ffffff;
}

.yy-code-file-body {
  background: #0d1117;
  padding: 0;
}

.yy-code-file-body pre {
  margin: 0 !important;
  padding: 20px !important;
  border: none !important;
  background: transparent !important;
  overflow-x: auto;
}

.yy-code-file-body code {
  font-family: var(--yy-font-mono, monospace) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  color: #e6edf3 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* 3. Pros / Cons Comparison Card */
.yy-pros-cons-card {
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg, 12px);
  padding: 28px;
  margin: 36px 0;
  background: var(--yy-surface);
  box-shadow: var(--yy-shadow-sm);
}

.yy-pros-cons-main-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--yy-border);
}

.yy-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.yy-pros-col,
.yy-cons-col {
  padding: 20px;
  border-radius: var(--yy-radius-md, 10px);
}

.yy-pros-col {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.yy-pros-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.yy-pros-icon {
  color: #10b981;
  display: inline-flex;
}

.yy-pros-header h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #065f46;
}

[data-theme="dark"] .yy-pros-header h4 {
  color: #34d399;
}

.yy-cons-col {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.yy-cons-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.yy-cons-icon {
  color: #ef4444;
  display: inline-flex;
}

.yy-cons-header h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #991b1b;
}

[data-theme="dark"] .yy-cons-header h4 {
  color: #f87171;
}

.yy-pros-list,
.yy-cons-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.yy-pros-list li,
.yy-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--yy-text);
  margin-bottom: 10px;
}

.yy-pros-list li:last-child,
.yy-cons-list li:last-child {
  margin-bottom: 0;
}

.yy-list-bullet {
  flex-shrink: 0;
  margin-top: 4px;
  display: inline-flex;
}

.yy-bullet-pro { color: #10b981; }
.yy-bullet-con { color: #ef4444; }

@media (max-width: 768px) {
  .yy-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   26. Editorial Polish: Progress Bar, Back-to-Top, Accessibility & Layout
   ========================================================================== */

/* Reading Progress Bar (Linear / Editorial Style) */
.yy-progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  z-index: 99999;
  pointer-events: none;
  background: transparent;
}

.yy-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--yy-primary);
  transition: width 0.08s ease-out;
}

/* Floating Back-to-Top Button */
.yy-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  color: var(--yy-text-muted);
  box-shadow: var(--yy-shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.yy-back-to-top:hover {
  background: var(--yy-surface-hover);
  color: var(--yy-primary);
  border-color: var(--yy-primary);
  box-shadow: var(--yy-shadow-md);
}

.yy-back-to-top:focus-visible {
  outline: 2px solid var(--yy-primary);
  outline-offset: 2px;
}

/* Skip-to-content accessibility link (WCAG 2.1) */
.yy-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--yy-primary);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--yy-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  z-index: 100000;
  box-shadow: var(--yy-shadow-lg);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-skip-link:focus {
  top: 16px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Archive & Search Page Layout Utilities */
.yy-archive-container {
  max-width: 1200px;
  margin: 40px auto 64px;
  padding: 0 20px;
}

.yy-archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.yy-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 0;
}

.yy-pagination-wrap {
  margin-top: 48px;
  text-align: center;
}

.yy-empty-box {
  text-align: center;
  padding: 48px 20px;
}

.yy-empty-btn {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none !important;
}

.yy-search-page-search-wrapper {
  margin: 20px 0 0;
  max-width: 500px;
}

/* Level Filters as Accessible Interactive Pills */
button.yy-level-pill {
  border: 1px solid var(--yy-border);
  background: var(--yy-surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--yy-text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

button.yy-level-pill:hover,
button.yy-level-pill.active {
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  border-color: var(--yy-primary);
}

button.yy-level-pill:focus-visible {
  outline: 2px solid var(--yy-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   27. Developer Footer Component
   ========================================================================== */
.yy-footer {
  background: #090d16;
  color: #8b949e;
  border-top: 1px solid #1c2333;
  padding: 64px 0 32px;
  font-size: 0.88rem;
  margin-top: 80px;
}

.yy-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.yy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.yy-footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}

.yy-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.yy-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.15s ease;
}

.yy-footer-links a:hover {
  color: #38bdf8;
}

.yy-footer-brand-wrap {
  margin-bottom: 16px;
}

.yy-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.yy-footer-brand-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.yy-footer-desc {
  color: #8b949e;
  line-height: 1.65;
  font-size: 0.86rem;
  max-width: 320px;
  margin: 0;
}

.yy-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #1c2333;
  font-size: 0.8rem;
  color: #64748b;
}

.yy-footer-tagline {
  display: flex;
  gap: 20px;
  color: #64748b;
}

@media (max-width: 900px) {
  .yy-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .yy-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .yy-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   28. Clean Utilities: Front-Page & 404 Layouts
   ========================================================================== */
.yy-front-container {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px;
}

.yy-list-card-title {
  font-size: 1.35rem;
}

.yy-list-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-list-card-title a:hover {
  color: var(--yy-primary);
}

.yy-empty-feed {
  background: var(--yy-surface);
  border: 1px dashed var(--yy-border);
  border-radius: var(--yy-radius-md);
  padding: 36px 24px;
  text-align: center;
}

.yy-empty-feed-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
  font-family: var(--yy-font-mono);
  color: var(--yy-text-muted);
}

.yy-empty-feed-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--yy-text-strong);
}

.yy-empty-feed-desc {
  font-size: 0.88rem;
  color: var(--yy-text-muted);
  margin: 0;
}

/* 404 Not Found Page */
.yy-404-container {
  max-width: 900px;
  margin: 64px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.yy-404-box {
  padding: 48px 24px;
  border-radius: var(--yy-radius-xl);
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  box-shadow: var(--yy-shadow-sm);
}

.yy-404-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  margin-bottom: 24px;
}

.yy-404-code {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  font-family: var(--yy-font-mono);
  color: var(--yy-text-strong);
  margin: 0 0 12px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.yy-404-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  margin: 0 0 16px;
}

.yy-404-desc {
  color: var(--yy-text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.yy-404-search-wrapper {
  max-width: 480px;
  margin: 0 auto 36px;
}

.yy-404-nav-section {
  border-top: 1px solid var(--yy-border);
  padding-top: 24px;
}

.yy-404-nav-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--yy-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.yy-404-quick-topics {
  justify-content: center;
  gap: 8px;
}

.yy-404-home-wrap {
  margin-top: 28px;
}

.yy-404-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  padding: 10px 24px;
}

/* ==========================================================================
   29. High-Craft UI Polish: Social Proof, Hero Card, Reactions & Mobile Dock
   ========================================================================== */

/* 4.2 Hero Social Proof / Authority Indicators */
.yy-hero-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 8px 20px;
  border: 1px solid var(--yy-border);
  border-radius: 100px;
  background: var(--yy-surface);
  box-shadow: var(--yy-shadow-sm);
  font-size: 0.8rem;
  color: var(--yy-text-muted);
}

.yy-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yy-proof-value {
  font-family: var(--yy-font-mono);
  font-weight: 700;
  color: var(--yy-text-strong);
  font-size: 0.82rem;
}

.yy-proof-label {
  color: var(--yy-text-muted);
  font-size: 0.78rem;
}

.yy-proof-dot {
  color: var(--yy-border);
  font-size: 0.9rem;
}

/* 4.3 Featured Guides - Asymmetric Hero Card Layout */
@media (min-width: 901px) {
  .yy-featured-grid--hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
  }

  .yy-featured-grid--hero .yy-card--hero {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }

  .yy-featured-grid--hero .yy-card--hero .yy-card-thumb-wrap {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .yy-featured-grid--hero .yy-card--hero .yy-card-title {
    font-size: 1.45rem;
    line-height: 1.35;
    margin-top: 6px;
  }

  .yy-featured-grid--hero .yy-card--hero .yy-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .yy-featured-grid--hero .yy-card--secondary {
    padding: 20px;
  }

  .yy-featured-grid--hero .yy-card--secondary .yy-card-thumb-wrap {
    display: none; /* Secondary cards in hero layout are compact text-led */
  }

  .yy-featured-grid--hero .yy-card--secondary .yy-card-title {
    font-size: 1.15rem;
  }
}

/* 4.4 Next Read CTA Banner (Linear Editorial Style) */
.yy-next-read-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-left: 4px solid var(--yy-primary);
  border-radius: var(--yy-radius-md);
  padding: 24px 28px;
  margin: 40px 0;
  box-shadow: var(--yy-shadow-sm);
  transition: all 0.2s ease;
}

.yy-next-read-banner:hover {
  border-color: var(--yy-primary);
  box-shadow: var(--yy-shadow-md);
}

.yy-next-read-content {
  flex: 1;
  min-width: 0;
}

.yy-next-read-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.yy-next-read-badge {
  font-family: var(--yy-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yy-primary);
  letter-spacing: 0.06em;
}

.yy-next-read-cat {
  font-size: 0.78rem;
  color: var(--yy-text-subtle);
}

.yy-next-read-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.yy-next-read-title a {
  color: var(--yy-text-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}

.yy-next-read-title a:hover {
  color: var(--yy-primary);
}

.yy-next-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--yy-primary);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--yy-radius-sm);
  text-decoration: none !important;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.yy-next-read-btn:hover {
  background: var(--yy-primary-hover);
  transform: translateX(3px);
}

@media (max-width: 680px) {
  .yy-next-read-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
}

/* 4.5 Article Developer Feedback & Reaction System */
.yy-reaction-box {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  padding: 28px 24px;
  margin: 40px 0;
  text-align: center;
}

.yy-reaction-header {
  margin-bottom: 20px;
}

.yy-reaction-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yy-text-strong);
  margin: 0 0 6px;
}

.yy-reaction-subtitle {
  font-size: 0.86rem;
  color: var(--yy-text-muted);
}

.yy-reaction-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.yy-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-sm);
  cursor: pointer;
  font-family: var(--yy-font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--yy-text);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-reaction-btn:hover {
  border-color: var(--yy-primary);
  background: var(--yy-surface-hover);
  transform: translateY(-1px);
}

.yy-reaction-btn.is-active {
  background: var(--yy-primary-light);
  border-color: var(--yy-primary);
  color: var(--yy-primary);
  font-weight: 600;
}

.yy-reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  font-family: var(--yy-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--yy-border-subtle);
  color: var(--yy-text-muted);
}

.yy-reaction-btn.is-active .yy-reaction-count {
  background: var(--yy-primary);
  color: #ffffff;
}

.yy-reaction-thanks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: var(--yy-radius-sm);
  background: var(--yy-success-bg);
  border: 1px solid var(--yy-success-border);
  color: var(--yy-success);
  font-size: 0.84rem;
  font-weight: 600;
}

/* 4.6 Live Search Skeleton Loading Shimmer */
.yy-search-skeleton-wrap {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yy-search-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yy-skeleton-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--yy-radius-sm);
  background: linear-gradient(90deg, var(--yy-border-subtle) 25%, var(--yy-surface-hover) 50%, var(--yy-border-subtle) 75%);
  background-size: 200% 100%;
  animation: yy-shimmer 1.4s infinite;
  flex-shrink: 0;
}

.yy-skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yy-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--yy-border-subtle) 25%, var(--yy-surface-hover) 50%, var(--yy-border-subtle) 75%);
  background-size: 200% 100%;
  animation: yy-shimmer 1.4s infinite;
}

.yy-skeleton-line.short {
  width: 45%;
}

.yy-skeleton-line.medium {
  width: 80%;
}

@keyframes yy-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 4.7 Load More Button & Fade In */
.yy-load-more-wrap {
  margin-top: 36px;
  text-align: center;
}

.yy-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-md);
  color: var(--yy-text-strong);
  font-family: var(--yy-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--yy-shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-load-more-btn:hover {
  background: var(--yy-surface-hover);
  border-color: var(--yy-primary);
  color: var(--yy-primary);
  box-shadow: var(--yy-shadow-md);
  transform: translateY(-1px);
}

.yy-load-more-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.yy-fade-in {
  animation: yy-fadeIn 0.35s ease-out forwards;
}

@keyframes yy-fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4.8 Minimal Mobile Bottom Navigation Dock */
.yy-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Offset for dock */
  }

  .yy-back-to-top {
    bottom: 84px !important; /* Avoid dock collision */
  }

  .yy-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--yy-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 998;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  [data-theme="dark"] .yy-mobile-dock {
    background: rgba(15, 23, 42, 0.92);
    border-top-color: var(--yy-border);
  }

  .yy-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--yy-text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.12s ease;
  }

  .yy-dock-item svg {
    stroke-width: 2.2;
    transition: transform 0.12s ease;
  }

  .yy-dock-item:active svg {
    transform: scale(0.92);
  }

  .yy-dock-item:hover,
  .yy-dock-item.is-active {
    color: var(--yy-primary);
  }
}

/* 4.9 Category Engineering Meta Stats Bar */
.yy-archive-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  padding: 6px 14px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--yy-text-muted);
}

.yy-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yy-stat-item strong {
  color: var(--yy-text-strong);
  font-weight: 700;
  font-family: var(--yy-font-mono);
}

.yy-stat-sep {
  color: var(--yy-border);
}

/* 4.10 TOC Active Scrollspy Accent */
.yy-toc-list a.active,
.yy-toc-list li.active > a {
  color: var(--yy-primary) !important;
  font-weight: 600;
  border-left: 2px solid var(--yy-primary);
  background: var(--yy-primary-light);
  padding-left: 10px;
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   5. UI ENHANCEMENTS (Linear / Stripe / Vercel Product Polish)
   ========================================================================== */

/* 5.1 News Live Badge & Card Polish */
.yy-card.yy-card-news,
.yy-card.yy-card--news-active {
  border-color: rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, var(--yy-surface) 100%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.yy-card.yy-card-news:hover,
.yy-card.yy-card--news-active:hover {
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 10px 28px -6px rgba(99, 102, 241, 0.12);
}

.yy-card-badges-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yy-news-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  line-height: 1.2;
}

.yy-pulse-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: yy-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes yy-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.yy-time-relative {
  color: var(--yy-text-muted);
  font-size: 0.78rem;
  font-family: var(--yy-font-mono);
}

/* 5.2 Technology Map - Hover Micro-Animation & Yakında Badge */
.yy-category-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.yy-category-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yy-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px 0 0 4px;
}

.yy-category-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.yy-category-card:hover .yy-category-icon svg {
  transform: scale(1.08) rotate(3deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.yy-category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.yy-category-card-header h3 {
  margin: 0;
}

.yy-badge-soon {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--yy-text-muted);
  border: 1px solid var(--yy-border);
}

.yy-category-card--empty {
  opacity: 0.85;
}

/* 5.3 Code Blocks IDE-Grade Line Numbers */
.yy-code-container pre.has-line-numbers {
  position: relative;
  padding-left: 3.8em !important;
  counter-reset: linenumber;
}

.yy-code-container pre.has-line-numbers code {
  white-space: pre !important;
}

.line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3em;
  padding-top: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  user-select: none;
  -webkit-user-select: none;
  font-size: 0.88rem;
  line-height: 1.65;
  font-family: var(--yy-font-mono);
  box-sizing: border-box;
}

[data-theme="light"] .line-numbers-rows {
  background: rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}

.line-numbers-rows > span:before {
  content: counter(linenumber);
  color: #768390;
  display: block;
  padding-right: 0.8em;
  text-align: right;
  opacity: 0.45;
  font-size: 0.82em;
}

/* 5.4 Smart Sticky Header (Glassmorphism & Slide Transitions) */
#masthead.site-header {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

#masthead.site-header.yy-header-floating {
  position: sticky !important;
  top: 0;
  z-index: 999;
  background: rgba(13, 17, 23, 0.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yy-border);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] #masthead.site-header.yy-header-floating {
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

#masthead.site-header.yy-header-hidden {
  transform: translateY(-100%) !important;
}

/* 5.5 Archive Toolbar & Sort Controls */
.yy-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 28px;
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius);
  font-size: 0.85rem;
}

.yy-archive-toolbar-info {
  color: var(--yy-text-muted);
}

.yy-archive-toolbar-info strong {
  color: var(--yy-text-strong);
  font-family: var(--yy-font-mono);
}

.yy-archive-toolbar-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.yy-sort-label {
  color: var(--yy-text-muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.yy-sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.yy-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: 6px;
  padding: 5px 28px 5px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--yy-text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.yy-sort-select:hover {
  border-color: var(--yy-primary);
}

.yy-sort-select:focus {
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px var(--yy-primary-light);
}

.yy-sort-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--yy-text-muted);
}

/* 5.6 Sitewide Footer Newsletter Banner */
.yy-footer-newsletter-banner {
  background: linear-gradient(180deg, var(--yy-bg) 0%, var(--yy-surface) 100%);
  border-top: 1px solid var(--yy-border);
  border-bottom: 1px solid var(--yy-border);
  padding: 56px 20px;
  position: relative;
  overflow: hidden;
}

.yy-footer-newsletter-container {
  max-width: var(--yy-max-width, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.yy-footer-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--yy-primary-light);
  color: var(--yy-primary);
  border-radius: 999px;
  margin-bottom: 12px;
}

.yy-footer-newsletter-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--yy-text-strong);
  letter-spacing: -0.022em;
}

.yy-footer-newsletter-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--yy-text-muted);
  margin: 0;
}

.yy-footer-newsletter-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yy-footer-newsletter-form .yy-newsletter-input-group {
  display: flex;
  gap: 8px;
}

.yy-footer-newsletter-form .yy-newsletter-input {
  flex: 1;
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--yy-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.yy-footer-newsletter-form .yy-newsletter-input:focus {
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px var(--yy-primary-light);
}

.yy-footer-newsletter-form .yy-newsletter-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yy-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.yy-footer-newsletter-form .yy-newsletter-submit:hover {
  background: var(--yy-primary-hover, #4f46e5);
}

.yy-footer-newsletter-form .yy-newsletter-submit:active {
  transform: scale(0.97);
}

.yy-newsletter-privacy-note {
  font-size: 0.75rem;
  color: var(--yy-text-muted);
  opacity: 0.8;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .yy-footer-newsletter-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .yy-footer-newsletter-form .yy-newsletter-input-group {
    flex-direction: column;
  }
  .yy-footer-newsletter-form .yy-newsletter-submit {
    justify-content: center;
  }
}

/* 5.7 Micro-Interactions & Typography Craft Polish */
.yy-btn:active,
.yy-hero-search-btn:active,
.yy-level-pill:active,
.yy-reaction-btn:active,
.yy-copy-btn:active {
  transform: scale(0.97);
}

h1, h2, h3,
.yy-card-title,
.yy-brand-title,
.yy-section-header h2 {
  letter-spacing: -0.022em;
}

.yy-cat-badge,
.yy-code-lang,
.yy-stat-item strong {
  letter-spacing: 0.02em;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   16. Difficulty Level Badges & Category Instant Filter State
   ========================================================================== */
.yy-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  vertical-align: middle;
}

.yy-level-badge--beginner {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.yy-level-badge--intermediate {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.yy-level-badge--advanced {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .yy-level-badge--beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .yy-level-badge--intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .yy-level-badge--advanced {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* Empty filter state in category listing */
.yy-empty-filter-msg {
  grid-column: 1 / -1;
  width: 100%;
  padding: 48px 24px;
  margin: 16px 0 32px;
  text-align: center;
  background: var(--yy-surface);
  border: 1px dashed var(--yy-border);
  border-radius: var(--yy-radius);
  animation: yyFadeIn 0.25s ease-out;
}

.yy-empty-filter-box h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--yy-text);
  margin: 0 0 8px;
}

.yy-empty-filter-box p {
  font-size: 0.9rem;
  color: var(--yy-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Social Share WhatsApp hover */
.yy-share-item:hover svg[class*="whatsapp"],
.yy-share-item:hover svg[fill*="currentColor"]:has(path[d*="M12.04 2c"]) {
  color: #25D366;
}

/* ==========================================================================
   17. Page Templates & Developer Contact System
   ========================================================================== */
.yy-page-hero {
  padding-bottom: 28px;
}

.yy-page-container {
  max-width: 1180px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

/* Standard & Editorial Page Card */
.yy-page-card {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 48px 56px;
  box-shadow: var(--yy-shadow-sm);
}

@media (max-width: 768px) {
  .yy-page-card {
    padding: 28px 20px;
  }
}

.yy-page-card .entry-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--yy-text);
  border-bottom: 1px solid var(--yy-border);
  padding-bottom: 10px;
}

.yy-page-card .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--yy-text);
}

.yy-page-card .entry-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--yy-text-muted);
  margin-bottom: 18px;
}

.yy-page-card .entry-content ul,
.yy-page-card .entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--yy-text-muted);
  line-height: 1.75;
}

.yy-page-card .entry-content li {
  margin-bottom: 8px;
}

.yy-page-card .entry-content blockquote {
  border-left: 4px solid var(--yy-primary);
  background: rgba(56, 189, 248, 0.05);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--yy-radius) var(--yy-radius) 0;
  font-style: italic;
}

/* Contact Page Layout: 2 Columns */
.yy-contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .yy-contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Contact Info Cards */
.yy-contact-info-card,
.yy-contact-guarantee-card {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 32px;
  box-shadow: var(--yy-shadow-sm);
  margin-bottom: 24px;
}

.yy-contact-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yy-text);
  margin: 0 0 8px;
}

.yy-contact-card-desc {
  font-size: 0.88rem;
  color: var(--yy-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.yy-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yy-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yy-contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--yy-primary);
  flex-shrink: 0;
}

.yy-contact-item-content {
  display: flex;
  flex-direction: column;
}

.yy-contact-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yy-text-muted);
  margin-bottom: 2px;
}

.yy-contact-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yy-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a.yy-contact-val:hover {
  color: var(--yy-primary);
}

.yy-guarantee-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.yy-guarantee-item:last-child {
  margin-bottom: 0;
}

.yy-guarantee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  height: fit-content;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.yy-guarantee-item h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--yy-text);
}

.yy-guarantee-item p {
  font-size: 0.85rem;
  color: var(--yy-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Contact Form Card */
.yy-contact-form-card {
  background: var(--yy-surface);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius-lg);
  padding: 40px 44px;
  box-shadow: var(--yy-shadow-sm);
}

@media (max-width: 600px) {
  .yy-contact-form-card {
    padding: 24px 20px;
  }
}

.yy-contact-form-header {
  margin-bottom: 28px;
}

.yy-contact-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yy-primary);
  margin-bottom: 8px;
}

.yy-contact-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yy-text);
  margin: 0 0 6px;
}

.yy-contact-form-subtitle {
  font-size: 0.92rem;
  color: var(--yy-text-muted);
  margin: 0;
}

.yy-form-row--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .yy-form-row--two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.yy-form-group {
  margin-bottom: 20px;
}

.yy-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--yy-text);
  margin-bottom: 7px;
}

.yy-req {
  color: #ef4444;
}

.yy-input,
.yy-textarea,
.yy-select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--yy-text);
  background: var(--yy-bg);
  border: 1px solid var(--yy-border);
  border-radius: var(--yy-radius);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.yy-input:focus,
.yy-textarea:focus,
.yy-select:focus {
  outline: none;
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.yy-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.yy-select-wrap {
  position: relative;
}

.yy-select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.yy-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--yy-text-muted);
}

.yy-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.yy-contact-submit .yy-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yy-contact-feedback {
  padding: 14px 18px;
  border-radius: var(--yy-radius);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: yyFadeIn 0.25s ease-out;
}

.yy-feedback-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.yy-feedback-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

