/* =============================================
   SAMET ARIKER - SITE CSS
   Temiz, profesyonel, kişisel web sitesi
   ============================================= */

/* ============================================================
   FONT FALLBACK - Web fontlar yüklenene kadar sistem fontları
   ============================================================ */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
}

/* ============================================================
   CRITICAL CSS - LCP optimizasyonu (above the fold)
   ============================================================ */
/* Render-blocking önlemek için kritik elementler önce render edilmeli */
body { font-display: optional; }

/* Layout Shift önleme - resimler için aspect-ratio */
img {
    max-width: 100%;
    height: auto;
    /* Resim yüklenene kadar yer ayır */
}
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Font-display: swap - FOIT önleme */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-display: swap;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-primary);
    font-size: 15px;
    color: #333;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }

:root {
    --primary:    #1a1a2e;
    --accent:     #c0392b;
    --accent2:    #e74c3c;
    --light:      #f8f8f8;
    --border:     #e8e8e8;
    --text:       #444;
    --text-light: #888;
    --white:      #ffffff;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: relative;
    top: auto; left: auto; right: auto;
    z-index: 100;
    background: #fff;
    border-bottom: none;
    box-shadow: none;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    height: 80px;
    overflow: visible;
    padding: 0;
    flex-shrink: 0;
}
.site-logo-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
}
.site-logo-icon i { color: #fff; font-size: 20px; }
.site-logo-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 19px; font-weight: 700;
    color: var(--primary); letter-spacing: 0.3px;
}
.site-logo-text span {
    font-size: 11px; color: var(--accent);
    font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase;
}
/* Masaüstü nav */
.main-nav { display: block; }
.main-nav ul { display: flex; align-items: center; }
.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 16px; font-weight: 700;
    color: var(--text);
    position: relative; letter-spacing: 0.3px;
    transition: color 0.2s;
}
.main-nav ul li a i {
    font-size: 0.8em;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.main-nav ul li a:hover i,
.main-nav ul li a.active i {
    opacity: 1;
}
.main-nav ul li a::after { display: none; }
.main-nav ul li a:hover { color: rgba(192,57,43,0.5); }
.main-nav ul li a.active {
    color: rgba(192,57,43,0.45);
    font-weight: 600;
}
/* ===== HAMBURGER BUTONU ===== */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 10001;
    flex-shrink: 0;
    transition: all 0.3s;
}
.nav-toggle:hover { background: var(--light); }
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
    position: relative;
}
/* Menü açıkken burger butonu gizle */
.nav-toggle.active { opacity: 0; pointer-events: none; }

/* =============================================
   SAĞ SABİT SOSYAL MEDYA
   ============================================= */
