/*
Theme Name: Akademik Kılavuz
Description: Consensus-style left sidebar layout — dark sidebar, light/dark content.
Version: 3.0.0
Author: Akademik Kılavuz
Text Domain: akademik-kilavuz
*/

/* ═══════════════════════════════════════════════════════════════════════════
   CONSENSUS PALETTE
   #3bcdaa  Shamrock  — primary accent
   #18181a  Woodsmoke — sidebar / dark surfaces
   #69bbf5  Malibu    — secondary / info
═══════════════════════════════════════════════════════════════════════════ */

/* ── Light mode (default) ── */
:root {
  --c-primary:       #3bcdaa;
  --c-primary-h:     #2db596;
  --c-primary-ring:  rgba(59,205,170,.26);
  --c-primary-rgb:   59,205,170;
  --c-secondary:     #69bbf5;
  --c-secondary-h:   #4ea7e8;
  --c-secondary-ring:rgba(105,187,245,.24);
  --c-secondary-rgb: 105,187,245;
  --c-tertiary-bg:   rgba(59,205,170,.14);
  --c-tertiary-text: #168f73;
  --c-tertiary-border: rgba(59,205,170,.26);
  --c-tertiary-h:    rgba(59,205,170,.2);
  --c-success:       #22c55e;
  --c-success-rgb:   34,197,94;
  --c-warning:       #f59e0b;
  --c-warning-rgb:   245,158,11;
  --c-danger:        #ef4444;
  --c-danger-rgb:    239,68,68;
  --c-info:          #3b82f6;
  --c-info-rgb:      59,130,246;

  --c-accent:        var(--c-primary);
  --c-accent-h:      var(--c-primary-h);
  --c-accent-light:  rgba(var(--c-primary-rgb),.1);
  --c-accent-ring:   var(--c-primary-ring);
  --c-accent-rgb:    var(--c-primary-rgb);
  --c-blue:          var(--c-secondary);

  /* Sidebar — light mode */
  --c-sb-bg:         #ffffff;
  --c-sb-bg2:        #f0f1f4;
  --c-sb-bg3:        #e4e6ea;
  --c-sb-border:     rgba(0,0,0,.08);
  --c-sb-text:       rgba(0,0,0,.55);
  --c-sb-text-h:     #18181a;
  --c-sb-active:     rgba(var(--c-accent-rgb),.12);
  --c-sb-active-txt: var(--c-accent-h);

  /* Content area — switches per mode */
  --c-bg:            #ffffff;
  --c-surface:       #ffffff;
  --c-surface2:      #f0f1f4;
  --c-border:        #e4e6ea;
  --c-text:          #18181a;
  --c-text-2:        #4b5563;
  --c-text-3:        #9ca3af;

  /* Layout */
  --sb-w:            240px;
  --sb-w-collapsed:  60px;
  --r-xs:            6px;
  --r-sm:            10px;
  --r-md:            12px;
  --r-lg:            16px;
  --r-xl:            20px;
  --r-pill:          999px;
  --radius-sm:       var(--r-sm);
  --radius-md:       var(--r-md);
  --radius-lg:       var(--r-lg);
  --shadow-sm:       0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:       0 4px 16px rgba(0,0,0,.09);
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:    'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font:            var(--font-body);
  --font-size-base:  16px;
  --heading-weight:  800;
  --fs-12:           .75rem;
  --fs-13:           .8125rem;
  --fs-14:           .875rem;
  --fs-16:           1rem;
  --fs-18:           1.125rem;
  --fs-20:           1.25rem;
  --fs-24:           1.5rem;
  --fs-28:           1.75rem;
  --fs-32:           2rem;
  --fs-40:           2.5rem;
  --fs-48:           3rem;
  --lh-tight:        1.2;
  --lh-normal:       1.6;
  --lh-relaxed:      1.75;
  --fw-400:          400;
  --fw-500:          500;
  --fw-600:          600;
  --fw-700:          700;
  --fw-800:          800;
  --btn-h:           44px;
  --btn-weight:      700;
  --btn-shadow:      0 2px 10px rgba(var(--c-primary-rgb),.18);
  --btn-shadow-hover:0 6px 16px rgba(var(--c-primary-rgb),.24);

  /* Plugin compatibility aliases */
  --ak-accent:       var(--c-accent);
  --ak-border:       var(--c-border);
  --ak-bg:           var(--c-bg);
  --ak-text:         var(--c-text);
  --ak-muted:        var(--c-text-2);
  --ak-soft:         var(--c-accent-light);
}

/* ── Dark mode ── */
html.dark-mode {
  --c-bg:            #2b2d32;
  --c-surface:       #33353c;
  --c-surface2:      #3a3d45;
  --c-border:        rgba(255,255,255,.1);
  --c-text:          #e8e9ef;
  --c-text-2:        rgba(255,255,255,.55);
  --c-text-3:        rgba(255,255,255,.3);

  /* Sidebar — dark mode */
  --c-sb-bg:         #33353c;
  --c-sb-bg2:        #3a3d45;
  --c-sb-bg3:        #42454f;
  --c-sb-border:     rgba(255,255,255,.07);
  --c-sb-text:       rgba(255,255,255,.65);
  --c-sb-text-h:     #ffffff;
  --c-sb-active:     rgba(var(--c-accent-rgb),.14);
  --c-sb-active-txt: var(--c-accent);

  --ak-bg:           var(--c-bg);
  --ak-text:         var(--c-text);
  --ak-border:       var(--c-border);
  --ak-muted:        var(--c-text-2);
  --ak-soft:         rgba(var(--c-accent-rgb),.1);
  --c-tertiary-bg:   rgba(var(--c-primary-rgb),.22);
  --c-tertiary-border: rgba(var(--c-primary-rgb),.3);
  --c-tertiary-h:    rgba(var(--c-primary-rgb),.3);
  --c-tertiary-text: #d5fff2;

  /* Status colors — softened for dark backgrounds */
  --c-success:       #4ade80;
  --c-success-rgb:   74,222,128;
  --c-warning:       #fbbf24;
  --c-warning-rgb:   251,191,36;
  --c-danger:        #f87171;
  --c-danger-rgb:    248,113,113;
  --c-info:          #60a5fa;
  --c-info-rgb:      96,165,250;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background .2s, color .2s;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════════════════ */
#ak-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sb-w);
  background: var(--c-sb-bg);
  border-right: 1px solid var(--c-border);
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  z-index: 9000;
  transition: width .25s cubic-bezier(.4,0,.2,1), transform .25s;
  overflow: hidden;
}

