/* ============================================================
   Cevdet Tellioğlu Insights — Editorial Theme
   ============================================================ */

:root {
    --bg:            #fbfbf9;
    --bg-alt:        #f4f3ef;
    --surface:       #ffffff;
    --ink:           #14110f;
    --ink-soft:      #4a443f;
    --ink-muted:     #8a847c;
    --line:          #e6e3dc;
    --line-strong:   #d6d2c8;
    --accent:        #9a2a1f;   /* editorial deep red */
    --accent-soft:   #c2453a;
    --gold:          #b08a3e;
    --radius:        14px;
    --radius-lg:     22px;
    --maxw:          1280px;
    --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(20,17,15,.04), 0 1px 3px rgba(20,17,15,.05);
    --shadow-md: 0 8px 30px rgba(20,17,15,.08);
    --shadow-lg: 0 24px 60px rgba(20,17,15,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; color: var(--ink); }

p { margin: 0 0 1.1em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--sans); font-weight: 600; font-size: .94rem;
    padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    line-height: 1;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-text { color: var(--accent); font-weight: 600; }
.btn-text::after { content: '→'; transition: transform .2s ease; display: inline-block; margin-left: .35em; }
.btn-text:hover::after { transform: translateX(4px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
    font-family: var(--sans); font-weight: 600; font-size: .72rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-muted); }
.tag {
    display: inline-flex; align-items: center;
    font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: .35em .8em; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft);
    border: 1px solid var(--line);
}
.tag-accent { background: rgba(154,42,31,.08); color: var(--accent); border-color: rgba(154,42,31,.18); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); display: inline-block; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251,251,249,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark {
    font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--ink); color: #fff; border-radius: 10px; letter-spacing: .02em;
}
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap; }
.site-nav a {
    font-size: .84rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .2rem 0;
    white-space: nowrap; transition: color .18s ease;
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
    background: var(--accent); transition: right .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Sections
   ============================================================ */
.site-main { display: block; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head .eyebrow { display: block; margin-bottom: .7rem; }
.section-head p { color: var(--ink-muted); max-width: 30ch; margin: 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { display: inline-block; margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 600; letter-spacing: -.025em; }
.hero-desc { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; margin: 1.4rem 0 2rem; line-height: 1.5; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Hero featured card */
.hero-feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md); transition: transform .3s ease, box-shadow .3s ease;
}
.hero-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-feature .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.hero-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-feature:hover .thumb img { transform: scale(1.04); }
.hero-feature .body { padding: 24px 26px 26px; }
.hero-feature h3 { font-size: 1.5rem; margin: .6rem 0 .5rem; line-height: 1.15; }
.hero-feature p { color: var(--ink-muted); font-size: .96rem; margin-bottom: 1rem; }

/* Author card */
.author-card {
    display: flex; align-items: center; gap: 1rem; margin-top: 22px;
    padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--ink), var(--accent));
    color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
}
.author-card .name { font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }
.author-card .role { font-size: .82rem; color: var(--ink-muted); }

/* ============================================================
   Article cards
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    display: flex; flex-direction: column; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.25rem; line-height: 1.2; margin: .7rem 0 .55rem; }
.card .summary { color: var(--ink-muted); font-size: .92rem; flex: 1; }
.card .card-foot { margin-top: 1.1rem; }

/* Big featured article (split) */
.feature-split {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: box-shadow .3s ease; box-shadow: var(--shadow-sm);
}
.feature-split:hover { box-shadow: var(--shadow-md); }
.feature-split .thumb { aspect-ratio: auto; min-height: 340px; overflow: hidden; background: var(--bg-alt); }
.feature-split .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-split:hover .thumb img { transform: scale(1.03); }
.feature-split .body { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-split h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 1rem 0 .8rem; }
.feature-split .summary { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Side small cards list */
.stack { display: grid; gap: 18px; }
.mini {
    display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; transition: transform .25s ease, box-shadow .25s ease;
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mini .thumb { width: 96px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini h4 { font-size: 1.02rem; line-height: 1.2; margin: .3rem 0; }
.mini .meta-row { font-size: .72rem; }

/* ============================================================
   Columns (editorial list)
   ============================================================ */
.column-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.column-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: baseline;
    padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .2s ease;
}
.column-item:hover { padding-left: 8px; }
.column-item .idx { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-muted); }
.column-item h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: .4rem; }
.column-item .summary { color: var(--ink-muted); font-size: .95rem; max-width: 60ch; }
.column-item .when { font-size: .82rem; color: var(--ink-muted); white-space: nowrap; }
.column-item:hover h3 { color: var(--accent); }

