/*
Theme Name: Firmware
Theme URI: 
Author: Firmware Theme
Description: Cemal TARAKCI
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firmware
Tags: blog, portfolio, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #0f172a;
  --muted: #5b6474;
  --border: #e2e6eb;
  --accent: #0e7c86;
  --accent-hover: #0a646c;
  --accent-soft: rgba(14, 124, 134, 0.09);
  --code-bg: #0d1117;
  --code-text: #e6edf3;
  --hero-bg: #0b1016;
  --hero-text: #e8ecf1;
  --hero-muted: #9aa5b4;
  --hero-accent: #3cc4c9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1140px;
  --content: 740px;
}

[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #18202b;
  --text: #e6e9ef;
  --muted: #97a1b1;
  --border: #232c38;
  --accent: #3cc4c9;
  --accent-hover: #62d4d8;
  --accent-soft: rgba(60, 196, 201, 0.1);
  --code-bg: #0a0e13;
  --hero-bg: #070a0e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; letter-spacing: -0.02em; margin: 1.6em 0 .6em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto; display: block;
  left: 8px; top: 8px; padding: 12px 16px; background: var(--surface); color: var(--text); z-index: 100000;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--content); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-branding .custom-logo { max-height: 40px; width: auto; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 8px; background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
}
.site-title { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.site-title a { color: var(--text); }
.site-description { margin: 0; font-size: .78rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-navigation { display: flex; align-items: center; gap: 8px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--text); background: var(--surface-2); }
.main-navigation .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow);
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text); cursor: pointer; transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
@media (max-width: 600px) { .site-description { display: none; } }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .main-navigation .menu-wrap {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
  }
  .main-navigation.is-open .menu-wrap { display: block; }
  .main-navigation ul { flex-direction: column; }
  .main-navigation .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding-left: 16px; }
}

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: var(--accent); transition: width .05s linear;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-text);
  padding: 96px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(60,196,201,.16), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--hero-accent);
  border: 1px solid rgba(60,196,201,.3); background: rgba(60,196,201,.06);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hero-accent); box-shadow: 0 0 0 3px rgba(60,196,201,.2); }
.hero h1, .hero .hero-title { color: #fff; margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.hero .accent { color: var(--hero-accent); }
.hero-text { color: var(--hero-muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.terminal {
  background: #0f151d; border: 1px solid #1f2935; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.75;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #131b25; border-bottom: 1px solid #1f2935; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3441; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: .74rem; color: #6b7686; }
.terminal-body { padding: 18px 20px; color: #c9d3de; white-space: pre-wrap; margin: 0; }
.terminal-body .p { color: var(--hero-accent); }
.terminal-body .c { color: #6b7686; }
.terminal-body .ok { color: #7ee2a8; }
.terminal-body .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--hero-accent); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease; line-height: 1.2;
}
.btn-primary { background: var(--hero-accent); color: #061013; }
.btn-primary:hover { background: #62d4d8; color: #061013; }
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--hero-text); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-label { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); margin: 0 0 8px; letter-spacing: .02em; }
.section-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-desc { color: var(--muted); margin: 10px 0 0; max-width: 560px; }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.expertise-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.expertise-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.expertise-icon {
  width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.expertise-icon svg { width: 22px; height: 22px; }
.expertise-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.expertise-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 980px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise-grid { grid-template-columns: 1fr; } }

/* Tech strip */
.tech-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag, .tech-strip span {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem;
  padding: 4px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
a.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.post-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-thumb { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-thumb.placeholder {
  display: grid; place-items: center; color: var(--muted);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 22px 22px; background-color: var(--surface-2);
  font-family: var(--font-mono); font-size: .85rem;
}
.post-card-thumb.placeholder span { background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; border-radius: 6px; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.post-card-title { margin: 0 0 10px; font-size: 1.14rem; line-height: 1.35; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { color: var(--muted); font-size: .93rem; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.post-card-excerpt p { margin: 0; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--accent); }
.entry-meta .sep { opacity: .5; }

/* List layout (archives) */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.post-row:first-child { padding-top: 0; }
.post-row-date { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); padding-top: 4px; }
.post-row h2 { margin: 0 0 8px; font-size: 1.3rem; }
.post-row h2 a { color: var(--text); }
.post-row h2 a:hover { color: var(--accent); }
.post-row p { color: var(--muted); margin: 0 0 12px; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Page header ---------- */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.page-header h1 { margin: 0; }
.page-header .archive-description { color: var(--muted); margin-top: 12px; max-width: 640px; }
.page-header .archive-description p:last-child { margin-bottom: 0; }

/* ---------- Layout with sidebar ---------- */
.content-area { padding: 56px 0 80px; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: 1fr; } }

.widget-area .widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; font-size: .93rem;
}
.widget-title, .widget .wp-block-heading { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }
.tagcloud a, .wp-block-tag-cloud a { font-size: .8rem !important; display: inline-block; margin: 0 4px 6px 0; padding: 3px 9px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-mono); }

/* ---------- Single post ---------- */
.entry-header { padding: 64px 0 32px; }
.entry-header .post-card-cat { margin-bottom: 14px; }
.entry-title { margin: 0 0 18px; font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.03em; }
.entry-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.entry-thumbnail { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.entry-thumbnail img { display: block; width: 100%; }

.entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; padding-top: .3em; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 90px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote, .wp-block-quote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--muted); font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .94rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--surface-2); font-weight: 600; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--accent); }