/* Collapsed state (icon-only) */
#ak-sidebar.is-collapsed {
  width: var(--sb-w-collapsed);
}

#ak-sidebar.is-collapsed .ak-sb-label,
#ak-sidebar.is-collapsed .ak-sb-section-title,
#ak-sidebar.is-collapsed .ak-user-info,
#ak-sidebar.is-collapsed .ak-dark-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

#ak-sidebar.is-collapsed .ak-logo-text { display: none; }

/* When collapsed, hide logo and center the collapse button */
#ak-sidebar.is-collapsed .ak-sb-top {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

#ak-sidebar.is-collapsed .ak-logo {
  display: none;
}

#ak-sidebar.is-collapsed .ak-collapse-btn {
  color: var(--c-sb-text-h);
  background: var(--c-sb-bg2);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

/* ── Sidebar top (logo + collapse btn) ── */
.ak-sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--c-sb-border);
  flex-shrink: 0;
  gap: 8px;
}

.ak-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-sb-text-h);
  flex-shrink: 0;
  min-width: 0;
}

.ak-logo:hover { text-decoration: none; color: var(--c-sb-text-h); }

.ak-logo-icon {
  width: 32px; height: 32px;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.ak-logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button — mobile only (shown via media query) */
.ak-sb-close { display: none; }

/* Collapse toggle button */
.ak-collapse-btn {
  background: none;
  border: none;
  color: var(--c-sb-text);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.ak-collapse-btn:hover {
  background: var(--c-sb-bg2);
  color: var(--c-sb-text-h);
}

/* ── Sidebar nav (middle — scrollable) ── */
.ak-sb-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-sb-bg3) transparent;
}

.ak-sb-nav::-webkit-scrollbar { width: 4px; }
.ak-sb-nav::-webkit-scrollbar-thumb { background: var(--c-sb-bg3); border-radius: 4px; }

.ak-sb-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--c-sb-text);
  padding: 14px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s;
}

.ak-sb-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ak-sb-nav li a,
.ak-sb-nav li button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-sb-text);
  cursor: pointer;
  transition: background .15s, color .15s;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}

.ak-sb-nav li a:hover,
.ak-sb-nav li button:hover {
  background: var(--c-sb-bg2);
  color: var(--c-sb-text-h);
  text-decoration: none;
}

.ak-sb-nav li.is-active a,
.ak-sb-nav li.is-active button {
  background: var(--c-sb-active);
  color: var(--c-sb-active-txt);
  font-weight: 600;
}

.ak-sb-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  /* Always visible — critical for collapsed mode */
  min-width: 20px;
}

/* SVG named icon */
.ak-sb-icon--svg svg,
.ak-ud-icon--svg svg {
  display: block;
  color: currentColor;
}

/* Letter fallback icon (no emoji set) */
.ak-sb-icon--letter {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-sb-text);
  background: var(--c-sb-bg2);
  border-radius: 5px;
  width: 20px;
  height: 20px;
  text-transform: uppercase;
}

/* In collapsed mode, center the icon in the full row width */
#ak-sidebar.is-collapsed .ak-sb-nav li a,
#ak-sidebar.is-collapsed .ak-sb-nav li button {
  justify-content: center;
  padding: 9px 0;
}

.ak-sb-label {
  transition: opacity .2s;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar bottom (dark mode + user) ── */
.ak-sb-bottom {
  flex-shrink: 0;
  padding: 8px;
  border-top: 1px solid var(--c-sb-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Dark mode toggle row */
.ak-dark-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}

.ak-dark-toggle-row:hover {
  background: var(--c-sb-bg2);
}

.ak-dark-icon {
  width: 20px; height: 20px;
  font-size: 17px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.ak-dark-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-sb-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s;
}

/* Toggle switch */
.ak-toggle-switch {
  width: 36px;
  height: 20px;
  background: rgba(0,0,0,.18);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}

.ak-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}

html.dark-mode .ak-toggle-switch {
  background: var(--c-accent);
}

html.dark-mode .ak-toggle-switch::after {
  transform: translateX(16px);
}

/* User section */
.ak-user-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
  position: relative;
  min-width: 0;
}

.ak-user-section:hover {
  background: var(--c-sb-bg2);
}

.ak-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.ak-avatar-letter {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  user-select: none;
}

.ak-user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ak-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: opacity .2s;
}

.ak-user-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-sb-text-h);
  white-space: nowrap;
  line-height: 1.3;
}

.ak-user-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-user-verified-tick {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex: 0 0 auto;
}

.ak-user-verified-tick svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ak-user-role {
  font-size: 11px;
  color: var(--c-sb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User dropdown */
.ak-user-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px; right: 8px;
  background: var(--c-sb-bg);
  border: 1px solid var(--c-sb-border);
  border-radius: var(--radius-md);
  padding: 6px;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 100;
}

/* Collapsed: fly out to the right of the sidebar */
#ak-sidebar.is-collapsed .ak-user-dropdown.is-open {
  left: calc(100% + 4px);
  right: auto;
  bottom: 0;
  top: auto;
  width: 200px;
}

.ak-user-dropdown.is-open { display: block; }

.ak-user-dropdown a,
.ak-user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--c-sb-text-h);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .12s, color .12s;
  text-decoration: none;
}

