/*------------------------------------------------------------------
    Bookro – Ortak Tasarım Sistemi
    Tüm sayfalarda aynı header, sepet butonu, footer, form ve tipografi.
    Yükleme sırası: plugins.css → style.css → album.css → bookro.css
-------------------------------------------------------------------*/

/* ─── Tasarım Değişkenleri ────────────────────────────────────── */

:root {
    --bk-bg:        #f6f8f4;
    --bk-surface:   #ffffff;
    --bk-ink:       #191919;
    --bk-ink-soft:  rgba(25, 25, 25, 0.62);
    --bk-ink-mute:  rgba(25, 25, 25, 0.45);
    --bk-border:    rgba(25, 25, 25, 0.10);
    --bk-gold:      #c39a55;
    --bk-forest:    #17201b;
    --bk-green:     #2f6f4e;
    --bk-radius:    8px;
    --bk-shadow:    0 20px 50px rgba(25, 25, 25, 0.07);

    /* Eski album-* isimleri hiçbir yerde tanımlı değildi; geriye dönük eşleme */
    --album-gold:   var(--bk-gold);
    --album-dark:   var(--bk-ink);
    --album-gray:   var(--bk-ink-mute);
    --album-cream:  #fbfaf7;
    --album-border: var(--bk-border);
    --album-radius: var(--bk-radius);
}

/* ─── Tipografi: tek dil (DM Sans) ────────────────────────────── */

.bookro-page h1,
.bookro-page h2,
.bookro-page h3,
.bookro-page h4,
.bookro-page .page-display {
    font-family: 'DM Sans', sans-serif !important;
    font-style: normal !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bookro-page em,
.bookro-page i.accent {
    font-style: normal;
    color: var(--bk-gold);
}

.bookro-page .page-kicker {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bk-ink-mute);
}

.bookro-page .page-display {
    font-size: clamp(30px, 4.1vw, 57px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.bookro-page .page-lead {
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    color: var(--bk-ink-soft);
}

/* ─── Header ──────────────────────────────────────────────────── */

#header.bookro-header {
    padding: 0 !important;
    background: var(--bk-bg);
    border-bottom: 1px solid var(--bk-border);
}

#header.bookro-header .header-wrapper {
    align-items: center;
    min-height: 78px;
    flex-wrap: nowrap;
    gap: 18px;
}

#header.bookro-header nav.classic ul.menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

#header.bookro-header nav.classic ul.menu li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

#header.bookro-header nav.classic ul.menu li a {
    font-size: 14px;
    color: var(--bk-ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

#header.bookro-header nav.classic ul.menu li a:hover,
#header.bookro-header nav.classic ul.menu li.current a {
    color: var(--bk-ink);
}

#header.bookro-header .site-logo img,
#header.bookro-header .sticky-logo img {
    height: 32px;
    width: auto;
    display: block;
}

#header.bookro-header .nayla-button a {
    font-size: 14px;
    color: var(--bk-ink-soft);
}

#header.bookro-header .nayla-button a:hover { color: var(--bk-ink); }

/* ─── Sepet Butonu (tek bileşen) ──────────────────────────────── */