/* ============================================================
   Projects
   ============================================================ */
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,15,.86) 0%, rgba(20,17,15,.25) 55%, rgba(20,17,15,0) 100%); }
.project-card:hover img { transform: scale(1.06); }
.project-card .body { position: relative; z-index: 2; padding: 30px; color: #fff; }
.project-card h3 { color: #fff; font-size: 1.55rem; margin: .6rem 0 .5rem; }
.project-card .summary { color: rgba(255,255,255,.82); font-size: .92rem; max-width: 42ch; }
.project-card .tag { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.25); }

/* ============================================================
   About preview
   ============================================================ */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-preview .portrait {
    aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--bg-alt), #e9e6df); box-shadow: var(--shadow-md);
    display: grid; place-items: center;
}
.about-preview .portrait .monogram { font-family: var(--serif); font-size: 7rem; color: var(--line-strong); font-weight: 600; }
.about-preview h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.2rem; }
.about-preview p { color: var(--ink-soft); font-size: 1.05rem; }

/* ============================================================
   Newsletter CTA
   ============================================================ */
.cta {
    background: var(--ink); color: #fff; border-radius: var(--radius-lg);
    padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(194,69,58,.4), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; }
.cta p { color: rgba(255,255,255,.72); max-width: 48ch; margin: 1rem auto 2rem; position: relative; }
.newsletter-form { display: flex; gap: .7rem; max-width: 480px; margin: 0 auto; position: relative; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1; min-width: 220px; padding: .95em 1.2em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08); color: #fff; font-family: var(--sans); font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.newsletter-form .btn-primary { background: #fff; color: var(--ink); }
.newsletter-form .btn-primary:hover { background: var(--accent-soft); color: #fff; }
.newsletter-note { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 1rem; position: relative; }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { display: block; margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.page-hero p { color: var(--ink-muted); font-size: 1.15rem; max-width: 60ch; margin-top: 1rem; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 30px 0 6px; }
.filter-chip {
    font-size: .85rem; font-weight: 500; padding: .55em 1.1em; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--ink-soft); transition: all .18s ease; background: var(--surface);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   Article detail
   ============================================================ */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-head { text-align: center; padding: 64px 0 30px; }
.article-head .eyebrow { display: inline-block; margin-bottom: 1rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; }
.article-head .summary { font-size: 1.25rem; color: var(--ink-soft); margin: 1.3rem auto 1.5rem; max-width: 56ch; font-family: var(--serif); font-style: italic; }
.article-head .meta-row { justify-content: center; }
.article-cover { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0 44px; background: var(--bg-alt); box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.16rem; line-height: 1.8; color: #211d1a; }
.article-body p { margin: 0 0 1.4em; }
.article-body img, .prose img { max-width: 100%; height: auto; margin: 1.6em auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-body h2 { font-size: 1.7rem; margin: 2em 0 .7em; }
.article-body h3 { font-size: 1.35rem; margin: 1.6em 0 .6em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-share { display: flex; align-items: center; gap: 1rem; margin: 48px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }

.back-link { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; color: var(--ink-muted); margin: 28px 0; }
.back-link::before { content: '←'; }
.back-link:hover { color: var(--ink); }

/* ============================================================
   Project detail
   ============================================================ */
.project-hero { padding: 60px 0 0; }
.project-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-meta-grid .item .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .35rem; }
.project-meta-grid .item .v { font-family: var(--serif); font-size: 1.25rem; }

/* ============================================================
   About page
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.12rem; line-height: 1.8; color: var(--ink-soft); }
.prose p { margin-bottom: 1.4em; }
.about-hero-portrait { aspect-ratio: 16/7; border-radius: var(--radius-lg); margin: 30px 0 50px; background: linear-gradient(135deg, var(--bg-alt), #e9e6df); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.about-hero-portrait .monogram { font-family: var(--serif); font-size: 6rem; color: var(--line-strong); }
.about-hero-portrait.has-photo { aspect-ratio: auto; background: none; overflow: hidden; padding: 0; box-shadow: none; }
/* Scale any upload down to a sensible frame, keep aspect ratio, no crop. */
.about-hero-portrait.has-photo img { width: auto; max-width: 100%; max-height: 560px; height: auto; margin: 0 auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info .item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .3rem; }
.contact-info .item .v { font-size: 1.1rem; font-weight: 500; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
    width: 100%; padding: .85em 1em; border: 1px solid var(--line-strong); border-radius: 10px;
    font-family: var(--sans); font-size: .98rem; background: var(--bg); color: var(--ink); transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: .92rem; margin-bottom: 20px; }
.alert-success { background: #eef6ee; color: #235c2c; border: 1px solid #cfe6cf; }
.alert-error { background: #fbeceb; color: #8a2018; border: 1px solid #f0cfcc; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 80px 20px; color: var(--ink-muted); }
.empty h3 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 64px 28px 44px; }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.footer-tagline { color: var(--ink-muted); margin: .7rem 0 1.4rem; max-width: 40ch; font-size: .95rem; }
.footer-social { display: flex; gap: .7rem; flex-wrap: wrap; }
.footer-social .social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-strong); color: var(--ink-soft);
    transition: all .2s ease;
}
.footer-social .social-icon svg { width: 18px; height: 18px; }
.footer-social .social-icon:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; align-content: start; }
.footer-nav a { font-size: .92rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; font-size: .82rem; color: var(--ink-muted); }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Floating "Günün Odağı" dock
   ============================================================ */
.focus-dock {
    position: fixed; left: 24px; bottom: 24px; z-index: 60; width: 340px; max-width: calc(100vw - 36px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 18px 20px 16px;
    transform: translateY(20px); opacity: 0; transition: transform .5s ease, opacity .5s ease;
}
.focus-dock.show { transform: none; opacity: 1; }
.focus-dock.hide { transform: translateY(20px); opacity: 0; pointer-events: none; }
.focus-close {
    position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border: none; background: var(--bg-alt);
    border-radius: 50%; color: var(--ink-muted); font-size: 1.05rem; line-height: 1; cursor: pointer; transition: .15s;
}
.focus-close:hover { background: var(--ink); color: #fff; }
.focus-author { display: flex; align-items: center; gap: .7rem; margin-bottom: 12px; }
.focus-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ink), var(--accent)); color: #fff;
    font-family: var(--serif); font-weight: 600; font-size: .9rem;
}
.focus-name { display: block; font-family: var(--serif); font-weight: 600; font-size: .98rem; line-height: 1.1; }
.focus-label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.focus-track { position: relative; min-height: 66px; }
.focus-item {
    position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease;
    pointer-events: none; color: inherit; display: block;
}
.focus-item.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.focus-text { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; color: var(--ink); margin: 0; }
.focus-more { display: inline-block; margin-top: 8px; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--accent); }
a.focus-item:hover .focus-text { color: var(--accent); }
.focus-dots { display: flex; gap: 6px; margin-top: 14px; }
.focus-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--line-strong); cursor: pointer; padding: 0; transition: .2s; }
.focus-dot.is-active { background: var(--accent); width: 18px; border-radius: 4px; }