.ak-user-dropdown a:hover,
.ak-user-dropdown button:hover {
  background: var(--c-surface2);
  color: var(--c-text);
  text-decoration: none;
}

.ak-user-dropdown .danger { color: var(--c-danger); }
.ak-user-dropdown .danger:hover { background: rgba(var(--c-danger-rgb),.1); color: var(--c-danger); }

/* ── User dropdown icons ── */
.ak-ud-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ak-ud-icon--letter {
  font-size: 10px;
  font-weight: 700;
  background: var(--c-surface2);
  border-radius: 4px;
  color: var(--c-text-2);
  text-transform: uppercase;
}

.ak-user-dropdown .danger .ak-ud-icon { opacity: .85; }

/* ── Guest (not logged in) sidebar bottom ── */
.ak-sb-auth {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 0;
}

.ak-sb-auth a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

#ak-sidebar .ak-sb-auth .ak-btn-login,
.ak-sb-auth .ak-btn-login {
  background: var(--c-sb-bg2) !important;
  color: var(--c-sb-text) !important;
  border: 1px solid var(--c-sb-border) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#ak-sidebar .ak-sb-auth .ak-btn-login:hover,
.ak-sb-auth .ak-btn-login:hover {
  background: var(--c-sb-bg3) !important;
  color: var(--c-sb-text-h) !important;
}

#ak-sidebar .ak-sb-auth .ak-btn-register,
.ak-sb-auth .ak-btn-register {
  background: var(--c-accent) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#ak-sidebar .ak-sb-auth .ak-btn-register:hover,
.ak-sb-auth .ak-btn-register:hover {
  background: var(--c-accent-h) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT — shifted right of sidebar
═══════════════════════════════════════════════════════════════════════════ */
#ak-main {
  margin-left: var(--sb-w);
  min-height: 100vh;
  width: calc(100vw - var(--sb-w));
  transition: margin-left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
  overflow-x: hidden;
}

body.sb-collapsed #ak-main {
  margin-left: var(--sb-w-collapsed);
  width: calc(100vw - var(--sb-w-collapsed));
}

/* Full-width page (plugin shortcode) */
body.ak-fullwidth #ak-main {
  padding: 0;
}

body:not(.ak-fullwidth) #ak-main {
  padding: 32px 0 80px;
}

/* ── Content wrappers ── */
.ak-wrap         { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.ak-wrap--md     { max-width: 960px; }
.ak-wrap--narrow { max-width: 720px; }

/* ── Page card ── */
.ak-page-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  box-shadow: var(--shadow-sm);
  transition: background .2s, border-color .2s;
}

.ak-page-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.ak-page-card h2 { font-size: 1.35rem; font-weight: 700; margin: 28px 0 10px; }
.ak-page-card h3 { font-size: 1.1rem;  font-weight: 600; margin: 20px 0 8px; }
.ak-page-card p  { margin-bottom: 14px; color: var(--c-text-2); line-height: 1.7; }
.ak-page-card ul, .ak-page-card ol { margin: 0 0 14px 22px; color: var(--c-text-2); }
.ak-page-card li { margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO (landing — inside main content, not full dark)
═══════════════════════════════════════════════════════════════════════════ */
.ak-hero {
  padding: 64px 32px 56px;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--c-accent-rgb),.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--c-border);
}

html.dark-mode .ak-hero {
  background: linear-gradient(180deg, rgba(var(--c-accent-rgb),.07) 0%, transparent 100%);
  border-bottom-color: var(--c-border);
}

.ak-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--c-text);
}

.ak-hero h1 em { font-style: normal; color: var(--c-accent); }

.ak-hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-2);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* Hero search box */
.ak-hero-search {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 5px 5px 5px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}

.ak-hero-search:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-ring);
}

.ak-hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font);
  color: var(--c-text);
  padding: 9px 0;
}

.ak-hero-search input::placeholder { color: var(--c-text-3); }

.ak-hero-search-btn {
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.ak-hero-search-btn:hover {
  background: var(--c-accent-h);
  transform: translateY(-1px);
}

/* Example chips */
.ak-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.ak-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  user-select: none;
}

.ak-chip:hover {
  background: var(--c-accent-light);
  color: var(--c-accent);
  border-color: rgba(var(--c-accent-rgb),.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
#ak-footer {
  margin-left: var(--sb-w);
  width: calc(100vw - var(--sb-w));
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
  transition: margin-left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
}

body.sb-collapsed #ak-footer {
  margin-left: var(--sb-w-collapsed);
  width: calc(100vw - var(--sb-w-collapsed));
}

#ak-footer .ak-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.ak-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-sb-text-h);
  white-space: nowrap;
}

.ak-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.ak-footer-links li a {
  font-size: 13px;
  color: var(--c-sb-text);
  text-decoration: none;
  transition: color .15s;
}

.ak-footer-links li a:hover { color: var(--c-accent); }

.ak-footer-copy {
  font-size: 12px;
  color: var(--c-sb-text);
  white-space: nowrap;
  width: 100%;
}

@media (max-width: 900px) {
  #ak-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE GRID
═══════════════════════════════════════════════════════════════════════════ */
.ak-section { padding: 56px 0; }

.ak-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.ak-section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 10px;
  color: var(--c-text);
}

.ak-section-title p { font-size: 1rem; color: var(--c-text-2); }

.ak-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.ak-feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s, background .2s;
}

.ak-feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(var(--c-accent-rgb),.3);
}