.bk-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 9px 9px 16px;
    border: 1px solid var(--bk-border);
    border-radius: 999px;
    background: var(--bk-surface);
    color: var(--bk-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.bk-cart:hover {
    border-color: var(--bk-forest);
    background: var(--bk-forest);
    color: #ffffff;
}

.bk-cart .material-icons {
    font-size: 17px;
    line-height: 1;
}

/* Sayaç: album.js yalnızca data-count'u günceller, rozet ::after ile çizilir.
   (attr() sadece kendi elemanının niteliğini okuduğu için rozet .bk-cart üzerinde.) */
.bk-cart .bk-cart-count { display: none; }

.bk-cart::after {
    content: attr(data-count);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bk-ink);
    color: var(--bk-bg);
    font-size: 11px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.bk-cart:hover::after {
    background: var(--bk-gold);
    color: var(--bk-forest);
}

.bk-cart:not([data-count])::after { display: none; }
.bk-cart[data-count="0"]::after  { opacity: 0.4; }

/* Eski tema butonunu her yerde bastır */
.nayla-cart-button {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
}
.nayla-cart-button::before,
.nayla-cart-button::after { display: none !important; }

/* ─── Formlar ─────────────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bk-ink-mute);
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    color: var(--bk-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

select.form-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

textarea.form-input { min-height: 132px; resize: vertical; }

.form-input::placeholder { color: var(--bk-ink-mute); }

.form-input:focus {
    border-color: var(--bk-gold);
    box-shadow: 0 0 0 3px rgba(195, 154, 85, 0.14);
}

.form-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Butonlar ────────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: 1px solid var(--bk-ink);
    border-radius: var(--bk-radius);
    background: var(--bk-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover { background: var(--bk-forest); border-color: var(--bk-forest); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    background: transparent;
    color: var(--bk-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.btn-ghost:hover { border-color: var(--bk-ink); }

/* ─── Form durum mesajı ───────────────────────────────────────── */

.form-status {
    display: none;
    padding: 13px 16px;
    border-radius: var(--bk-radius);
    font-size: 14px;
    line-height: 1.5;
}

.form-status.show { display: block; }
.form-status.ok   { background: rgba(47, 111, 78, 0.10); color: var(--bk-green); }
.form-status.err  { background: rgba(190, 60, 50, 0.09);  color: #a3372e; }

/* ─── Sayfa başlığı bloğu ─────────────────────────────────────── */

.bk-page-head {
    padding: 128px 0 22px;
    background: var(--bk-bg);
    border-bottom: 1px solid var(--bk-border);
}

.bk-page-head .page-lead { margin-bottom: 0; }

/* ─── Bilgi kartı ─────────────────────────────────────────────── */

.bk-info-card {
    padding: 26px;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
}

.bk-info-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(195, 154, 85, 0.14);
    color: var(--bk-gold);
}

.bk-info-ico .material-icons { font-size: 20px; }

.bk-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bk-ink-mute);
    margin-bottom: 6px;
}

.bk-info-value { font-size: 16px; color: var(--bk-ink); line-height: 1.65; }

/* ─── Footer ──────────────────────────────────────────────────── */

body.bookro-page.light {
    --mainBackground: var(--bk-bg);
    background: var(--bk-bg);
}

body.bookro-page #page,
body.bookro-page .site-main { background: transparent; }

#footer.site-footer,
#footer.bookro-footer {
    background: var(--bk-bg) !important;
    border-top: 1px solid var(--bk-border);
}

.bookro-footer .footer-top-wrapper {
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 0;          /* tema 100px veriyordu */
    align-items: flex-start;
}

.bookro-footer .footer-top-wrapper > div { margin-bottom: 18px; }

.bookro-footer .footer-col-title {
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bk-ink-mute);
}

.bookro-footer .menu { margin: 0; padding: 0; list-style: none; }

.bookro-footer .footer-bottom-wrapper {
    border-top: 1px solid var(--bk-border);
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 0 !important;
    align-items: center;
}

.bookro-footer .footer-bottom-wrapper > div { margin-bottom: 0; }

/* Telif + marka satırı */
.footer-copy {
    font-size: 12px;
    color: rgba(25, 25, 25, 0.42);
    margin: 0 0 3px;
}

.footer-brand {
    font-size: 12px;
    color: rgba(25, 25, 25, 0.42);
    margin: 0;
}

.footer-brand a {
    color: rgba(25, 25, 25, 0.62);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 25, 25, 0.22);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-brand a:hover {
    color: var(--bk-gold);
    border-bottom-color: var(--bk-gold);
}

/* Footer üstü boşluğu kıs: tema 100px padding + son bölümün 100px margin'i üst üste biniyordu */
#footer.bookro-footer { padding-top: 40px !important; }

/* Son bölümün iç .wrapper'ı 150px alt margin taşıyor ve margin-collapse ile
   dışarı sızıyordu; footer'dan önceki boşluğun asıl sebebi buydu. */
.bookro-page #content > .section:last-child { margin-bottom: 40px; }
.bookro-page #content > .section:last-child > .wrapper,
.bookro-page #content > .section:last-child > .wrapper-full { margin-bottom: 0; }

