/*
Theme Name: Selis Kitaplar
Theme URI: https://seliskitaplar.com
Author: Semih Kavak
Description: Selis Kitaplar yayınevi kataloğu, raf bantları, manşet ve panelden yönetilebilir kitap künye alanları için özel tema.
Version: 1.0.0
Text Domain: seliskitaplar
*/

:root {
            --bg-paper: #FAF8F5;
            --bg-surface: #FFFFFF;
            --bg-subtle: #F3EFEA;
            --ink-primary: #1A1917;
            --ink-secondary: #5A554E;
            --ink-muted: #8C857B;
            --accent-terracotta: #8C3B2B;
            --accent-terracotta-hover: #702D20;
            --border-stone: #E5E0D8;
            --font-serif: 'Cormorant Garamond', Georgia, serif;
            --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            --transition-smooth: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-paper);
            color: var(--ink-primary);
            font-family: var(--font-sans);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            max-width: 1180px;
            margin: 0 auto;
            padding: 0 28px;
        }

        /* Header */
        header {
            background-color: var(--bg-paper);
        }

        .cover-banner {
            background-color: #050505;
            color: #FFFFFF;
            height: 120px;
            position: relative;
        }

                .banner-center-quote {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-family: var(--font-serif);
            font-style: italic;
            font-size: 13pt;
            color: rgba(255, 255, 255, 0.92);
            white-space: nowrap;
            pointer-events: none;
            letter-spacing: 0.02em;
        }

        .cover-banner-inner {
            max-width: 1180px;
            height: 100%;
            margin: 0 auto;
            padding: 0 28px;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            padding-bottom: 14px;
        }



        .profile-row-wrapper {
            max-width: 1180px;
            margin: 0 auto;
            padding: 0 28px 20px;
            position: relative;
        }

        .profile-identity {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: -48px;
            position: relative;
            z-index: 5;
        }

        .avatar-circle {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: #050505;
            border: 3px solid var(--bg-paper);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
            text-decoration: none;
        }

        .profile-text {
            padding-bottom: 8px;
        }

        .profile-title {
            font-family: var(--font-sans);
            font-size: 24px;
            font-weight: 700;
            color: var(--ink-primary);
            line-height: 1.18;
            margin-bottom: 2px;
            letter-spacing: -0.01em;
        }

        .profile-sub {
            font-size: 13.5px;
            color: var(--ink-secondary);
            line-height: 1.4;
        }

        /* Menü ve sağdaki arama kutusu satırı */
        .category-bar {
            max-width: 1180px;
            margin: 0 auto;
            padding: 0 28px;
        }

        .category-bar-inner {
            border-top: 1px solid var(--border-stone);
            border-bottom: 1px solid var(--border-stone);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .category-nav {
            display: flex;
            align-items: center;
            gap: 22px;
            overflow-x: auto;
            scrollbar-width: none;
            flex: 1;
        }

        .category-nav::-webkit-scrollbar {
            display: none;
        }

        .cat-btn {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 13px 0;
            font-family: var(--font-sans);
            font-size: 12.5px;
            font-weight: 500;
            color: var(--ink-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: var(--transition-smooth);
        }

        .cat-btn:hover {
            color: var(--accent-terracotta);
        }

        .cat-btn.active {
            color: var(--ink-primary);
            font-weight: 700;
            border-bottom-color: var(--ink-primary);
        }

        .search-box {
            position: relative;
            width: 220px;
            flex-shrink: 0;
        }

        .search-box input {
            width: 100%;
            background: var(--bg-surface);
            border: 1px solid var(--border-stone);
            border-radius: 5px;
            padding: 6px 28px 6px 11px;
            font-family: var(--font-sans);
            font-size: 12px;
            color: var(--ink-primary);
            outline: none;
            transition: var(--transition-smooth);
        }

        .search-box input::placeholder {
            color: var(--ink-muted);
        }

        .search-box input:focus {
            border-color: var(--ink-primary);
        }

        .search-icon {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ink-muted);
            pointer-events: none;
        }

        /* Yan Yana Manşet Alanı: Sol Ana Slider + Sağ ÖNE ÇIKANLAR Slider Kutusu */
        .hero-section {
            padding: 32px 0 8px;
        }

        .hero-split-grid {
            display: grid;
            grid-template-columns: 1.92fr 1fr;
            gap: 24px;
            align-items: stretch;
        }

        .hero-main-col,
        .hero-featured-col {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .slider-wrapper {
            position: relative;
            width: 100%;
            height: 360px;
            overflow: hidden;
            border: 1px solid var(--border-stone);
            background-color: var(--bg-subtle);
            box-shadow: 0 18px 40px -18px rgba(26, 25, 23, 0.14);
        }

        .slides-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            cursor: pointer;
            display: block;
            padding: 0;
            overflow: hidden;
            background-color: var(--bg-subtle);
        }

        .slide-banner-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .slider-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
        }

        .dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background-color: #CFC8BE;
            border: none;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .dot.active {
            width: 22px;
            border-radius: 4px;
            background-color: var(--accent-terracotta);
        }

        /* Sağ Kutu: ÖNE ÇIKANLAR Slider (Ana slider ile dikey olarak aynı boyda: 360px) */
        .featured-box {
            position: relative;
            width: 100%;
            height: 360px;
            background-color: var(--bg-surface);
            border: 1px solid var(--border-stone);
            box-shadow: 0 18px 40px -18px rgba(26, 25, 23, 0.12);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .featured-box-header {
            padding: 12px 18px;
            border-bottom: 1px solid var(--border-stone);
            background-color: var(--bg-subtle);
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .featured-box-title {
            font-family: var(--font-sans);
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-terracotta);
        }

        .featured-viewport {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .featured-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .featured-slide {
            min-width: 100%;
            height: 100%;
            padding: 14px 18px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            background: linear-gradient(145deg, #FAF8F5 0%, #F3EFEA 100%);
        }

        .featured-cover {
            width: 124px;
            height: 184px;
            flex-shrink: 0;
            background: var(--bg-surface);
            border: 1px solid rgba(26, 25, 23, 0.14);
            border-left: 3px solid rgba(0,0,0,0.16);
            box-shadow: 6px 12px 20px -6px rgba(26, 25, 23, 0.22);
            padding: 12px 10px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            margin-top: 2px;
            transform: rotate(5deg);
            transition: transform 0.3s ease;
        }

        .featured-slide:hover .featured-cover {
            transform: rotate(5deg) translateY(-3px);
        }

        .featured-cover img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 2;
        }

        .featured-cover-tag {
            font-size: 7.5px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-muted);
        }

        .featured-cover-title {
            font-family: var(--font-serif);
            font-size: 14px;
            font-weight: 700;
            line-height: 1.18;
            color: var(--ink-primary);
            margin: auto 0;
        }

        .featured-cover-author {
            font-size: 8px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--ink-secondary);
        }

        .featured-info {
            width: 100%;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .featured-collection-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent-terracotta);
            margin-bottom: 2px;
        }

        .featured-book-title {
            font-family: var(--font-serif);
            font-size: 23px;
            font-weight: 700;
            line-height: 1.18;
            color: var(--ink-primary);
            margin-bottom: 3px;
        }

        .featured-book-author {
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-secondary);
            margin-bottom: 4px;
        }

        .featured-book-note {
            font-size: 12px;
            line-height: 1.4;
            color: var(--ink-muted);
            max-width: 280px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Kategorize 3'lü Bloklar: SON ÇIKANLAR, ÇOK SATANLAR, EDİTÖRÜN ÖNERİSİ */
        .catalog-sections {
            padding-top: 0;
            padding-bottom: 84px;
        }

        .shelf-block {
            margin-top: 44px;
        }

        .shelf-block:first-child {
            margin-top: 16px;
        }

        .shelf-header {
            padding: 12px 18px;
            border: 1px solid var(--border-stone);
            border-bottom: 2.5px solid #C8BEB0;
            background-color: var(--bg-subtle);
            display: flex;
            align-items: center;
            margin-bottom: 28px;
        }

        .shelf-header--new {
            background-color: #EFEAE2;
            border-bottom-color: #B8AE9E;
        }

        .shelf-header--bestsellers {
            background-color: #E7ECEA;
            border-bottom-color: #AAB7B2;
        }

        .shelf-header--editors {
            background-color: #F0E6E2;
            border-bottom-color: #C2A89F;
        }

        .shelf-title {
            font-family: var(--font-sans);
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-terracotta);
        }

        .shelf-groups {
            display: flex;
            flex-direction: column;
            gap: 44px;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 36px 38px;
        }

        .empty-shelf-note {
            font-size: 13.5px;
            color: var(--ink-muted);
            padding: 12px 0;
        }

        .book-card {
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .book-cover-frame {
            background-color: var(--bg-subtle);
            padding: 34px 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            border: 1px solid transparent;
            transition: var(--transition-smooth);
        }

        .book-card:hover .book-cover-frame {
            background-color: #ECE6DD;
            border-color: var(--border-stone);
        }

        .book-cover-visual {
            width: 185px;
            height: 278px;
            background: var(--bg-surface);
            box-shadow:
                -4px 0 8px rgba(0,0,0,0.06),
                8px 14px 24px -6px rgba(26, 25, 23, 0.22);
            position: relative;
            overflow: hidden;
            transition: var(--transition-smooth);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px 18px;
            border-left: 3px solid rgba(0,0,0,0.14);
        }

        .book-card:hover .book-cover-visual {
            transform: translateY(-6px);
            box-shadow:
                -4px 0 8px rgba(0,0,0,0.08),
                12px 22px 32px -6px rgba(26, 25, 23, 0.28);
        }

        .book-cover-visual img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cover-placeholder-series {
            font-size: 10px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ink-muted);
        }

        .cover-placeholder-title {
            font-family: var(--font-serif);
            font-size: 22px;
            font-weight: 700;
            line-height: 1.2;
            color: var(--ink-primary);
            margin: auto 0;
        }

        .cover-placeholder-author {
            font-size: 11.5px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--ink-secondary);
        }

        .book-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .book-author {
            font-size: 12.5px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-muted);
        }

        .book-title {
            font-family: var(--font-serif);
            font-size: 24px;
            font-weight: 600;
            line-height: 1.25;
            color: var(--ink-primary);
            transition: color 0.25s ease;
        }

        .book-card:hover .book-title {
            color: var(--accent-terracotta);
        }

        .book-footer-row {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border-stone);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .book-price {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--ink-primary);
        }

        .book-inspect-link {
            font-size: 13px;
            color: var(--accent-terracotta);
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        /* Modal */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(26, 25, 23, 0.56);
            backdrop-filter: blur(4px);
            z-index: 100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .modal-backdrop.open {
            display: flex;
        }

        .modal-dialog {
            background: var(--bg-paper);
            border: 1px solid var(--border-stone);
            max-width: 880px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 44px;
            box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 24px;
            background: none;
            border: none;
            font-size: 26px;
            color: var(--ink-secondary);
            cursor: pointer;
            line-height: 1;
        }

        .modal-grid {
            display: grid;
            grid-template-columns: 230px 1fr;
            gap: 40px;
            align-items: start;
        }

        .modal-cover-box {
            width: 230px;
            height: 345px;
            background: var(--bg-surface);
            box-shadow: 10px 16px 30px rgba(26, 25, 23, 0.2);
            border-left: 3px solid rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 24px 20px;
            position: relative;
            overflow: hidden;
        }

        .modal-cover-box img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .modal-series {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--accent-terracotta);
            margin-bottom: 6px;
        }

        .modal-title {
            font-family: var(--font-serif);
            font-size: 36px;
            font-weight: 700;
            line-height: 1.15;
            margin-bottom: 6px;
        }

        .modal-author {
            font-size: 15px;
            color: var(--ink-secondary);
            margin-bottom: 20px;
        }

        .modal-desc {
            font-size: 14.5px;
            color: var(--ink-primary);
            line-height: 1.75;
            white-space: pre-line;
            margin-bottom: 26px;
            padding-bottom: 22px;
            border-bottom: 1px solid var(--border-stone);
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px 24px;
            font-size: 13px;
            margin-bottom: 28px;
        }

        .spec-item span:first-child {
            color: var(--ink-muted);
            display: inline-block;
            min-width: 105px;
        }

        .spec-item span:last-child {
            color: var(--ink-primary);
            font-weight: 500;
        }

        .modal-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            background: var(--bg-subtle);
            padding: 16px 20px;
            border: 1px solid var(--border-stone);
        }

        .modal-price-label {
            font-size: 12px;
            color: var(--ink-muted);
            display: block;
        }

        .modal-price-val {
            font-family: var(--font-serif);
            font-size: 26px;
            font-weight: 700;
        }

        .btn-shopier {
            background-color: var(--accent-terracotta);
            color: #FFFFFF;
            text-decoration: none;
            padding: 13px 26px;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.03em;
            transition: var(--transition-smooth);
        }

        .btn-shopier:hover {
            background-color: var(--accent-terracotta-hover);
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--border-stone);
            padding: 22px 0 26px;
            background-color: var(--bg-subtle);
            font-size: 13.5px;
            color: var(--ink-secondary);
            text-align: center;
        }

        .footer-contact {
            font-size: 13px;
            color: var(--ink-secondary);
            line-height: 1.5;
            margin-bottom: 8px;
        }

        .footer-social {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-bottom: 10px;
            font-size: 16.5px;
            font-weight: 600;
            color: var(--ink-primary);
            line-height: 1;
        }

        .footer-social img {
            height: 30px;
            width: auto;
            object-fit: contain;
            display: block;
            mix-blend-mode: multiply;
        }

        .footer-copyright {
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-muted);
            line-height: 1.4;
        }

        @media (max-width: 960px) {
            .hero-split-grid {
                grid-template-columns: 1fr;
            }
            .slider-wrapper,
            .featured-box {
                height: 320px;
            }
            .category-bar-inner {
                flex-direction: column;
                align-items: stretch;
                padding-bottom: 10px;
                gap: 8px;
            }
            .search-box {
                width: 100%;
            }
            .books-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .cover-banner {
                height: 96px;
            }
            .cover-banner-inner {
                padding: 0 20px 10px;
            }
            .profile-row-wrapper {
                padding: 0 20px 14px;
            }
            .profile-identity {
                margin-top: -46px;
                gap: 12px;
            }
            .avatar-circle {
                width: 78px;
                height: 78px;
            }
            .profile-title {
                font-size: 20px;
            }
            .category-bar {
                padding: 0 20px;
            }
            .category-nav {
                gap: 16px;
            }
            .books-grid {
                grid-template-columns: 1fr;
            }
            .modal-grid {
                grid-template-columns: 1fr;
            }
            .modal-cover-box {
                margin: 0 auto;
            }
            .slide {
                height: 100%;
            }
        }
/* WordPress Admin Bar & Panel Yönetimi Uyumluluğu */
.admin-bar .modal-backdrop {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .modal-backdrop {
        top: 46px;
    }
}
.featured-cover-tag {
    z-index: 1;
}
.featured-cover-title {
    z-index: 1;
}
.featured-cover-author {
    z-index: 1;
}
.cover-placeholder-series,
.cover-placeholder-title,
.cover-placeholder-author {
    z-index: 1;
}
.book-cover-visual img,
.modal-cover-box img {
    z-index: 2;
}
