/* includes/css/index.css */

/* --- GENEL KORUMA --- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

.container { padding: 30px 5%; }

/* --- SLIDER ANA KAPSAYICI --- */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    /* Slider üst ve altına gap (boşluk) ekledik */

}

/* --- SLIDER ITEM (MASAÜSTÜ) --- */
.slide-item {
    position: absolute;
    /* Değişkenler index.php'den gelir */
    width: var(--w, 100%);
    height: var(--h, 500px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

.slide-item.active { opacity: 1; z-index: 5; }

/* --- SLIDER İÇERİK --- */
.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 15px;
    color: white;
    max-width: 800px;
    backdrop-filter: blur(5px);
    display: none; 
    z-index: 10;
}

/* Kutu içeriği kontrolü */
.slide-content:has(h2), .slide-content:has(p), .slide-content:has(a) { display: block; }
.slide-content:empty { display: none !important; }

.slide-content h2 { font-size: 3rem; margin: 0 0 10px; color: #f1c40f; text-transform: uppercase; }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }

.btn-slide {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-slide:hover { transform: scale(1.05); background: white; color: var(--accent); }

/* --- ARAMA ÇUBUĞU VE KARTLAR --- */
.search-bar { margin-top: -40px; position: relative; z-index: 20; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; gap: 10px; }
.search-bar input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
.search-bar button { background: var(--accent); color: white; border: none; padding: 10px 25px; border-radius: 6px; cursor: pointer; font-weight: bold; }

.horse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; }
.horse-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s; display: flex; flex-direction: column; }
.horse-card:hover { transform: translateY(-8px); }
.card-img-wrapper { width: 100%; height: 200px; overflow: hidden; background: #f8fafc; position: relative; display: flex; align-items: center; justify-content: center; padding: 12px; }
.card-img-wrapper a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; font-weight: bold; margin: 0; color: var(--primary); text-decoration: none; margin-bottom: 5px; }
.card-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; }
.card-price { font-size: 1.25rem; color: var(--accent); font-weight: bold; margin-top: auto; }
.btn-detail { display: block; text-align: center; background: var(--primary); color: white; padding: 12px; text-decoration: none; border-radius: 6px; margin-top: 15px; font-weight: bold; }
.irk-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }

/* --- MOBİL TASARIM (RESMİN TAMAMINI GÖSTEREN AYAR) --- */

@media (max-width: 768px) {
    .hero-slider {
        /* Üst ve alt boşluğu tamamen sıfırlıyoruz */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin: 0 auto !important;
        
        height: 200px !important; 
        min-height: 200px !important;
    }

    /* Arama çubuğunun slider ile arasındaki boşluğu da sıfırlamak istersen: */
    .search-bar {
        margin-top: 0 !important; 
        border-radius: 0; /* Opsiyonel: Slider'a tam yapışması için köşeleri düzleştirebilirsin */
    }

    /* Eğer en üstte (header ile arasında) hala boşluk varsa: */
    .container {
        padding-top: 0 !important;
    }
}

.ad-section { margin-bottom: 50px; }
.section-title { 
    font-size: 1.8rem; 
    color: var(--primary); 
    border-left: 5px solid var(--accent); 
    padding-left: 15px; 
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Placeholder Kart Tasarımı */
.placeholder-card {
    border: 2px dashed #ddd !important;
    box-shadow: none !important;
    background: #fafafa !important;
    transition: 0.3s;
}
.placeholder-card:hover { border-color: var(--accent) !important; background: #fff5f2 !important; }

/* Paketlere Göre Kart Çerçeveleri (Opsiyonel) */
.ad-vitrin { border: 2px solid #f1c40f; }
.ad-featured { border: 2px solid #e67e22; }
.ad-homepage { border: 2px solid #3498db; }