.ak-feature-card .ak-icon {
  width: 42px; height: 42px;
  background: var(--c-accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.ak-feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.ak-feature-card p  { font-size: 13px; color: var(--c-text-2); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE OVERLAY + TOGGLE
═══════════════════════════════════════════════════════════════════════════ */
.ak-sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 8999;
  backdrop-filter: blur(2px);
}

.ak-sb-overlay.is-open { display: block; }

/* Mobile top bar */
#ak-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: var(--c-sb-bg);
  border-bottom: 1px solid var(--c-sb-border);
  z-index: 8998;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.ak-hamburger {
  background: none;
  border: none;
  color: var(--c-sb-text);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 5px;
  transition: background .15s;
}

.ak-hamburger:hover { background: var(--c-sb-bg2); color: var(--c-sb-text-h); }

.ak-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.ak-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ak-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ak-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ak-topbar-logo {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-sb-text-h);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ak-collapse-btn { display: none; }

  .ak-sb-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--c-sb-text);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    transition: background .15s, color .15s;
  }
  .ak-sb-close:hover {
    background: var(--c-sb-bg2);
    color: var(--c-sb-text-h);
  }

  #ak-sidebar {
    transform: translateX(-100%);
    width: var(--sb-w);
  }

  #ak-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  #ak-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 54px;
  }

  body.ak-fullwidth #ak-main { padding-top: 54px; }

  #ak-topbar { display: flex; }

  .ak-hero { padding: 44px 20px 40px; }
  .ak-wrap { padding: 0 20px; }
  .ak-page-card { padding: 28px 22px; }
}

@media (max-width: 600px) {
  .ak-hero h1 { font-size: 1.8rem; }
  .ak-hero-search { flex-direction: column; align-items: stretch; padding: 12px; }
  .ak-hero-search-btn { width: 100%; justify-content: center; }
  .ak-feature-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════════════════════ */
.ak-hidden  { display: none !important; }
.ak-muted   { color: var(--c-text-2); }
.ak-accent  { color: var(--c-accent); }
.ak-divider { height: 1px; background: var(--c-border); margin: 24px 0; }

/* WP admin bar */
.admin-bar #ak-sidebar { top: 32px; }
@media (max-width: 782px) { .admin-bar #ak-sidebar { top: 46px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR — SECTION HEADER ITEMS
═══════════════════════════════════════════════════════════════════════════ */
.ak-sb-section-header { list-style: none; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG LISTING (home.php)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Category filter pill bar ── */
.ak-cat-filter {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.ak-cat-filter__track {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.ak-cat-filter__track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.ak-cat-filter__pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  background: transparent;
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.ak-cat-filter__pill:hover {
  background: var(--c-tertiary-bg);
  color: var(--c-primary);
  border-color: var(--c-primary);
  text-decoration: none;
}
.ak-cat-filter__pill.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  font-weight: 600;
}
.ak-cat-filter__pill.is-active:hover {
  background: var(--c-primary-h);
  border-color: var(--c-primary-h);
  color: #fff;
}

/* Page wrapper — no extra padding since we have the hero */
.ak-blog-wrap { padding-bottom: 80px; }

/* ── Blog hero header ── */
.ak-blog-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 48px;
}
.ak-blog-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--c-text);
  margin-bottom: 8px;
}
.ak-blog-sub {
  font-size: 1rem;
  color: var(--c-text-2);
  max-width: 480px;
}

/* ── Category badge ── */
.ak-cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-accent);
  background: var(--c-accent-light);
  border: 1px solid rgba(var(--c-accent-rgb),.2);
  border-radius: 20px;
  padding: 3px 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.ak-cat-badge:hover { opacity: .8; text-decoration: none; }
.ak-cat-badge--sm { font-size: 10px; padding: 2px 8px; margin-bottom: 10px; }

/* ── Byline shared ── */
.ak-post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-2);
  flex-wrap: wrap;
}
.ak-byline-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ak-byline-name { font-weight: 600; color: var(--c-text); }
.ak-byline-sep  { color: var(--c-text-3); }

/* ── Featured post ── */
.ak-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
  transition: box-shadow .2s, border-color .2s;
}
.ak-featured-post:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--c-accent-rgb),.25);
}
.ak-featured-img {
  display: block;
  overflow: hidden;
  min-height: 320px;
}
.ak-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.ak-featured-post:hover .ak-featured-img img { transform: scale(1.03); }
.ak-featured-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ak-featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.ak-featured-title a { color: var(--c-text); text-decoration: none; }
.ak-featured-title a:hover { color: var(--c-accent); }
.ak-featured-excerpt {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

/* Featured post with no image — full width */
.ak-featured-post:not(:has(.ak-featured-img)) {
  grid-template-columns: 1fr;
}
.ak-featured-post:not(:has(.ak-featured-img)) .ak-featured-body {
  padding: 44px 52px;
}

/* ── Blog grid ── */
.ak-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── Blog card ── */
.ak-blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ak-blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(var(--c-accent-rgb),.25);
}
.ak-card-img {
  display: block;
  overflow: hidden;
  height: 170px;
  flex-shrink: 0;
}
.ak-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
  display: block;
}
.ak-blog-card:hover .ak-card-img img { transform: scale(1.05); }
.ak-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ak-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ak-card-title a { color: var(--c-text); text-decoration: none; }
.ak-card-title a:hover { color: var(--c-accent); }
.ak-card-excerpt {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ak-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.ak-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}
.ak-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-text-3);
}

/* ── Empty state ── */
.ak-blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--c-text-2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ak-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ak-featured-post { grid-template-columns: 1fr; }
  .ak-featured-img  { min-height: 220px; }
  .ak-featured-body { padding: 28px 24px; }
  .ak-featured-title { font-size: 1.35rem; }
  .ak-blog-grid { grid-template-columns: 1fr; }
  .ak-blog-hero { padding: 32px 0 28px; }
  .ak-blog-title { font-size: 1.8rem; }
}

.ak-pagination { margin-top: 48px; text-align: center; }
.ak-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  margin: 0 3px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.ak-pagination .page-numbers.current,
.ak-pagination .page-numbers:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.ak-pagination .prev, .ak-pagination .next { width: auto; padding: 0 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST (single.php)
═══════════════════════════════════════════════════════════════════════════ */
.ak-breadcrumb { font-size: 13px; color: var(--c-text-3); margin-bottom: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.ak-breadcrumb a { color: var(--c-text-2); text-decoration: none; }
.ak-breadcrumb a:hover { color: var(--c-accent); }

.ak-single-post { background: none; border: none; border-radius: 0; padding: 0; box-shadow: none; }

.ak-post-cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c-accent); background: var(--c-accent-light); padding: 3px 10px; border-radius: 20px; margin-bottom: 16px; text-decoration: none; }
.ak-post-cat:hover { opacity: .85; text-decoration: none; }