@media (max-width: 768px) {
    #footer.bookro-footer { padding-top: 26px !important; }
    .bookro-footer .footer-top-wrapper { padding-top: 20px; padding-bottom: 4px; margin-bottom: 0; }
    .bookro-footer .footer-bottom-wrapper { padding-top: 14px; padding-bottom: 14px; }
    .bookro-footer .footer-bottom-wrapper .align-right { display: none; }
    .bookro-page #content > .section:last-child { margin-bottom: 24px; }
}

#footer.site-footer .menu li { margin: 0 0 10px; }

#footer.site-footer .menu a {
    font-size: 14px;
    color: var(--bk-ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

#footer.site-footer .menu a:hover { color: var(--bk-ink); }

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    #header.bookro-header .header-wrapper {
        padding: 0 18px;
        min-height: 66px;
        gap: 14px;
    }
    #header.bookro-header .c-col-1,
    #header.bookro-header .c-col-2,
    #header.bookro-header .c-col-3,
    #header.bookro-header .c-col-4,
    #header.bookro-header .c-col-5,
    #header.bookro-header .sm-6 {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    #header.bookro-header .c-col-5 { order: 3; margin-left: 0; }
    #header.bookro-header .align-right { order: 2; margin-left: auto; }
    #header.bookro-header .site-logo img,
    #header.bookro-header .sticky-logo img { height: 26px; }
    #header.bookro-header .menu-toggle {
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        flex: 0 0 34px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #header.bookro-header .toggle-lines { width: 28px !important; }

    .bk-cart { padding: 8px 8px 8px 12px; font-size: 12px; }
    .bk-cart .bk-cart-label { display: none; }

    .bk-page-head { padding: 100px 0 14px; }
}

/* ─── İç sayfa marquee başlığı ────────────────────────────────── */

.bk-page-marquee { padding-top: 150px; padding-bottom: 40px; }
.bk-page-marquee .nayla-marquee { opacity: 0.14; }

@media (max-width: 768px) {
    .bk-page-marquee { padding-top: 108px; padding-bottom: 22px; }
}

/* ─── İç sayfa metin blokları ─────────────────────────────────── */

.bookro-page .bk-prose p { color: #696969; margin-bottom: 14px; line-height: 1.85; }
.bookro-page .bk-prose ul { padding-left: 20px; margin: 0 0 20px; }
.bookro-page .bk-prose li { color: #696969; line-height: 1.85; margin-bottom: 8px; }
.bookro-page .bk-prose strong { color: var(--bk-ink); font-weight: 600; }
.bookro-page .bk-prose a { color: var(--bk-gold); }
.bookro-page .bk-prose .text-h5 { margin-top: 46px; margin-bottom: .5em; }
.bookro-page .bk-prose .text-h5:first-child { margin-top: 0; }

.bk-callout {
    padding: 22px 24px;
    margin: 26px 0;
    background: var(--secondaryBackground, #ebe9e4);
    border-left: 2px solid var(--bk-gold);
}
.bk-callout p:last-child { margin-bottom: 0; }

/* ─── Temada eksik kalan grid kolonları ───────────────────────── */
/* Nayla .c-col-7 ve .c-col-11 için genişlik tanımlamamış; kolon çöküyordu. */

.c-col-7  { width: 58.333333%; }
.c-col-11 { width: 91.666666%; }

@media only screen and (max-width: 767px) {
    .sm-7  { width: 58.333333%; }
    .sm-11 { width: 91.666666%; }
}

/* ─── nayla-button içinde <button> desteği ────────────────────── */
/* Tema yalnızca .nayla-button a'yı biçimlendiriyor; form gönder butonu
   biçimsiz düz metin olarak kalıyordu. Aynı kuralları button'a da veriyoruz. */

.nayla-button button {
    text-decoration: none;
    color: var(--color);
    display: inline-block;
    position: relative;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.nayla-button.fill button,
.nayla-button.outline button {
    padding: 1em 1.5em;
    border: 1px solid;
    border-color: var(--color);
    border-radius: 2em;
}

.nayla-button.fill button {
    border: none;
    background: var(--color);
    color: var(--mainBackground);
    padding: 1em 1.75em;
}

.nayla-button.fill.icon-right button,
.nayla-button.outline.icon-right button { padding-right: 2.5em; }

.nayla-button.fill.icon-left button,
.nayla-button.outline.icon-left button { padding-left: 2.5em; }

.nayla-button button:disabled { opacity: .55; cursor: default; }
