/* ============================================
   HABER KARTLARI - ORTAK STİLLER
   Kullanım Alanları:
   - Ana Sayfa (Bizden Haberler)
   - Haberler Sayfası
   - Haber Detay Sayfası  
   - Akademik Sonuçlar & Başarılar
   - Okul Gezileri
   - Topluma Hizmet
   ============================================ */

/* Grid Yapısı */
.haberler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Kart Container */
.haber-karti {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.haber-karti:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

/* Kart Resim Alanı */
.haber-karti-resim {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2454 0%, #1c3354 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.haber-karti-resim::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(212,167,98,0.3)' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
    background-size: 60px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.haber-karti-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
    display: block;
}

/* Boş resim durumu */
.haber-karti-resim img[src=""],
.haber-karti-resim img:not([src]),
.haber-karti-resim img[src*="undefined"],
.haber-karti-resim img[src*="null"] {
    display: none;
}

.haber-karti-resim:not(:has(img[src]:not([src=""])))::before {
    opacity: 0.4;
}

.haber-karti:hover .haber-karti-resim img {
    transform: scale(1.1);
}

/* Kart İçerik Alanı */
.haber-karti .kart-icerik,
.haber-karti > .kart-icerik {
    padding: 1.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex: 1 1 auto !important;
    min-height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    background: #ffffff !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 10 !important;
    overflow: visible !important;
    border-radius: 0 !important;
}

/* Kategori ve Tarih Wrapper */
.haber-kategori-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Etiket/Kategori */
.haber-karti .kart-icerik .etiket-gold,
.kart-icerik .etiket-gold {
    display: inline-block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--brand-accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Tarih */
.haber-tarih {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.haber-tarih i {
    color: #d4a762;
    font-size: 0.9rem;
}

/* Başlık */
.haber-karti .kart-icerik h3,
.kart-icerik h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #0f2454 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Açıklama */
.haber-karti .kart-icerik p,
.kart-icerik p {
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    text-shadow: none !important;
}

/* Devamını Oku Link */
.devami-link {
    color: #0f2454;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.devami-link:hover {
    color: #d4a762;
}

.devami-link i {
    transition: transform 0.3s ease;
}

.devami-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   HABER DETAY SAYFASI STİLLERİ
   ============================================ */

/* Hero Bölümü */
.haber-hero {
    background-color: #0f2454;
    color: #fff;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.haber-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(212,167,98,0.3)' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
    background-size: 80px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.haber-hero .container {
    position: relative;
    z-index: 1;
}

.haber-hero .etiket-gold {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.haber-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.haber-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.haber-meta span {
    margin: 0 0.5rem;
}

/* İçerik Bölümü */
.haber-icerik-section,
.haber-content-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.haber-icerik,
.haber-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: clamp(2.5rem, 5vw, 3.5rem);
}

/* Detay Sayfası Genel Stilleri */
body.page-haber-detay {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.haber-kategori {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 167, 98, 0.2);
    border: 1px solid #d4a762;
    border-radius: 50px;
    color: #d4a762;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.haber-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

/* Galeri Grid - 3 Sütunlu */
.gezi-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gezi-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gezi-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.3);
}

.gezi-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gezi-gallery-item:hover img {
    transform: scale(1.1);
}

.diger-haberler-baslik {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #0f2454;
    margin-bottom: 3rem;
}

.diger-haberler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.haber-icerik img,
.haber-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.haber-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.haber-icerik h2,
.haber-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #0f2454;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.haber-icerik h3,
.haber-content h3 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    color: #1c3354;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.haber-content .section-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* haber-content içinde section-header kullanıldığında daha küçük başlık */
.haber-content .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.haber-content .section-header .section-title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    max-width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.haber-icerik p,
.haber-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.5rem;
}

.haber-icerik ul,
.haber-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.haber-icerik ul li,
.haber-content ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 0.5rem;
}

.haber-icerik blockquote,
.haber-content blockquote {
    border-left: 4px solid #d4a762;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}

/* Paylaş Butonları */
.haber-paylas {
    margin-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.haber-paylas span {
    font-weight: 600;
    color: #0f2454;
}

.haber-paylas a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.haber-paylas a:hover {
    background: #d4a762;
    color: #fff;
}

/* Diğer Haberler Bölümü */
.diger-haberler-section {
    background: #f1f5f9;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.diger-haberler-section .section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #0f2454;
    margin-bottom: 3rem;
}

/* ============================================
   HABERLER LİSTESİ SAYFA STİLLERİ
   ============================================ */

/* Hero */
.haberler-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #4338ca 100%);
    color: #fff;
    padding: clamp(8rem, 12vw, 12rem) 0 clamp(4rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.haberler-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.haberler-hero-content {
    position: relative;
    z-index: 1;
}

.haberler-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.haberler-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Filtre Tabs - components.css dosyasına taşındı (filtre-kategori) */
.haberler-filters {
    background: #ffffff;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* İçerik Bölümü */
.haberler-content-section {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem) 0;
    background: #f8fafc;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0f2454;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: #0f2454;
    color: #ffffff;
    border-color: #0f2454;
}

.pagination-btn.active {
    background: #0f2454;
    color: #ffffff;
    border-color: #0f2454;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE TASARIM
   ============================================ */

@media (max-width: 1200px) {
    .haberler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .haberler-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Filtre kategori responsive stilleri components.css dosyasında mevcut */
}

@media (max-width: 992px) {
    .gezi-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diger-haberler-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .haber-featured-image {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .haberler-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .gezi-gallery-grid {
        grid-template-columns: 1fr;
    }

    .diger-haberler-grid {
        grid-template-columns: 1fr;
    }

    .haber-featured-image {
        height: 300px;
    }

    .haber-karti-resim {
        height: 200px !important;
    }

    .haber-karti .kart-icerik,
    .kart-icerik {
        padding: 1.5rem !important;
    }

    .haber-karti .kart-icerik h3,
    .kart-icerik h3 {
        font-size: 1.15rem !important;
    }

    .haber-kategori-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .haber-tarih {
        font-size: 0.8rem;
    }

    .haberler-hero {
        min-height: 300px;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