.ak-post-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 18px; color: var(--c-text); }

.ak-post-byline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-text-2); margin-bottom: 28px; flex-wrap: wrap; }
.ak-author-avatar { width: 28px; height: 28px; border-radius: 50%; }
.ak-sep { color: var(--c-text-3); }

.ak-post-featured-img { margin: 0 -52px 36px; overflow: hidden; }
.ak-post-featured-img img { width: 100%; max-height: 420px; object-fit: cover; }

.ak-post-content { font-size: 16px; line-height: 1.75; color: var(--c-text-2); }
.ak-post-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--c-text); margin: 32px 0 12px; }
.ak-post-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--c-text); margin: 24px 0 10px; }
.ak-post-content p  { margin-bottom: 18px; }
.ak-post-content a  { color: var(--c-accent); font-weight: 500; }
.ak-post-content ul, .ak-post-content ol { margin: 0 0 18px 22px; }
.ak-post-content li { margin-bottom: 6px; }
.ak-post-content blockquote { border-left: 3px solid var(--c-accent); padding-left: 20px; margin: 24px 0; color: var(--c-text-2); font-style: italic; }
.ak-post-content code { background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: 4px; padding: 2px 6px; font-size: .9em; }
.ak-post-content pre  { background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin-bottom: 18px; }
.ak-post-content pre code { background: none; border: none; padding: 0; }
.ak-post-content img  { border-radius: var(--radius-sm); max-width: 100%; margin: 16px 0; }

.ak-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.ak-tag { font-size: 13px; color: var(--c-text-2); background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: 20px; padding: 4px 12px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.ak-tag:hover { background: var(--c-accent-light); color: var(--c-accent); border-color: rgba(var(--c-accent-rgb),.3); text-decoration: none; }

.ak-author-box { display: flex; align-items: flex-start; gap: 16px; background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 24px; margin-top: 36px; }
.ak-author-box-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.ak-author-box-name { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.ak-author-box-bio  { font-size: 14px; color: var(--c-text-2); line-height: 1.5; }

.ak-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.ak-post-nav-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: var(--radius-md); text-decoration: none; transition: border-color .15s, background .15s; }
.ak-post-nav-item:hover { border-color: var(--c-accent); background: var(--c-accent-light); text-decoration: none; }
.ak-post-nav-next { text-align: right; }
.ak-post-nav-dir   { font-size: 12px; font-weight: 600; color: var(--c-accent); text-transform: uppercase; letter-spacing: .5px; }
.ak-post-nav-title { font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE CONTENT (page.php)
═══════════════════════════════════════════════════════════════════════════ */
.ak-page-content { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 48px 52px; box-shadow: var(--shadow-sm); }
.ak-page-content h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.4px; color: var(--c-text); margin-bottom: 24px; }
.ak-page-content p  { font-size: 16px; line-height: 1.75; color: var(--c-text-2); margin-bottom: 18px; }

@media (max-width: 640px) {
  .ak-page-content { padding: 28px 22px; }
  .ak-post-header h1 { font-size: 1.55rem; }
  .ak-post-featured-img { margin: 0 -22px 28px; }
  .ak-post-nav { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PMPRO DARK MODE OVERRIDES
═══════════════════════════════════════════════════════════════════════════ */
html.dark-mode #pmpro_account,
html.dark-mode #pmpro_levels_table,
html.dark-mode .pmpro_checkout,
html.dark-mode .pmpro_level,
html.dark-mode .pmpro_invoice {
  background: var(--c-surface) !important;
  color: var(--c-text) !important;
  border-color: var(--c-border) !important;
}

html.dark-mode .pmpro_checkout input[type="text"],
html.dark-mode .pmpro_checkout input[type="email"],
html.dark-mode .pmpro_checkout input[type="tel"],
html.dark-mode .pmpro_checkout input[type="number"],
html.dark-mode .pmpro_checkout input[type="password"],
html.dark-mode .pmpro_checkout select,
html.dark-mode .pmpro_checkout textarea,
html.dark-mode #pmpro_account input,
html.dark-mode #pmpro_account select {
  background: var(--c-surface2) !important;
  color: var(--c-text) !important;
  border-color: var(--c-border) !important;
}

html.dark-mode #pmpro_levels_table th,
html.dark-mode #pmpro_levels_table td,
html.dark-mode .pmpro_checkout table th,
html.dark-mode .pmpro_checkout table td {
  background: var(--c-surface) !important;
  color: var(--c-text) !important;
  border-color: var(--c-border) !important;
}

html.dark-mode .pmpro_checkout h2,
html.dark-mode .pmpro_checkout h3,
html.dark-mode .pmpro_checkout label,
html.dark-mode #pmpro_account h2,
html.dark-mode #pmpro_account h3,
html.dark-mode #pmpro_account p,
html.dark-mode #pmpro_levels_table h2,
html.dark-mode .pmpro_level h2,
html.dark-mode .pmpro_level p {
  color: var(--c-text) !important;
}

html.dark-mode .pmpro_level .pmpro_btn,
html.dark-mode .pmpro_checkout .pmpro_btn {
  background: var(--c-accent) !important;
  color: #fff !important;
  border-color: var(--c-accent) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM V3 OVERRIDES
═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--lh-tight);
}
p, li, small, input, select, textarea, button {
  font-family: var(--font-body);
}
input, select, textarea {
  border-radius: var(--r-md);
}

.ak-page-card,
.ak-feature-card,
.ak-blog-card,
.ak-page-content,
.ak-tag,
.ak-chip {
  border-radius: var(--r-lg);
}

.ak-btn {
  --ak-btn-bg: var(--c-primary);
  --ak-btn-bg-h: var(--c-primary-h);
  --ak-btn-text: #fff;
  --ak-btn-border: transparent;
  --ak-btn-ring: var(--c-primary-ring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--ak-btn-border);
  background: var(--ak-btn-bg);
  color: var(--ak-btn-text);
  font-size: var(--fs-16);
  font-weight: var(--btn-weight);
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .12s;
  box-shadow: var(--btn-shadow);
}
.ak-btn:hover {
  background: var(--ak-btn-bg-h);
  color: var(--ak-btn-text);
  text-decoration: none;
  box-shadow: var(--btn-shadow-hover);
}
.ak-btn:active { transform: translateY(1px); }
.ak-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ak-btn-ring), var(--btn-shadow);
}
.ak-btn:disabled,
.ak-btn[aria-busy="true"],
.ak-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.ak-btn--sm { min-height: calc(var(--btn-h) - 8px); padding: 0 14px; font-size: var(--fs-14); border-radius: var(--r-sm); }
.ak-btn--md { min-height: var(--btn-h); }
.ak-btn--lg { min-height: calc(var(--btn-h) + 6px); padding: 0 22px; font-size: var(--fs-18); border-radius: var(--r-lg); }
.ak-btn--block { width: 100%; }

