/* ==========================================================================
   SazSöz Ön Yüz Genel Tasarım Kuralları
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f8f9fa; color: #2c3e50; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.site-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 1. Navigasyon Çubuğu */
.site-nav { background-color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-flex { display: table; width: 100%; }
.site-logo { display: table-cell; font-size: 24px; font-weight: bold; color: #3c8dbc; vertical-align: middle; }
.nav-links { display: table-cell; text-align: right; vertical-align: middle; }
.nav-links a { margin-left: 20px; font-size: 15px; font-weight: 600; color: #555; transition: color 0.2s; }
.nav-links a:hover { color: #3c8dbc; }
.btn-nav-login { background: #3c8dbc; color: white !important; padding: 8px 16px; border-radius: 20px; }
.btn-nav-login:hover { background: #2b6b90 !important; }

/* 2. Arama Alanı (Hero Banner) */
.search-hero { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: white; text-align: center; padding: 80px 20px; border-radius: 0 0 24px 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.search-hero h1 { font-size: 36px; margin-bottom: 10px; font-weight: 800; }
.search-hero p { font-size: 16px; margin-bottom: 30px; opacity: 0.9; }

.search-box-container { position: relative; max-width: 600px; margin: 0 auto; }
#live-search { width: 100%; padding: 16px 25px 16px 50px; border: none; border-radius: 30px; font-size: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); outline: none; }
.search-icon { position: absolute; left: 20px; top: 20px; color: #95a5a6; font-size: 18px; }

/* 3. Canlı Arama Sonuç Dropdown */
.search-results-dropdown { position: absolute; top: 110%; left: 0; width: 100%; background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); max-height: 400px; overflow-y: auto; display: none; z-index: 999; text-align: left; }
.search-result-item { display: block; padding: 15px 20px; border-bottom: 1px solid #eee; transition: background 0.2s; }
.search-result-item:hover { background: #f4f6f9; }
.search-result-item:last-child { border-bottom: none; }
.res-title { font-size: 16px; color: #2c3e50; }
.res-badge { float: right; background: #e8f4fd; color: #3c8dbc; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
.res-sub { font-size: 13px; color: #7f8c8d; margin: 2px 0; }
.res-snippet { font-size: 13px; color: #95a5a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-result, .no-img { padding: 20px; text-align: center; color: #7f8c8d; }

/* 4. İçerik Blokları ve Kartlar (Grid Yapısı) */
.main-content { padding-top: 4px; padding-bottom: 4px; }
.site-section { margin: 40px 0; }
.section-title { font-size: 22px; margin-bottom: 20px; font-weight: 700; color: #2c3e50; }
.text-primary { color: #3c8dbc; } .text-warning { color: #f39c12; }

/* display:flex ve grid yasaklı olduğu için tablo/blok düzeniyle grid simülasyonu */
.site-grid { display: block; width: 100%; margin-left: -10px; margin-right: -10px; }
.site-grid::after { content: ""; display: table; clear: both; }
.card { float: left; width: 25%; padding: 10px; box-sizing: border-box; } /* Masaüstünde 4 sütun */
@media (max-width: 992px) { .card { width: 50%; } } /* Tableti kurtarır */
@media (max-width: 600px) { .card { width: 100%; } }  /* Mobil tek sütun */

.card-clickable { display: block; width: 33.333%; } /* Öne çıkan eserler için 3'lü sütun */
@media (max-width: 768px) { .card-clickable { width: 100%; } }

.card-body { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.04); border: 1px solid #eef2f5; height: 100%; min-height: 120px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover .card-body { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.card-body h3 { font-size: 16px; font-weight: 700; color: #2c3e50; margin-bottom: 8px; }
.card-body p { font-size: 13px; color: #7f8c8d; line-height: 1.5; }

/* 5. Alt Bilgi (Footer) */
.site-footer { background: #2c3e50; color: #bdc3c7; padding: 50px 0 0 0; margin-top: 60px; }
.footer-grid { display: block; }
.footer-grid::after { content: ""; display: table; clear: both; }
.footer-col { float: left; width: 33.333%; padding: 0 20px; margin-bottom: 30px; }
@media (max-width: 768px) { .footer-col { width: 100%; } }
.footer-col h3 { color: white; font-size: 18px; margin-bottom: 15px; }
.footer-col p { font-size: 14px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #3c8dbc; }
.footer-bottom { background: #1a252f; text-align: center; padding: 20px 0; font-size: 13px; margin-top: 30px; color: #7f8c8d; border-top: 1px solid #34495e; }

/* ==========================================================================
   KESİN ÇÖZÜM: ALBÜM KARUSEL (SLIDER) SABİT ÖLÇÜ TASARIMI
   ========================================================================== */
.carousel-header {
    display: table;
    width: 100%;
    margin-bottom: 15px;
}
.carousel-header .section-title { display: table-cell; vertical-align: middle; margin-bottom: 0; }
.carousel-controls { display: table-cell; text-align: right; vertical-align: middle; }

/* Kaydırma Butonları */
.carousel-controls button {
    background: #ffffff;
    border: 1px solid #d2d6de;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px;
    color: #555;
    transition: all 0.2s;
    outline: none;
}
.carousel-controls button:hover {
    background: #3c8dbc;
    color: white;
    border-color: #3c8dbc;
}

/* Yatayda taşmayı sağlayan ana taşıyıcı */
.carousel-wrapper {
    display: block;
    white-space: nowrap; /* Kartların alt alta geçmesini kesin olarak engeller */
    overflow-x: auto;    /* Yatay kaydırmayı açar */
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
}

/* Tarayıcı scroll şeritlerini gizle */
.carousel-wrapper::-webkit-scrollbar { display: none; }
.carousel-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

/* GARANTİLİ KÜÇÜK BOYUT: Her bir albüm kartının sabit ölçüsü */
.carousel-card {
    display: inline-block;
    width: 110px;        /* Tam olarak yatayda 10-12 tane sığacak ideal küçük boyut */
    margin-right: 12px;  /* Aralarındaki boşluk */
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef2f5;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    white-space: normal; /* Kart içindeki metinlerin aşağı kayabilmesi için */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.carousel-card:hover { transform: translateY(-3px); }

/* Resmin dış kutusu - Taşmayı engeller */
.carousel-img-wrap {
    width: 94px;        /* Kartın iç genişliğine uygun sabit küçük boyut */
    height: 94px;       /* Tam kare oran */
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6f9;
    margin: 0 auto 6px auto;
}

/* Resmin kendisi - Asla dışarı taşamaz veya büyüyemez */
.carousel-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 94px !important;
    max-height: 94px !important;
    object-fit: cover;
    display: block;
}

.carousel-no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c7ce;
}

/* Kart İçindeki Yazılar */
.carousel-card-body h3 {
    font-size: 11px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Sığmayan uzun albüm isimlerini kırpar (...) */
}
.carousel-card-body small {
    font-size: 10px;
    color: #7f8c8d;
    display: block;
}

/* Ekran küçüldüğünde (Mobilde) kartlar biraz daha büyür ve daha rahat kayar */
@media (max-width: 1024px) { .carousel-card { width: 18%; margin-right: 2%; } }
@media (max-width: 600px) { .carousel-card { width: 28%; margin-right: 4%; } }