/* includes/css/horse_detail.css */
.container { max-width: 1200px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }

/* Header */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 30px; }
.detail-header h1 { margin: 0; color: var(--primary); font-size: 2.5rem; }
.price-tag { font-size: 2.2rem; color: var(--accent); font-weight: 800; background: #fff5f2; padding: 10px 20px; border-radius: 10px; border: 1px dashed var(--accent); }

.main-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; }

/* Galeri */
.gallery-container { position: sticky; top: 20px; z-index: 5; }
.main-image { position: relative; width: 100%; height: 500px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; background: #000; }
.main-image img { width: 100%; height: 100%; object-fit: contain; }
.thumbnails { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 10px; }
.thumbnails img { width: 100px; height: 75px; object-fit: cover; cursor: pointer; border: 3px solid transparent; border-radius: 8px; transition: 0.3s; }
.thumbnails img:hover, .thumbnails img.active { border-color: var(--accent); opacity: 0.8; }

/* Özellikler Tablosu */
.specs-card { background: #fafafa; padding: 20px; border-radius: 12px; border: 1px solid #eee; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 15px 10px; border-bottom: 1px solid #eee; }
.specs-table td:first-child { color: #888; font-weight: 600; width: 40%; }
.specs-table td:last-child { color: var(--primary); font-weight: bold; text-align: right; }

.description-box { margin-top: 30px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #eee; line-height: 1.8; white-space: pre-line; }

/* Pedigree (Soy Kütüğü) */
.pedigree-container { margin-top: 50px; }
.pedigree-table { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; }
.pedigree-table td { background: #fff; border: 1px solid #e0e0e0; padding: 15px; border-radius: 8px; text-align: center; transition: 0.3s; }
.pedigree-table td:hover { border-color: var(--accent); background: #fff9f8; }
.p-name { display: block; font-weight: bold; color: var(--primary); font-size: 1.1rem; }
.p-label { display: block; font-size: 10px; color: var(--accent); text-transform: uppercase; font-weight: 800; margin-bottom: 5px; }

/* Video Area */
.video-container { margin-top: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.back-btn { display: inline-block; margin-top: 30px; padding: 12px 25px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 8px; font-weight: bold; }

/* --- RESPONSIVE ÇÖZÜMLER --- */

@media (max-width: 992px) {
    /* Main content grid'i iptal edip tek sütuna zorluyoruz */
    .main-content { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px; 
    }
    
    .detail-header { 
        flex-direction: column; 
        gap: 15px; 
    }

    .gallery-container { 
        position: relative !important; 
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    /* Teknik detaylar kartının ekranı tam kaplaması için */
    .specs-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important; /* Padding'in genişliği bozmasını engeller */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-image { 
        height: 350px; 
    }
    
    /* Tablo genişliğini zorla %100 yapıyoruz */
    .specs-table {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .container { 
        padding: 15px; 
        border-radius: 0; /* Mobilde tam ekran hissi için */
    }
    .detail-header h1 { font-size: 1.8rem; }
    .main-image { height: 280px; }
    .price-tag { font-size: 1.6rem; width: 100%; text-align: center; box-sizing: border-box; }
}