.ak-btn--primary {
  --ak-btn-bg: var(--c-primary);
  --ak-btn-bg-h: var(--c-primary-h);
  --ak-btn-text: #fff;
  --ak-btn-border: transparent;
  --ak-btn-ring: var(--c-primary-ring);
}
.ak-btn--secondary {
  --ak-btn-bg: var(--c-secondary);
  --ak-btn-bg-h: var(--c-secondary-h);
  --ak-btn-text: #fff;
  --ak-btn-border: transparent;
  --ak-btn-ring: var(--c-secondary-ring);
}
.ak-btn--tertiary {
  --ak-btn-bg: var(--c-tertiary-bg);
  --ak-btn-bg-h: var(--c-tertiary-h);
  --ak-btn-text: var(--c-tertiary-text);
  --ak-btn-border: var(--c-tertiary-border);
  --ak-btn-ring: var(--c-primary-ring);
  box-shadow: none;
}
.ak-btn--ghost {
  --ak-btn-bg: transparent;
  --ak-btn-bg-h: rgba(var(--c-primary-rgb), .12);
  --ak-btn-text: var(--c-text);
  --ak-btn-border: var(--c-border);
  --ak-btn-ring: var(--c-primary-ring);
  box-shadow: none;
}
.ak-btn--outline {
  --ak-btn-bg: transparent;
  --ak-btn-bg-h: rgba(var(--c-primary-rgb), .08);
  --ak-btn-text: var(--c-primary);
  --ak-btn-border: rgba(var(--c-primary-rgb), .42);
  --ak-btn-ring: var(--c-primary-ring);
  box-shadow: none;
}
.ak-btn--danger {
  --ak-btn-bg: var(--c-danger);
  --ak-btn-bg-h: #dc2626;
  --ak-btn-text: #fff;
  --ak-btn-border: transparent;
  --ak-btn-ring: rgba(239, 68, 68, .28);
}
.ak-btn--success {
  --ak-btn-bg: var(--c-success);
  --ak-btn-bg-h: #16a34a;
  --ak-btn-text: #fff;
  --ak-btn-border: transparent;
  --ak-btn-ring: rgba(34, 197, 94, .28);
}

/* Legacy aliases */
.ak-btn-accent-sm { min-height: calc(var(--btn-h) - 8px); padding: 0 14px; border-radius: var(--r-sm); font-size: var(--fs-14); background: var(--c-primary); color: #fff; border: 1px solid transparent; text-decoration: none; }
.ak-btn-accent-sm:hover { background: var(--c-primary-h); color: #fff; text-decoration: none; }
.ak-btn-outline-sm { min-height: calc(var(--btn-h) - 8px); padding: 0 14px; border-radius: var(--r-sm); font-size: var(--fs-14); background: transparent; color: var(--c-text); border: 1px solid var(--c-border); text-decoration: none; }
.ak-btn-outline-sm:hover { background: var(--c-surface2); text-decoration: none; }

/* Snippet compatibility aliases -> use theme button contract */
.akg-linkbtn,
.akg-filter-btn,
.akg-tl-btn,
.akg-tl-rich-linkbtn,
.akg-tl-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--btn-h);
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: var(--btn-weight);
  line-height: 1.1;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.akg-linkbtn:hover,
.akg-filter-btn:hover,
.akg-tl-btn:hover,
.akg-tl-rich-linkbtn:hover,
.akg-tl-reaction:hover {
  border-color: color-mix(in srgb, var(--c-accent) 36%, var(--c-border));
  background: color-mix(in srgb, var(--c-accent) 10%, var(--c-surface));
  color: var(--c-accent);
  text-decoration: none;
}

.akg-linkbtn:focus-visible,
.akg-filter-btn:focus-visible,
.akg-tl-btn:focus-visible,
.akg-tl-rich-linkbtn:focus-visible,
.akg-tl-reaction:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--c-accent-ring);
}

.akg-linkbtn.akg-linkbtn--tiny,
.akg-tl-btn-sm {
  min-height: calc(var(--btn-h) - 10px);
  padding: 0 11px;
  font-size: var(--fs-13);
}

.akg-claim-btn,
.akg-tl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: var(--btn-weight);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}

.akg-claim-btn:hover,
.akg-tl-btn-primary:hover {
  background: var(--c-primary-h);
  color: #fff;
  transform: translateY(-1px);
}

.akg-linkbtn.akg-iconbtn--danger,
.akg-tl-btn-danger {
  border-color: color-mix(in srgb, var(--c-danger) 42%, var(--c-border));
  background: color-mix(in srgb, var(--c-danger) 10%, var(--c-surface));
  color: color-mix(in srgb, var(--c-danger) 84%, var(--c-text));
}