@media (max-width: 760px) {
    .focus-dock { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 16px 14px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-split { grid-template-columns: 1fr; }
    .feature-split .thumb { min-height: 260px; }
    .about-preview, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .card-grid, .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* Collapse the nav to a hamburger menu before the wide bar can overflow */
@media (max-width: 1280px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 24px 28px; gap: .2rem;
        transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-md);
        overflow-y: auto; max-height: calc(100vh - 74px);
    }
    .site-nav.open { transform: translateY(0); }
    .site-nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1.05rem; white-space: normal; }
    .site-nav a::after { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 60px 0; }
    .container { padding: 0 20px; }
    .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .feature-split .body { padding: 30px 26px; }
    .column-item { grid-template-columns: 1fr; gap: 8px; }
    .column-item .idx, .column-item .when { display: none; }
    .project-meta-grid { grid-template-columns: 1fr; gap: 16px; }
    .cta { padding: 48px 26px; }
    .mini { grid-template-columns: 84px 1fr; }
}

/* ============================================================
   "Basından" — press / photo gallery
   ============================================================ */
/* Fixed-size thumbnails: every tile is the same 4:3 box regardless of
   the source image's dimensions (object-fit crops to fill). */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.gallery-item {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    background: var(--bg-alt);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    background: linear-gradient(to top, rgba(20,17,15,.88) 0%, rgba(20,17,15,.35) 55%, rgba(20,17,15,0) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
.gi-meta { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.gi-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; line-height: 1.3; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(14,11,9,.94);
    backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lb-figure {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-figure img {
    max-width: 92vw;
    max-height: 74vh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.lb-caption {
    margin-top: 16px;
    text-align: center;
    color: #fff;
    max-width: 70ch;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lb-meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.lb-title { font-family: var(--serif); font-size: 1.3rem; }
.lb-text { color: rgba(255,255,255,.82); font-size: .95rem; }
.lb-link { color: var(--gold); font-weight: 600; margin-top: 6px; }
.lb-link:hover { text-decoration: underline; }
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 22px; right: 24px; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.2rem; line-height: 1; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item figcaption { opacity: 1; transform: none; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lightbox { padding: 20px; }
}

/* ============================================================
   "Videolar" — YouTube video showcase
   ============================================================ */
.video-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(154,42,31,.92);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .25s ease, background .25s ease;
}
.play-btn svg { width: 28px; height: 28px; margin-left: 3px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.video-card .body { padding: 20px 22px 24px; }
.video-card h3 { font-size: 1.3rem; margin: .5rem 0 .4rem; line-height: 1.28; }
.video-card .summary { color: var(--ink-muted); font-size: .92rem; }

/* Video modal */
.video-lightbox { padding: 30px; }
.vlb-frame { width: min(960px, 94vw); }
.vlb-embed {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.vlb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlb-title {
    margin-top: 16px;
    text-align: center;
    color: #fff;
    font-family: var(--serif);
    font-size: 1.25rem;
}

/* ============================================================
   "Galeri" — mixed photo / video / post feed
   ============================================================ */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.gf-tab {
    padding: .5rem 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .2s ease;
}
.gf-tab:hover { border-color: var(--ink); color: var(--ink); }
.gf-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gi-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(20,17,15,.62);
    backdrop-filter: blur(3px);
}
.gi-video { cursor: pointer; }
.gi-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(154,42,31,.92);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .25s ease, background .25s ease;
}
.gi-play svg { width: 26px; height: 26px; margin-left: 3px; }
.gi-video:hover .gi-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }

/* Post cards inside the gallery feed — same fixed tile as photos */
.gallery-item.gi-post {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--line);
}
.gi-post img { width: 100%; height: 45%; flex: 0 0 45%; object-fit: cover; }
.gi-post-body { padding: 16px 18px; overflow: hidden; flex: 1; min-height: 0; }
.gi-post-body h3 { font-size: 1.32rem; margin: .5rem 0 .5rem; line-height: 1.3; }
.gi-post-body p { color: var(--ink-muted); font-size: .93rem; }
.gi-meta-dark { color: var(--accent); font-weight: 600; }
.gi-post-more { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.gi-post:hover .gi-post-more { text-decoration: underline; }

/* Full-width gallery layout (galeri.php) */
.container-fluid { width: 100%; margin: 0 auto; padding: 0 40px; }
.galeri-wide .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (min-width: 1700px) { .galeri-wide .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1200px) { .galeri-wide .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .container-fluid { padding: 0 24px; } .galeri-wide .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .container-fluid { padding: 0 16px; } .galeri-wide .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   "Kitaplar" — PDF library + reader
   ============================================================ */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.book-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #201b17, #4a3f34);
    overflow: hidden;
}
.book-cover { position: relative; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.book-format {
    position: absolute; top: 10px; right: 10px;
    background: rgba(20,17,15,.72); color: #fff;
    font-size: .66rem; font-weight: 700; letter-spacing: .1em;
    padding: .22rem .5rem; border-radius: 4px;
}
.book-card:hover .book-cover img { transform: scale(1.05); }
.book-cover-fallback { color: rgba(255,255,255,.72); font-family: var(--serif); font-size: 1.6rem; letter-spacing: .12em; }
.book-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.book-author { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.book-body h3 { font-size: 1.28rem; margin: .35rem 0 .5rem; line-height: 1.3; }
.book-actions { display: flex; gap: 10px; margin-top: auto; }

/* Reader — shared shell for the PDF and EPUB viewers */
.reader-bar { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.reader-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; flex-wrap: wrap; }
.reader-meta { display: flex; align-items: center; gap: 18px; min-width: 0; }
.reader-title { font-size: 1.35rem; line-height: 1.25; }
.reader-author { color: var(--ink-muted); font-size: .9rem; }
.reader-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reader-frame {
    width: 100%;
    height: calc(100vh - 210px);
    min-height: 520px;
    background: #333;
}
.reader-frame object,
.reader-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.reader-fallback { padding: 60px 20px; text-align: center; color: #fff; }
.reader-fallback p { margin-bottom: 20px; }

.reader-shell {
    position: relative;
    background: #2a2622;
    padding: 0 0 26px;
    display: flex;
    flex-direction: column;
}
/* Full-screen reading overlay (used instead of the Fullscreen API so it
   also works on iOS, where Safari has none on the iPhone). */
.reader-shell.is-immersive {
    position: fixed;
    inset: 0;
    z-index: 300;
    padding: 0;
    overflow: hidden;
}
.reader-shell.is-immersive .container,
.reader-shell.is-immersive .reader-progress ~ .container { display: none; }
body.reader-locked { overflow: hidden; }

/* Toolbar */
.reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: rgba(28, 25, 22, .96);
    border-bottom: 1px solid rgba(255,255,255,.1);
    backdrop-filter: saturate(140%) blur(6px);
}
.rt-group { display: flex; align-items: center; gap: 8px; }
.rt-center { flex: 1; justify-content: center; }
.rt-right { justify-content: flex-end; }
.rt-btn {
    min-width: 40px; height: 40px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); color: #fff;
    border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
    font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.rt-btn-wide { font-size: .85rem; padding: 0 14px; letter-spacing: .01em; }
.rt-btn:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.rt-btn:disabled { opacity: .35; cursor: default; }
.rt-label { color: rgba(255,255,255,.9); font-size: .9rem; min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; }
.rt-label-sm { min-width: 52px; font-size: .82rem; }
.rt-select {
    max-width: 220px; height: 40px;
    background: rgba(255,255,255,.1); color: #fff;
    border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
    padding: 0 12px; font: inherit; font-size: .85rem; cursor: pointer;
}
.rt-select option { color: #23201d; background: #fff; }

/* Loading / fallback */
.reader-loading {
    position: absolute; inset: 64px 0 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    color: rgba(255,255,255,.85); font-size: .95rem; text-align: center; padding: 0 20px;
    pointer-events: none;
}
.reader-loading[hidden] { display: none; }
.reader-spinner {
    width: 42px; height: 42px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold);
    animation: flipspin 0.9s linear infinite;
}
@keyframes flipspin { to { transform: rotate(360deg); } }
.reader-fallback-box { max-width: 1000px; margin: 24px auto 0; padding: 0 16px; text-align: center; color: rgba(255,255,255,.9); }
.reader-fallback-box .reader-frame { height: 78vh; min-height: 420px; margin: 18px 0; border-radius: var(--radius); overflow: hidden; }
.reader-fallback-box[hidden] { display: none; }

/* Reading progress (EPUB) */
.reader-progress { height: 3px; background: rgba(255,255,255,.12); }
.reader-progress-bar { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }

/* ---- PDF: continuous scroll view ---- */
.pdf-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;   /* pinch is handled by the reader itself */
    height: calc(100vh - 190px);
    min-height: 420px;
    padding: 14px 0 24px;
}
.pdf-scroll[hidden] { display: none; }
.reader-shell.is-immersive .pdf-scroll { padding-top: 6px; }
.pdf-pages { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; transform-origin: 50% 0; }
.pdf-page {
    position: relative;
    width: 100%;
    background: #f3f1ec;
    border-radius: 3px;
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
    overflow: hidden;
}
.pdf-canvas { display: block; width: 100%; height: 100%; }
.pdf-page-num {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: rgba(20,17,15,.28); font-size: 1.1rem; letter-spacing: .08em;
}

/* ---- PDF: page-flip view ---- */
.flip-stage {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 12px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-x pan-y;   /* native pinch-zoom devre dışı */
}
.flip-stage[hidden] { display: none; }
.flip-book { margin: 0 auto; width: 100%; }
.flip-book .stf__parent { margin: 0 auto; }

/* ---- EPUB view ---- */
.epub-shell { background: #2a2622; }
.epub-area {
    position: relative;
    height: calc(100vh - 190px);
    min-height: 420px;
    max-width: 1100px;
    width: 100%;
    margin: 16px auto 0;
    padding: 0 10px;
}
.reader-shell.is-immersive .epub-area { margin-top: 8px; }
.epub-viewer {
    height: 100%;
    padding: 16px 10px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    overflow: hidden;
}
.epub-shell[data-theme="sepia"] .epub-viewer { background: #f6efe2; }
.epub-shell[data-theme="dark"]  .epub-viewer { background: #1d1a17; }
.epub-viewer iframe { border: 0; }
/* Reserve the scrollbar so epub.js measures the real reading width, and
   never show a sideways scrollbar under the text. */
.epub-viewer .epub-container { overflow-x: hidden !important; scrollbar-gutter: stable; }
.epub-edge {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 76px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(28,25,22,.55); color: #fff;
    border: 0; border-radius: 999px; cursor: pointer;
    font-size: 1.7rem; line-height: 1; opacity: .55; transition: opacity .2s ease;
}
.epub-edge:hover { opacity: 1; }
.epub-edge[hidden] { display: none; }
.epub-edge-prev { left: -6px; }
.epub-edge-next { right: -6px; }

/* Tablets and phones — the reader takes the full screen and the
   toolbar stays reachable while scrolling. */
@media (max-width: 860px) {
    /* One compact row so the reader itself gets the screen. */
    .reader-bar-inner { padding: 10px 0; gap: 10px; flex-wrap: nowrap; }
    .reader-meta { gap: 10px; min-width: 0; flex: 1; }
    .reader-meta > div { min-width: 0; }
    .reader-title {
        font-size: .98rem;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .reader-author { display: none; }
    .back-link { flex: 0 0 auto; font-size: .82rem; }
    .reader-actions { flex: 0 0 auto; gap: 6px; }
    .reader-actions .btn { padding: .45rem .7rem; font-size: .76rem; }
    .reader-actions .btn-outline { display: none; }   /* "Klasik PDF" — the reader covers it */
    .reader-toolbar { padding: 8px 8px; gap: 6px; }
    .rt-btn { min-width: 38px; height: 38px; padding: 0 8px; font-size: 1rem; }
    .rt-btn-wide { font-size: .78rem; padding: 0 10px; }
    .rt-label { min-width: 66px; font-size: .82rem; }
    .rt-label-sm { min-width: 44px; }
    .rt-select { max-width: 130px; height: 38px; font-size: .78rem; }
    .rt-left, .rt-right { flex: 0 0 auto; }
    .rt-center { order: 3; flex-basis: 100%; }
    .pdf-scroll { height: calc(100vh - 132px); padding: 8px 0 18px; }
    .pdf-pages { gap: 10px; }
    .epub-area { height: calc(100vh - 132px); margin-top: 8px; padding: 0 6px; }
    .epub-viewer { padding: 10px 4px; }
    .flip-stage { padding: 12px 4px 0; min-height: 52vh; }
}

@media (max-width: 620px) {
    .reader-toolbar { position: sticky; }
    .rt-right .rt-btn-wide { display: none; }   /* keep the bar to one row */
    .epub-shell .rt-right .rt-btn-wide { display: inline-flex; }
    .pdf-page { border-radius: 0; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
}

/* ============================================================
   Article audio player ("sesli dinle")
   ============================================================ */
.audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    padding: 16px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.audio-player .ap-icon {
    flex: none;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    border-radius: 999px;
}
.audio-player .ap-icon svg { width: 20px; height: 20px; }
.audio-player .ap-info { flex: none; }
.audio-player .ap-label { display: block; font-weight: 600; font-size: .95rem; }
.audio-player .ap-sub { display: block; font-size: .8rem; color: var(--ink-muted); }
.audio-player audio { flex: 1; min-width: 160px; height: 40px; }
.has-audio-badge {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--accent); font-weight: 600;
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.share-bar .label { font-weight: 600; margin-right: 4px; }
.share-btn {
    padding: .4rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .2s ease;
}
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================================================
   "Kurslar" — courses + application
   ============================================================ */
.course-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-status {
    position: absolute; top: 14px; left: 14px;
    padding: .3rem .8rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; color: #fff;
}
.course-status.is-open { background: #2f7d4f; }
.course-status.is-closed { background: rgba(20,17,15,.7); }
.course-body { padding: 22px 24px 26px; display: flex; flex-direction: column; }
.course-body h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.course-body .summary { color: var(--ink-muted); font-size: .95rem; }
.course-meta { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.course-meta strong { color: var(--ink); font-weight: 600; }
.course-body .btn { align-self: flex-start; }

.course-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.course-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.course-cover img { width: 100%; }
/* Dergi/kitap detay kapakları (dergi.php, yayin.php) — dergi-sayi.php ve
   kurs.php'nin kendi .course-cover kullanımını etkilemeden hafifçe küçült. */
.course-cover-compact { max-width: 82%; margin-left: auto; margin-right: auto; }
.course-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.course-facts { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.course-facts .cf { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.course-facts .cf:last-child { border-bottom: 0; }
.course-facts .cf span { color: var(--ink-muted); font-size: .9rem; }
.course-facts .cf strong { text-align: right; }
.course-aside .form-card h3 { margin-bottom: 16px; }

/* "Kitap Hakkında" — description box above the read/download buttons on
   yayin.php; same .form-card shell, tinted so it reads as a distinct block
   from the button card beneath it. */
.book-about { background: color-mix(in srgb, var(--bg-alt), var(--bg)); }
.book-about-label { font-size: 1.15rem; margin: 0 0 12px; }
.book-about .article-body { font-size: .97rem; line-height: 1.75; color: var(--ink-soft); }
.book-about .article-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .course-detail { grid-template-columns: 1fr; }
    .course-aside { position: static; }
}

/* ============================================================
   "Dergi" — magazine issue table of contents
   ============================================================ */
.issue-toc { list-style: none; padding: 0; margin: 0; }
.issue-toc li { border-bottom: 1px solid var(--line); }
.issue-toc li:last-child { border-bottom: 0; }
.issue-toc a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; color: var(--ink); }
.issue-toc a:hover { color: var(--accent); }
.issue-toc a strong { font-weight: 600; }
.issue-toc .toc-page { flex: none; width: 2.2em; color: var(--ink-muted); font-size: .85rem; font-family: var(--sans); }
.issue-toc .toc-author { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-muted); margin-top: 2px; }

/* ============================================================
   Comments (moderated)
   ============================================================ */
.comments { margin-top: 20px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.6rem; margin-bottom: 24px; }
.comments-title .c-count { color: var(--ink-muted); font-weight: 400; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 22px; }
.comment { display: flex; gap: 16px; }
.c-avatar {
    flex: none; width: 44px; height: 44px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; font-weight: 600; font-family: var(--serif);
}
.c-body { flex: 1; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.c-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.c-name { font-weight: 600; }
.c-date { color: var(--ink-muted); font-size: .82rem; }
.c-body p { margin: 0; color: var(--ink-soft); }
.comment-form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.comment-form-card h3 { font-size: 1.3rem; }
.comment-form-card .hint { color: var(--ink-muted); font-size: .88rem; margin-bottom: 16px; }
.comment-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form-card .field { margin-bottom: 16px; }
.comment-form-card label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.comment-form-card input,
.comment-form-card textarea {
    width: 100%; padding: .7rem .9rem; border: 1px solid var(--line-strong);
    border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--ink);
}
.comment-form-card textarea { min-height: 120px; resize: vertical; }
.comment-form-card input:focus,
.comment-form-card textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 620px) { .comment-form-card .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   "Şikayetim var" — complaints board
   ============================================================ */
.complaint-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: start; }
.complaint-feed h3, .complaint-layout .form-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.complaint-item {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.complaint-head { margin-bottom: 10px; }
.complaint-head h4 { font-size: 1.2rem; margin-bottom: 2px; }
.complaint-meta { color: var(--ink-muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.badge-resolved { background: #2f7d4f; color: #fff; font-size: .7rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }
.complaint-body { color: var(--ink-soft); }
.complaint-response {
    margin-top: 16px; padding: 14px 18px;
    background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
.cr-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.complaint-response p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .complaint-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 620px) {
    .book-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
    .reader-frame { height: calc(100vh - 260px); min-height: 340px; }
    .audio-player { flex-wrap: wrap; }
}

/* ============================================================
   Share icons (icon-only share buttons + lightbox share row)
   ============================================================ */
.share-btn.share-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; cursor: pointer; font-family: inherit;
}
.share-btn.share-icon svg { width: 17px; height: 17px; }
.share-copy.copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-share { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lb-share .share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border-radius: 999px;
    background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer;
}
.lb-share .share-btn svg { width: 16px; height: 16px; }
.lb-share .share-btn:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   Floating WhatsApp button (bottom-right)
   ============================================================ */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    display: flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff;
    padding: 13px 16px; border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    font-weight: 600; font-size: .92rem; line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.32); color: #fff; }
.wa-float svg { width: 22px; height: 22px; flex: 0 0 auto; }
@media (max-width: 620px) {
    .wa-float { right: 14px; bottom: 14px; padding: 13px; }
    .wa-float-label { display: none; }
}

/* ============================================================
   Gallery category filter row
   ============================================================ */
.gallery-cat-filters { margin-top: -22px; }
.gf-label { align-self: center; font-size: .82rem; font-weight: 600; color: var(--ink-muted); margin-right: 4px; }

/* ============================================================
   Forum — short messages + comments (social-style feed)
   ============================================================ */
.forum-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.forum-layout .forum-post-form { position: sticky; top: 90px; }
.forum-feed { display: flex; flex-direction: column; gap: 20px; }
.forum-post {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.forum-post .share-bar { margin: 14px 0 0; padding-top: 14px; }
.forum-mini-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.forum-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    background: var(--ink); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.forum-avatar.sm { width: 30px; height: 30px; font-size: .85rem; }
.forum-name { font-weight: 600; }
.forum-when { color: var(--ink-muted); font-size: .82rem; font-weight: 400; }
.forum-body { white-space: pre-line; color: var(--ink-soft); }
.forum-comments { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.forum-comment { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.forum-comment p { color: var(--ink-soft); font-size: .93rem; margin-top: 2px; }
.forum-reply { margin-top: 14px; }
.forum-reply summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent); }
.forum-reply form { margin-top: 12px; }
.forum-reply .field { margin-bottom: 10px; }
.forum-reply input, .forum-reply textarea {
    width: 100%; padding: .7em .9em; border: 1px solid var(--line-strong);
    border-radius: 10px; font-family: var(--sans); font-size: .92rem; background: var(--bg-alt);
}
.forum-reply input:focus, .forum-reply textarea:focus { outline: none; border-color: var(--ink); background: #fff; }

/* Homepage forum block */
.forum-home { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.forum-home .forum-post-form input, .forum-home .forum-post-form textarea {
    width: 100%; padding: .75em 1em; border: 1px solid var(--line-strong);
    border-radius: 10px; font-family: var(--sans); font-size: .95rem; background: var(--bg-alt);
}
.forum-home .forum-post-form input:focus, .forum-home .forum-post-form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.forum-home-feed { display: flex; flex-direction: column; gap: 14px; }
.forum-mini {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.forum-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.forum-mini p { color: var(--ink-soft); font-size: .95rem; }
.forum-count { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 600; color: var(--accent); }
@media (max-width: 980px) {
    .forum-layout, .forum-home { grid-template-columns: 1fr; }
    .forum-layout .forum-post-form { position: static; }
}

/* ============================================================
   Surveys (anket.php)
   ============================================================ */
.survey-card { max-width: 720px; margin: 0 auto; }
.survey-q { padding: 18px 0; border-top: 1px solid var(--line); }
.survey-q > label { font-size: 1rem; margin-bottom: .8rem; }
.survey-opt {
    display: flex; align-items: center; gap: 10px;
    padding: .55em .9em; margin-bottom: 8px;
    border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer; font-size: .95rem; color: var(--ink-soft);
    transition: border-color .15s ease, background .15s ease;
}
.survey-opt:hover { border-color: var(--ink); }
.survey-opt input { accent-color: var(--accent); }

/* ============================================================
   Misc: homepage complaints, about portrait, book downloads
   ============================================================ */
.home-complaints { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .home-complaints { grid-template-columns: 1fr; } }
.about-preview .portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-downloads { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--ink-muted); }
