/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =====================
   Yazar - Loop & Özet
   ===================== */
.kitap-yazar-wrapper {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
    display: block;
}
.kitap-yazar-wrapper a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.kitap-yazar-wrapper a:hover {
    color: #333;
    text-decoration: underline;
}

/* =====================
   Sekme İkonları
   ===================== */
.woocommerce-tabs .tabs li a .sekme-icon,
.wc-tabs li a .sekme-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    font-size: 15px;
    line-height: 1;
    position: relative;
    top: -1px;
}

/* =====================
   Sekme İçeriği Genel
   ===================== */
.kitap-sekme-item {
    padding: 0 0 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.kitap-sekme-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.kitap-sekme-baslik {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}
.kitap-sekme-baslik a {
    color: #222;
    text-decoration: none;
}
.kitap-sekme-baslik a:hover {
    text-decoration: underline;
}
.kitap-sekme-aciklama {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =====================
   İlişkili Kitaplar Grid
   ===================== */
.kitap-sekme-iliskili {
    margin-top: 20px;
}
.kitap-sekme-alt-baslik {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 14px;
}
.kitap-sekme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
}
.kitap-sekme-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    gap: 7px;
    transition: opacity 0.2s;
}
.kitap-sekme-kart:hover {
    opacity: 0.8;
}
.kitap-sekme-kart img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.kitap-sekme-kart-isim {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}
.kitap-sekme-kart-fiyat {
    font-size: 12px;
    color: #888;
}

/* =====================
   Yazar Arşiv Sayfası
   ===================== */
.yazar-arsiv-baslik {
    font-size: 28px;
    margin-bottom: 10px;
}
.yazar-arsiv-aciklama {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* =====================
   Yazar Metabox (Admin)
   ===================== */
#kitap-yazar-metabox .inside {
    padding: 0;
    margin: 0;
}
.yazar-metabox-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.yazar-arama-wrap {
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.yazar-arama-input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    color: #444;
}
.yazar-arama-input:focus {
    border-color: #aaa;
}
.yazar-arama-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
}
.yazar-liste {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}
.yazar-liste-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    color: #333;
}
.yazar-liste-item:hover { background: #f5f5f5; }
.yazar-liste-item input[type="checkbox"] { margin: 0; flex-shrink: 0; cursor: pointer; }
.yazar-liste-item .yazar-icon { color: #aaa; font-size: 15px; flex-shrink: 0; }
.yazar-liste-item label { cursor: pointer; flex: 1; margin: 0; }
.yazar-liste-item.secili { background: #f0f7ff; }
.yazar-bos-mesaj { padding: 12px; color: #999; font-size: 13px; text-align: center; font-style: italic; }
.yazar-footer {
    border-top: 1px solid #eee;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}
.yazar-footer a { color: #2271b1; text-decoration: none; font-size: 12px; }
.yazar-footer a:hover { text-decoration: underline; }
.yazar-secili-sayi { font-weight: 600; color: #2271b1; }

/* İlgili ürünler grid - daha geniş */
.kitap-ilgili-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.kitap-sekme-kart-yazar {
    font-size: 11px;
    color: #999;
}

/* İlgili ürünler container'ını gizle (sekmeye taşındı) */
.related-and-upsells {
    display: none !important;
}
