/* ============================================
   PREMIUM CARD TASARIM (BEYAZ KUTU & GRADYAN)
   ============================================ */

:root {
    --text-dark: #1e293b;     /* Koyu Gri Başlıklar */
    --text-body: #475569;     /* İçerik Metni */
    --accent: #334155;        /* Vurgu Rengi */
    --bg-gradient-start: #f1f5f9; /* Arka plan geçiş başlangıcı */
    --bg-gradient-end: #e2e8f0;   /* Arka plan geçiş bitişi */
    --card-bg: #ffffff;       /* Kartın rengi */
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.08); /* Yumuşak gölge */
    --radius-card: 16px;      /* Kartın köşe yumuşaklığı */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
}

/* Sayfanın Genel Arka Planı (Gradyan Geçiş) */
.premium-page-wrapper {
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

/* --- BEYAZ KART (CONTAINER) --- */
.premium-card {
    background-color: var(--card-bg);
    max-width: 900px;
    width: 100%;
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- HEADER --- */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   ✅ RESİM BÖLÜMÜ (KAPAK + GALERİ)
   ============================================ */
.article-banner {
    width: 100%;
    height: 450px; /* ✅ SABİT YÜKSEKLİK - Değiştirilebilir */
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Tek resim varsa (Carousel yok) */
.article-banner > img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ Resim kırpılmadan sığar */
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.article-banner:hover > img {
    transform: scale(1.03); /* Üzerine gelince hafif zoom */
}

/* ============================================
   ✅ CAROUSEL STİLLERİ (KAPAK + GALERİ İÇİN)
   ============================================ */

/* Carousel Container */
#newsCarousel {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
    height: 100%; /* ✅ Parent'ın (article-banner) yüksekliğini al */
}

/* Carousel İçindeki Resimler */
.carousel-inner {
    border-radius: 12px;
    height: 100%; /* ✅ Parent'ın yüksekliğini al */
}

.carousel-item {
    height: 100%; /* ✅ Parent'ın yüksekliğini al */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ Resim kırpılmadan sığar */
    object-position: center;
}

/* Carousel Kontrol Butonları (Ok İşaretleri) */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 15px;
    width: 40px;
    height: 40px;
}

/* Carousel İndikatörler (Alt noktalara) */
.carousel-indicators {
    margin-bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* --- İÇERİK --- */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-top: 50px;
}

.article-body p {
    margin-bottom: 1.8em;
}

.article-body h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 2em 0;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

/* --- FOOTER --- */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 30px;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: var(--text-dark);
    color: #ffffff;
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* ============================================
   MOBİL UYUMLULUK
   ============================================ */
@media (max-width: 768px) {
    .premium-page-wrapper {
        padding: 20px 15px;
    }

    .premium-card {
        padding: 30px 25px;
        border-radius: 12px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    /* ✅ Mobilde Resim Alanı Daha Küçük */
    .article-banner {
        height: 280px; /* Mobilde daha küçük */
        margin-bottom: 30px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 10px;
    }
}

/* Animasyon Tanımı */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}