/* Snippet chip compatibility */
.akg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  color: var(--c-text-2);
  font-size: var(--fs-13);
  font-weight: var(--fw-700);
  line-height: 1;
}

.akg-chip--collab {
  border-color: color-mix(in srgb, var(--c-accent) 36%, var(--c-border));
  background: color-mix(in srgb, var(--c-accent) 12%, var(--c-surface));
  color: var(--c-accent-h);
}

.akg-chip--verified {
  border-color: color-mix(in srgb, var(--c-success) 40%, var(--c-border));
  background: color-mix(in srgb, var(--c-success) 10%, var(--c-surface));
  color: color-mix(in srgb, var(--c-success) 80%, var(--c-text));
}

.lp-btn, .lp-mode-btn, .lp-price-btn { border-radius: var(--r-pill) !important; font-weight: var(--btn-weight) !important; }
.lp-btn-primary, .lp-mode-btn-accent, .lp-price-card--featured .lp-price-btn {
  background: var(--c-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.lp-btn-primary:hover, .lp-mode-btn-accent:hover, .lp-price-card--featured .lp-price-btn:hover {
  background: var(--c-primary-h) !important;
}
.lp-btn-ghost, .lp-price-btn--ghost {
  background: transparent !important;
  color: var(--c-text) !important;
  border: 1px solid var(--c-border) !important;
}
.lp-btn-ghost:hover, .lp-price-btn--ghost:hover {
  background: var(--c-surface2) !important;
}

/* Sidebar guest buttons */
#ak-sidebar .ak-sb-auth .ak-btn-login,
.ak-sb-auth .ak-btn-login {
  background: transparent !important;
  color: var(--c-sb-text) !important;
  border: 1px solid var(--c-sb-border) !important;
}
#ak-sidebar .ak-sb-auth .ak-btn-login:hover,
.ak-sb-auth .ak-btn-login:hover {
  background: var(--c-sb-bg2) !important;
  color: var(--c-sb-text-h) !important;
}
#ak-sidebar .ak-sb-auth .ak-btn-register,
.ak-sb-auth .ak-btn-register {
  background: var(--c-primary) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}
#ak-sidebar .ak-sb-auth .ak-btn-register:hover,
.ak-sb-auth .ak-btn-register:hover { background: var(--c-primary-h) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG LAYOUT V2
═══════════════════════════════════════════════════════════════════════════ */
.ak-blog-wrap { padding: 24px 0 80px; }
.ak-blog-header {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.ak-blog-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.4px;
}
.ak-blog-header p {
  color: var(--c-text-2);
  max-width: 720px;
}
.ak-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ak-post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ak-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--c-primary-rgb), .3);
}
.ak-post-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.ak-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.ak-post-card:hover .ak-post-card__media img { transform: scale(1.04); }
.ak-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  flex: 1;
}
.ak-post-card__title {
  font-size: var(--fs-20);
  line-height: 1.35;
}
.ak-post-card__title a {
  color: var(--c-text);
  text-decoration: none;
}
.ak-post-card__title a:hover { color: var(--c-primary); }
.ak-post-card__excerpt {
  color: var(--c-text-2);
  line-height: 1.6;
  font-size: var(--fs-14);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.ak-post-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-3);
  font-size: var(--fs-13);
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
  flex-wrap: wrap;
}
.ak-post-card__meta .author {
  color: var(--c-text-2);
  font-weight: 600;
}
.ak-post-card__meta .dot { opacity: .6; }

.ak-cat-badge {
  border-radius: var(--r-pill);
  background: var(--c-tertiary-bg);
  border: 1px solid var(--c-tertiary-border);
  color: var(--c-tertiary-text);
  font-size: var(--fs-12);
}
.ak-blog-empty {
  border: 1px dashed var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  padding: 40px 20px;
}

.ak-single-v2 { padding-bottom: 64px; }
.ak-single-content-wrap { padding-top: 40px; }
.ak-single-head {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.ak-single-head h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -.5px;
}
.ak-post-hero {
  margin: 0 auto 34px;
  width: min(1400px, calc(100% - 80px));
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ak-post-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.ak-single-post--v2 {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 34px 34px 30px;
}
.ak-single-post--v2 .ak-post-content { font-size: var(--fs-16); }

@media (max-width: 1024px) {
  .ak-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ak-blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .ak-blog-wrap { padding-top: 14px; }
  .ak-post-hero { width: calc(100% - 24px); margin-bottom: 20px; }
  .ak-single-post--v2 { padding: 22px 18px; border-radius: var(--r-lg); }
}

/* PMPro: Hesap sayfası ana başlığını gizle */
.pmpro_section_title.pmpro_font-x-large { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   NEWS SLIDER  (home.php)
═══════════════════════════════════════════════════════════════════════════ */

.ak-news-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #111;
  user-select: none;
}

/* Track holds all slides side-by-side; JS switches .is-active */
.ak-ns-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.ak-ns-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.ak-ns-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Dark gradient overlay */
.ak-ns-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.52) 55%,
    rgba(0,0,0,.08) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 0 0 52px;
}

/* Content block inside overlay */
.ak-ns-content {
  max-width: 560px;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ak-ns-badge {
  align-self: flex-start;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #fff !important;
  border-color: transparent !important;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.ak-ns-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: var(--heading-weight);
  line-height: 1.18;
  letter-spacing: -.3px;
  color: #fff;
  margin: 0;
}
.ak-ns-title a {
  color: inherit;
  text-decoration: none;
}
.ak-ns-title a:hover { text-decoration: underline; }

.ak-ns-excerpt {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ak-ns-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-13);
  color: rgba(255,255,255,.55);
}
.ak-ns-dot-sep { opacity: .5; }

.ak-ns-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, transform .15s;
  align-self: flex-start;
}
.ak-ns-cta:hover {
  background: var(--c-primary-h);
  transform: translateY(-1px);
}