.social-sidebar {
    position: fixed;
    right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex; flex-direction: column;
}
.social-sidebar a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--primary); color: #fff;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.25s;
}
.social-sidebar a:hover { width: 48px; }
.social-sidebar a.linkedin:hover  { background: #0077b5; }
.social-sidebar a.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-sidebar a.twitter:hover   { background: #000; }
.social-sidebar a.facebook:hover  { background: #1877f2; }
.social-sidebar a.youtube:hover   { background: #ff0000; }

/* =============================================
   ANA SLIDER
   ============================================= */
.ana-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--primary);
}
.ana-slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.ana-swiper {
    width: 100%;
    height: 520px;
    background: var(--primary);
}
.ana-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.ana-slide-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}
.ana-slider-wrapper .ana-slide.active .ana-slide-bg {
    transform: scale(1.05);
}
.ana-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
.ana-slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    padding: 0 0 40px;
}
.ana-slide-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.ana-slide-date {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.ana-slide-inner h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    max-width: 750px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
}
.ana-slide-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.ana-btn-white {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid #fff;
    transition: all 0.25s;
}
.ana-btn-white:hover { background: #fff; color: #000; border-color: #fff; }
.ana-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.25s;
}
.ana-btn-outline:hover { background: #fff; color: var(--primary); }
/* Swiper özel stiller */
.ana-swiper-prev, .ana-swiper-next {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    width: 46px !important; height: 46px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.ana-swiper:hover .ana-swiper-prev,
.ana-swiper:hover .ana-swiper-next {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.ana-swiper-prev:hover, .ana-swiper-next:hover { background: var(--accent) !important; border-color: var(--accent) !important; }
.ana-swiper-prev::after, .ana-swiper-next::after { font-size: 14px !important; font-weight: 700 !important; }
.ana-swiper-pagination { bottom: 18px !important; right: 40px !important; left: auto !important; width: auto !important; text-align: right !important; }
.ana-swiper-pagination .swiper-pagination-bullet { width: 10px !important; height: 10px !important; border-radius: 2px !important; background: rgba(255,255,255,0.4) !important; opacity: 1 !important; }
.ana-swiper-pagination .swiper-pagination-bullet-active { background: #fff !important; width: 10px !important; }
@media (max-width: 768px) {
    .ana-swiper { height: 320px; }
    .ana-slider { height: 320px; }
    .ana-slide-inner h2 { font-size: 18px; padding: 0 16px; }
    .ana-slide-inner { padding: 0 16px; }
    .ana-slide-content { padding-bottom: 25px; }
    .ana-swiper-prev, .ana-swiper-next { display: none !important; }
}
@media (max-width: 480px) {
    .ana-swiper { height: 260px; }
    .ana-slider { height: 260px; }
    .ana-slide-inner h2 { font-size: 15px; }
}

/* =============================================
   GENEL LAYOUT
   ============================================= */
.container-site { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section       { padding: 80px 0; }
.section-sm    { padding: 50px 0; }
.section-bg    { background: var(--light); }

.section-head  { text-align: center; margin-bottom: 50px; }
.section-head h2 {
    font-family: var(--font-heading);
    font-size: 34px; font-weight: 700;
    color: var(--primary); margin-bottom: 12px;
}
.section-head .line {
    display: inline-block;
    width: 50px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.section-head p {
    margin-top: 14px; color: var(--text-light);
    font-size: 15px; max-width: 550px;
    margin-left: auto; margin-right: auto;
}
.page-head {
    padding: 22px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    background: #f9f9f9;
    width: 100%;
}
.page-head h1 { display: none; }
.breadcrumb-site { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.breadcrumb-site a { color: #27ae60; display: flex; align-items: center; gap: 5px; }
.breadcrumb-site a:hover { color: var(--accent); }
.breadcrumb-site .sep { color: var(--text-light); font-size: 13px; }
.breadcrumb-site .current { color: var(--primary); font-weight: 700; }

/* Butonlar */
.btn-site        { display: inline-block; padding: 11px 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; border-radius: 2px; transition: all 0.25s; cursor: pointer; border: 2px solid transparent; }
.btn-primary-site{ background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary-site:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent-site { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent-site:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-site{ background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-site:hover { background: var(--primary); color: #fff; }

/* =============================================
   HAKKIMDA
   ============================================= */
.about-home { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.about-home-img { text-align: center; }
.about-home-img img { width: 100%; max-width: 280px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.about-home-img .name-badge { margin-top: 15px; font-size: 14px; color: var(--text-light); font-style: italic; line-height: 1.5; }
.about-home-content h2 { font-family: var(--font-heading); font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.about-home-content h2 span { color: var(--accent); }
.about-home-content .bio-text { font-size: 15px; color: var(--text); line-height: 1.85; margin-bottom: 20px; }
.about-home-content .bio-text p { margin-bottom: 14px; }
.about-home-content .signature { font-family: var(--font-heading); font-size: 26px; color: var(--primary); font-style: italic; margin-top: 20px; opacity: 0.65; }

/* =============================================
   KİTAPLAR
   ============================================= */
.books-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.book-card { background: #fff; border: 1px solid var(--border); transition: all 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.book-card:hover { box-shadow: 0 12px 35px rgba(0,0,0,0.1); transform: translateY(-4px); }
.book-card-img { position: relative; overflow: hidden; height: 260px; background: var(--light); }
.book-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.book-card:hover .book-card-img img { transform: scale(1.04); }
.book-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; border-radius: 2px; z-index: 2; }
.badge-new        { background: #27ae60; color: #fff; }
.badge-bestseller { background: var(--accent); color: #fff; }
.book-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.book-card-body h3 { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; line-height: 1.4; flex: 1; }
.book-card-body .book-author { font-size: 12px; color: var(--text-light); margin-bottom: 3px; font-family: var(--font-primary); }
.book-meta-row { font-size: 12px; color: var(--text-light); margin-bottom: 3px; font-family: var(--font-primary); font-weight: 400; }
.book-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); margin-top: auto; }
.book-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.book-btn { font-size: 12px; font-weight: 600; padding: 6px 14px; background: var(--primary); color: #fff; border-radius: 2px; transition: all 0.2s; }
.book-btn:hover { background: var(--accent); color: #fff; }

/* =============================================
   HABERLER
   ============================================= */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--border); transition: all 0.3s; overflow: hidden; }
.news-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.09); transform: translateY(-3px); }
.news-card-img { height: 200px; overflow: hidden; background: var(--light); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #2c3e6b); color: rgba(255,255,255,0.2); font-size: 48px; }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.news-card-body h3 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.news-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.news-read-more { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.news-read-more:hover { color: var(--primary); }
.news-views { font-size: 12px; color: var(--text-light); }

/* =============================================
   YAYINLAR
   ============================================= */
.pubs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.pub-card { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--border); background: #fff; transition: all 0.3s; align-items: flex-start; }
.pub-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: var(--accent); }
.pub-card-img { width: 65px; min-width: 65px; height: 85px; overflow: hidden; background: var(--light); border-radius: 2px; }
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-card-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: rgba(255,255,255,0.4); font-size: 22px; }
.pub-card-body h3 { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; line-height: 1.4; }
.pub-card-body h3 a:hover { color: var(--accent); }
.pub-card-body p { font-size: 12px; color: var(--text-light); line-height: 1.55; margin-bottom: 8px; }
.pub-card-date { font-size: 11px; color: var(--accent); font-weight: 600; }
.pub-pdf-link { font-size: 11px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; }
.pub-pdf-link:hover { color: var(--primary); }

/* =============================================
   DETAY SAYFALARI
   ============================================= */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.detail-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 15px; line-height: 1.3; }
.detail-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-light); margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-meta span i { color: var(--accent); }
.detail-img { margin-bottom: 30px; border-radius: 3px; overflow: hidden; }
.detail-img img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-content { font-size: 15px; color: var(--text); line-height: 1.85; }
.detail-content p  { margin-bottom: 16px; }
.detail-content h2,.detail-content h3 { font-family: var(--font-heading); color: var(--primary); margin: 25px 0 12px; }
.detail-content img { border-radius: 3px; margin: 15px 0; }
.detail-content a { color: var(--accent); }
.detail-content a:hover { text-decoration: underline; }
.sidebar-widget { background: var(--light); border: 1px solid var(--border); padding: 22px; margin-bottom: 25px; border-top: 3px solid var(--accent); }
.sidebar-widget h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list li a { color: var(--text); }
.sidebar-list li a:hover { color: var(--accent); padding-left: 4px; }
.sidebar-list li .date { font-size: 11px; color: var(--text-light); display: block; margin-top: 2px; }
.external-link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; border-radius: 2px; margin-top: 20px; transition: all 0.25s; }
.external-link-btn:hover { background: var(--accent); color: #fff; }

/* Kitap Detay */
.book-detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.book-detail-cover img { width: 100%; border-radius: 3px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.book-detail-info h1 { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--primary); margin-bottom: 12px; line-height: 1.3; }
.book-info-table { width: 100%; font-size: 14px; margin: 20px 0 25px; border-collapse: collapse; }
.book-info-table tr td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.book-info-table tr td:first-child { font-weight: 600; color: var(--primary); width: 35%; background: var(--light); }
.book-price-big { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.book-gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 30px; }
.book-gallery-grid a { display: block; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--border); border-radius: 2px; background: var(--light); }
.book-gallery-grid a img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; transition: all 0.25s; display: block; }
.book-gallery-grid a:hover img { transform: scale(1.03); }

/* =============================================
   İLETİŞİM
   ============================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; }
.contact-form h2 { font-family: var(--font-heading); font-size: 26px; color: var(--primary); margin-bottom: 25px; }
.form-group-site { margin-bottom: 20px; }
.form-group-site label { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.form-group-site input,
.form-group-site textarea { width: 100%; padding: 11px 15px; border: 1px solid var(--border); font-size: 14px; font-family: var(--font-primary); color: var(--text); outline: none; transition: border-color 0.25s; background: #fff; border-radius: 2px; }
.form-group-site input:focus,
.form-group-site textarea:focus { border-color: var(--accent); }
.form-group-site textarea { height: 140px; resize: vertical; }
.contact-info-box h2 { font-family: var(--font-heading); font-size: 26px; color: var(--primary); margin-bottom: 25px; }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-icon { width: 42px; height: 42px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 2px; font-size: 16px; flex-shrink: 0; }
.contact-info-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 3px; }
.contact-info-text span, .contact-info-text a { font-size: 14px; color: var(--text); }
.contact-info-text a:hover { color: var(--accent); }
.contact-social-links { display: flex; gap: 10px; margin-top: 25px; }
.contact-social-links a { width: 40px; height: 40px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; border-radius: 2px; transition: all 0.25s; }
.contact-social-links a:hover { background: var(--accent); }
.contact-social-links a[title="LinkedIn"]:hover   { background: #0077b5; }
.contact-social-links a[title="Instagram"]:hover  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-links a[title="Twitter/X"]:hover  { background: #000; }
.contact-social-links a[title="Facebook"]:hover   { background: #1877f2; }
.alert-success-site { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 13px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.alert-error-site { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 13px 18px; border-radius: 2px; font-size: 14px; margin-bottom: 20px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination-site { display: flex; justify-content: center; gap: 6px; margin-top: 50px; flex-wrap: wrap; }
.pagination-site a,.pagination-site span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text); transition: all 0.2s; border-radius: 2px; }
.pagination-site a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-site .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 55px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 2px; transition: all 0.25s; }
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 7px; }
.footer-col ul li a::before { content: '›'; color: var(--accent); font-size: 16px; line-height: 1; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- 1400px alti --- */
@media (max-width: 1400px) {
    .container-site { padding: 0 30px; }
}

/* --- 1200px alti --- */
@media (max-width: 1200px) {
    .books-grid     { grid-template-columns: repeat(3,1fr); }
    .yay-grid-home  { grid-template-columns: repeat(3,1fr); }
    .news-grid      { grid-template-columns: repeat(2,1fr); }
}

/* --- 1024px alti --- */
@media (max-width: 1024px) {
    .books-grid     { grid-template-columns: repeat(3,1fr); }
    .about-home     { grid-template-columns: 220px 1fr; gap: 30px; }
    .detail-layout  { grid-template-columns: 1fr 260px; }
    .yay-grid-home  { grid-template-columns: repeat(3,1fr); }
}

/* --- 900px alti --- */
@media (max-width: 900px) {
    .footer-grid        { grid-template-columns: 1fr 1fr; }
    .books-grid         { grid-template-columns: repeat(2,1fr); }
    .news-grid          { grid-template-columns: repeat(2,1fr); }
    .pubs-grid          { grid-template-columns: repeat(2,1fr); }
    .yay-grid-home      { grid-template-columns: repeat(2,1fr); }
    .contact-layout     { grid-template-columns: 1fr; }
    .detail-layout      { grid-template-columns: 1fr; }
    .book-detail-layout { grid-template-columns: 1fr; }
    .ana-swiper         { height: 420px; }
    .ana-slider         { height: 420px; }
}

/* --- 768px alti (MOBİL) --- */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        height: 72px;
        padding: 0 16px;
    }
    .site-logo {
        height: 72px;
    }
    .site-logo img {
        height: 54px !important;
    }
    /* Masaustu nav gizle, mobil toggle goster */
    .nav-toggle { display: flex; }

    /* Hakkimda */
    .about-home     { grid-template-columns: 1fr; }
    .about-home-img { text-align: center; }

    /* Section & layout */
    .section        { padding: 40px 0; }
    .container-site { padding: 0 16px; }

    /* Slider */
    .ana-swiper { height: 320px; }
    .ana-slider { height: 320px; }

    /* Kitaplar */
    .books-grid   { grid-template-columns: repeat(2,1fr); gap: 14px; }
    .book-card-img { height: 200px; }

    /* Haberler & Yayinlar */
    .news-grid { grid-template-columns: 1fr; }
    .pubs-grid { grid-template-columns: 1fr; }

    /* Anasayfa yayinlar */
    .yay-grid-home { grid-template-columns: repeat(2,1fr); }

    /* Sosyal sidebar gizle */
    .social-sidebar { display: none; }

    /* Detay sayfalar */
    .detail-layout      { grid-template-columns: 1fr; }
    .book-detail-layout { grid-template-columns: 1fr; }
    .book-detail-cover img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }

    /* Basliklar */
    .section-head h2  { font-size: 24px; }

    /* Sayfa basi */
    .page-head        { padding: 16px 0 12px; }
    .breadcrumb-site  { font-size: 12px; }

    /* Footer */
    .footer-grid   { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- Kitap butonları mobilde alt alta --- */
@media (max-width: 600px) {
    .book-card-footer {
        flex-direction: column;
        gap: 6px !important;
    }
    .book-card-footer .book-btn {
        width: 100%;
        text-align: center;
        flex: unset !important;
    }
}

/* --- 480px alti --- */
@media (max-width: 480px) {
    /* Header */
    .header-inner { height: 56px; }

    /* Kitaplar */
    .books-grid    { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .book-card-body h3 { font-size: 13px; }
    .book-card-img { height: 170px; }

    /* Anasayfa yayinlar */
    .yay-grid-home { grid-template-columns: repeat(2,1fr); gap: 10px; }

    /* Haberler & Yayinlar */
    .news-grid { grid-template-columns: 1fr; }
    .pubs-grid { grid-template-columns: 1fr; }

    /* Basliklar */
    .section-head h2 { font-size: 20px; }

    /* Footer minimal */
    .footer-minimal-top {
        flex-direction: column;
        padding: 20px 16px;
        gap: 16px;
        text-align: center;
    }
    .footer-minimal-bottom { padding: 14px 16px; }
}

/* ===== MİNİMAL FOOTER ===== */
.site-footer-minimal {
    background: #0d1124;
    color: rgba(255,255,255,0.7);
}
.footer-minimal-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-minimal-brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.footer-minimal-social {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-minimal-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s;
}
.footer-minimal-social a:hover { color: #fff; border-color: transparent; }
.footer-minimal-social a.social-linkedin:hover  { background: #0077b5; }
.footer-minimal-social a.social-instagram:hover { background: #e1306c; }
.footer-minimal-social a.social-twitter:hover   { background: #000; }
.footer-minimal-social a.social-facebook:hover  { background: #1877f2; }
.footer-minimal-bottom {
    text-align: center;
    padding: 16px 60px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
@media (max-width: 600px) {
    .footer-minimal-top { flex-direction: column; gap: 16px; padding: 24px 20px; text-align: center; }
    .footer-minimal-bottom { padding: 14px 20px; }
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 28px;
    right: 22px;
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}
#scrollTopBtn:hover { background: #a93226; transform: translateY(-2px); }

/* ===== ANASAYFA YAYINLAR GRID ===== */
.yay-grid-home { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.yay-card-home { background:#fff; border-radius:12px; overflow:hidden; border:1px solid #eee; transition:all 0.3s ease; display:flex; flex-direction:column; }
.yay-card-home:hover { box-shadow:0 16px 48px rgba(0,0,0,0.10); transform:translateY(-5px); border-color:transparent; }
.yay-card-home-cover { position:relative; aspect-ratio:3/4; background:#f5f5f5; overflow:hidden; }
.yay-card-home-cover img { width:100%; height:100%; object-fit:contain; transition:transform 0.5s ease; display:block; }
.yay-card-home:hover .yay-card-home-cover img { transform:scale(1.04); }
.yay-card-home-cover .no-cover { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--primary),#2d2d5e); color:rgba(255,255,255,0.2); font-size:48px; }
.yay-card-home-overlay { position:absolute; inset:0; background:rgba(26,26,46,0.75); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; opacity:0; transition:opacity 0.3s ease; }
.yay-card-home:hover .yay-card-home-overlay { opacity:1; }
.yay-overlay-btn-home { display:inline-flex; align-items:center; gap:8px; padding:10px 22px; border-radius:6px; font-size:13px; font-weight:600; text-decoration:none; transition:all 0.2s; min-width:140px; justify-content:center; }
.yay-overlay-btn-home.btn-detail { background:#fff; color:var(--primary); }
.yay-overlay-btn-home.btn-detail:hover { background:var(--accent); color:#fff; }
.yay-overlay-btn-home.btn-pdf { background:var(--accent); color:#fff; }
.yay-overlay-btn-home.btn-pdf:hover { background:#a93226; }
.yay-overlay-btn-home.btn-link { background:#2980b9; color:#fff; }
.yay-overlay-btn-home.btn-link:hover { background:#1f6391; }
.yay-card-home-body { padding:12px 14px; flex:1; display:flex; flex-direction:column; }
.yay-card-home-body h3 { font-size:13px; font-weight:700; color:var(--primary); line-height:1.45; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.yay-card-home-body h3 a { color:inherit; text-decoration:none; }
.yay-card-home-body h3 a:hover { color:var(--accent); }
.yay-card-home-meta { margin-top:auto; display:flex; flex-direction:column; gap:3px; }
.yay-card-home-meta span { font-size:11px; color:#888; display:flex; align-items:center; gap:5px; }
.yay-card-home-meta span i { color:var(--accent); font-size:10px; }
/* =============================================
   MOBİL MENÜ
   ============================================= */

.mobile-nav-header { display: none; }
.mobile-nav-brand { display: none; }
.mobile-nav-close { display: none; }

body.nav-open { overflow: hidden; }

/* Mobil menü paneli - sadece 768px altında */
@media (max-width: 768px) {

    /* Ana nav paneli - her zaman DOM'da ama ekran dışında */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -4px 0 30px rgba(0,0,0,0.2);
        display: block;
        pointer-events: auto;
    }

    /* Açık halde */
    .main-nav.open {
        transform: translateX(0);
    }

    /* Panel başlık */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: #fff;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }
    .mobile-nav-brand {
        display: block;
    }
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: var(--accent);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.2s;
    }
    .mobile-nav-close:hover { background: #a93226; }

    /* Linkler */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 4px 0;
    }
    .main-nav ul li {
        border-bottom: 1px solid #eee;
    }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 600;
        color: var(--primary);
        transition: background 0.15s, color 0.15s;
    }
    .main-nav ul li a::after {
        content: '›';
        font-size: 22px;
        color: #aaa;
        line-height: 1;
        flex-shrink: 0;
    }
    .main-nav ul li a:hover {
        color: var(--accent);
        background: #fef6f6;
    }
    .main-nav ul li a:hover::after {
        color: var(--accent);
    }
    .main-nav ul li a.active {
        color: var(--primary);
        font-weight: 600;
        border-left: none;
        background: transparent;
        opacity: 0.45;
    }
    .main-nav ul li a.nav-home.active {
        opacity: 1;
    }
    .main-nav ul li a svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

/* Masaüstünde mobil elemanları gizle */
@media (min-width: 769px) {
    .main-nav {
        display: block;
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        z-index: auto;
    }
    .main-nav ul {
        display: flex;
        flex-direction: row;
    }
    .main-nav ul li a::after { display: none; }
    .mobile-nav-header { display: none; }
    .nav-toggle { display: none; }
    body.nav-open::before { display: none; }
}

/* ============================================================
   PERFORMANS - will-change & contain optimizasyonları
   ============================================================ */

/* Animasyonlu elementler için GPU katmanı */
.book-card,
.news-card,
.news-card-new,
.yay-card-home,
.pub-card {
    will-change: transform;
    contain: layout style;
}

/* Slider için paint containment */
.ana-swiper,
.ana-slide {
    contain: layout style paint;
}

/* ============================================================
   ACCESSIBILITY - Focus stilleri (klavye navigasyonu)
   ============================================================ */
:focus-visible {
    outline: 3px solid #c0392b;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to content linki */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #c0392b;
    color: #fff;
    padding: 8px 16px;
    z-index: 99999;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================================
   PRINT STYLES - Yazdırma optimizasyonu
   ============================================================ */
@media print {
    .social-sidebar,
    .nav-toggle,
    #scrollTopBtn,
    .site-header nav,
    .site-footer-minimal {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    .container-site {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================================
   DARK MODE DESTEĞI (kullanıcı tercihi)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* Şimdilik devre dışı - gelecekte aktifleştirilebilir */
    /* Sitenin kendi tasarımı açık tema, dark mode için ayrı stylesheet gerekir */
}

/* ============================================================
   REDUCED MOTION (erişilebilirlik)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ana-slide-bg {
        transition: none !important;
    }
}