/* Callouts: add class "note", "warning" or "tip" to a paragraph/group block */
.entry-content .note, .entry-content .warning, .entry-content .tip {
  padding: 16px 20px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  border-left: 3px solid var(--accent); margin: 1.6em 0;
}
.entry-content .warning { border-left-color: #d97706; }
.entry-content .tip { border-left-color: #16a34a; }

/* Code */
code, kbd, samp { font-family: var(--font-mono); font-size: .88em; }
:not(pre) > code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .12em .4em; border-radius: 5px; color: var(--text);
}
pre, .wp-block-code {
  position: relative; background: var(--code-bg); color: var(--code-text);
  border: 1px solid #1f2935; border-radius: var(--radius);
  padding: 20px 22px; overflow-x: auto; margin: 1.8em 0;
  font-family: var(--font-mono); font-size: .88rem; line-height: 1.65; tab-size: 4;
}
pre code, .wp-block-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.code-wrap { position: relative; }
.code-wrap pre { margin: 1.8em 0; }
.copy-code {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: .72rem; color: #9aa5b4;
  background: #161e28; border: 1px solid #263140; border-radius: 6px;
  padding: 4px 10px; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.code-wrap:hover .copy-code, .copy-code:focus { opacity: 1; }
.copy-code:hover { color: #fff; }
.copy-code.copied { color: #7ee2a8; opacity: 1; }
@media (hover: none) { .copy-code { opacity: 1; } }

/* Tags + author + nav at end of post */
.entry-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.author-box {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 40px;
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .94rem; }
.author-label { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-navigation a {
  display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); height: 100%;
}
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.post-navigation .nav-title { font-weight: 600; line-height: 1.4; }
@media (max-width: 640px) { .post-navigation { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }

/* ---------- Pagination ---------- */
.pagination, .nav-links.pagination-links { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  color: var(--text); font-family: var(--font-mono); font-size: .88rem;
}
.pagination .page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 1px solid var(--border); margin-left: 8px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; font-family: var(--font-mono); margin: 4px 0 10px; }
.comment-metadata a { color: var(--muted); }
.comment-content p { margin-bottom: .8em; }
.reply a { font-size: .85rem; font-weight: 600; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
input[type="submit"], button[type="submit"], .wp-block-button__link, .wp-block-search__button {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 8px; border: 0;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
[data-theme="dark"] input[type="submit"], [data-theme="dark"] button[type="submit"], [data-theme="dark"] .wp-block-search__button { color: #061013; }
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--accent-hover); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ---------- CTA / About block on home ---------- */
.about-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 40px 44px;
}
.about-band h2 { margin: 0 0 10px; font-size: 1.6rem; }
.about-band p { margin: 0; color: var(--muted); max-width: 620px; }
@media (max-width: 760px) { .about-band { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { font-size: .78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); margin: 12px 0 0; max-width: 360px; }
.social-links { display: flex; gap: 8px; margin-top: 18px; }
.social-links a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.footer-bottom .mono { font-family: var(--font-mono); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--accent); line-height: 1; margin: 0; }
.error-404 p { color: var(--muted); }
.error-404 .search-form { max-width: 440px; margin: 28px auto 0; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 900px) { .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; } }
.wp-caption { max-width: 100%; }
.sticky .post-card { border-color: var(--accent); }
.bypostauthor > .comment-body .fn::after { content: " · yazar"; font-weight: 400; color: var(--accent); font-size: .85em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.no-results { padding: 40px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