/* Prev / Next buttons */
.ak-ns-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.ak-ns-btn:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-50%) scale(1.08);
}
.ak-ns-prev { left: 18px; }
.ak-ns-next { right: 18px; }

/* Dot indicators */
.ak-ns-indicators {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: flex;
  gap: 7px;
  z-index: 10;
}
.ak-ns-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.ak-ns-indicator.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.25);
}

/* Autoplay progress line */
.ak-ns-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 10;
}
.ak-ns-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-accent);
  transition: width linear;
}

/* Slider responsive */
@media (max-width: 768px) {
  .ak-news-slider { height: 360px; }
  .ak-ns-content { padding: 0 20px; max-width: 100%; }
  .ak-ns-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 100%);
    align-items: flex-end;
    padding: 0 0 40px;
  }
  .ak-ns-btn { display: none; }
}
@media (max-width: 480px) {
  .ak-news-slider { height: 300px; }
  .ak-ns-excerpt { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY ARCHIVE  (archive.php)
═══════════════════════════════════════════════════════════════════════════ */

.ak-archive-wrap { padding-bottom: 64px; }

.ak-arc-hero {
  position: relative;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 52px 0 40px;
  margin-bottom: 40px;
  overflow: hidden;
}

/* Accent stripe on the left */
.ak-arc-hero__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-secondary) 100%);
}

/* Subtle radial glow */
.ak-arc-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-primary-rgb),.08) 0%, transparent 70%);
  pointer-events: none;
}

.ak-arc-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ak-arc-hero__eyebrow {
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.ak-arc-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  letter-spacing: -.4px;
  color: var(--c-text);
  margin: 0;
}

.ak-arc-hero__desc {
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--c-text-2);
  max-width: 580px;
  margin: 0;
}

.ak-arc-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.ak-arc-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-accent-light);
  color: var(--c-tertiary-text);
  font-size: var(--fs-13);
  font-weight: 600;
}

.ak-arc-meta-sep { color: var(--c-text-3); }

.ak-arc-back {
  font-size: var(--fs-13);
  color: var(--c-text-2);
  text-decoration: none;
  transition: color .15s;
}
.ak-arc-back:hover { color: var(--c-accent); }

.ak-arc-content { padding-top: 0; }

/* Dark mode adjustments */
html.dark-mode .ak-arc-hero {
  background: var(--c-surface);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST ENHANCEMENTS  (single.php)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Reading progress bar ── */
.ak-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.ak-read-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  transition: width .1s linear;
}

/* ── Share row ── */
.ak-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ak-share-label {
  font-size: var(--fs-13);
  color: var(--c-text-3);
  font-weight: 500;
}
.ak-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.ak-share-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-light);
}
.ak-share-x svg, .ak-share-copy svg { flex-shrink: 0; }

/* ── Hero image caption (Unsplash credit) ── */
.ak-post-hero { position: relative; }
.ak-post-hero__caption {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 4px 10px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  border-top-left-radius: var(--r-sm);
}
.ak-post-hero__caption a {
  color: rgba(255,255,255,.85);
  text-decoration: underline;
}

/* ── Improved post byline ── */
.ak-post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: var(--fs-14);
  color: var(--c-text-2);
}
.ak-author-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.ak-byline-author { font-weight: 600; color: var(--c-text); }
.ak-read-est { color: var(--c-text-3); }

/* ── Post tags ── */
.ak-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.ak-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  color: var(--c-text-2);
  font-size: var(--fs-13);
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.ak-tag:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ── Author box ── */
.ak-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
}
.ak-author-box-avatar {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.ak-author-box-info { min-width: 0; }
.ak-author-box-name {
  font-weight: 700;
  font-size: var(--fs-16);
  color: var(--c-text);
}
.ak-author-box-bio {
  font-size: var(--fs-14);
  color: var(--c-text-2);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Prev / Next nav ── */
.ak-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.ak-post-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
  background: var(--c-surface);
  overflow: hidden;
}
.ak-post-nav-item:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-light);
}
.ak-post-nav-next { flex-direction: row-reverse; text-align: right; }
.ak-post-nav-thumb {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.ak-post-nav-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.ak-post-nav-dir {
  font-size: var(--fs-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-accent);
}
.ak-post-nav-title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Related posts ── */
.ak-related-wrap {
  margin-top: 0;
  padding: 48px 0 64px;
  border-top: 1px solid var(--c-border);
}
.ak-related-title {
  font-family: var(--font-heading);
  font-size: var(--fs-20);
  font-weight: var(--heading-weight);
  color: var(--c-text);
  margin: 0 0 24px;
}
.ak-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Single post responsive */
@media (max-width: 860px) {
  .ak-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ak-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .ak-post-nav { grid-template-columns: 1fr; }
  .ak-post-nav-next { flex-direction: row; text-align: left; }
  .ak-author-box { flex-direction: column; align-items: flex-start; }
  .ak-share-row { gap: 6px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   IMPROVED POST CARD  (shared)
═══════════════════════════════════════════════════════════════════════════ */

.ak-post-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ak-post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(var(--c-primary-rgb),.22);
}
.ak-post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--c-surface2);
}
.ak-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ak-post-card:hover .ak-post-card__media img {
  transform: scale(1.04);
}
.ak-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}
.ak-post-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--c-text);
}
.ak-post-card__title a {
  color: inherit;
  text-decoration: none;
}
.ak-post-card__title a:hover { color: var(--c-accent); }
.ak-post-card__excerpt {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--c-text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ak-post-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  color: var(--c-text-3);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.ak-post-card__meta .author { font-weight: 600; color: var(--c-text-2); }
.ak-post-card__meta .dot { opacity: .4; }

.ak-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-accent-light);
  color: var(--c-tertiary-text);
  border: 1px solid var(--c-tertiary-border);
  font-size: var(--fs-12);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .15s, color .15s;
  align-self: flex-start;
}
.ak-cat-badge:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
