/* ■■■ BLOG SAYFASI STİLLERİ (blog.css) ■■■ */

body {
    background-color: #0a0a0a;
}

/* 1. Blog Hero (Başlık, Arka Plan Görseli ve Arama) */
.blog-hero {
    position: relative;
    /* Görseli ve üzerine metin okunması için karartmayı (gradient) ekliyoruz */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('blog.jpg');

    /* Görselin tam oturması için ayarlar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Geniş ve ferah bir alan için boşluklar */
    padding: 180px 5% 140px 5%;

    text-align: center;
    border-bottom: 1px solid #222;
}

.blog-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem); /* Büyük ve dikkat çekici başlık */
    font-weight: 900;
    color: #FFFFFF; /* Arka plan koyu olduğu için yazı Beyaz */
    margin: 0 0 40px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Hafif gölge */
}

.blog-search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-bar input[type="search"] {
    width: 100%;
    padding: 20px 60px 20px 25px; /* Buton için sağda boşluk */
    background-color: rgba(255, 255, 255, 0.95); /* Hafif transparan beyaz */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.blog-search-bar input[type="search"]:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: #D55335; /* Odaklanınca turuncu */
    box-shadow: 0 0 0 4px rgba(213, 83, 53, 0.2);
}

.blog-search-bar input[type="search"]::placeholder {
    color: #666;
}

.blog-search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #D55335; /* Buton rengi Turuncu */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-search-bar button:hover {
    background-color: #b04021;
    transform: translateY(-50%) scale(1.05);
}

/* 2. Kategori Butonları */
.blog-categories {
    background-color: #0a0a0a;
    padding: 30px 5%;
    border-bottom: 1px solid #222;
    overflow-x: auto; /* Mobilde yatay kaydırma */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.category-wrapper {
    display: inline-flex;
    gap: 15px;
    padding-bottom: 5px;
}

.blog-category-button {
    background-color: #1a1a1a;
    color: #b0b0b0;
    border: 1px solid #333;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.blog-category-button:hover,
.blog-category-button.active {
    background-color: #D55335;
    color: #FFFFFF;
    border-color: #D55335;
}

/* 3. Blog Yazıları Izgarası */
.blog-posts {
    padding: 50px 5% 80px 5%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tek büyük kart stili (Large Card) */
.post-card.large-card {
    grid-column: span 2;
    min-height: 450px;
}

/* Tüm Kartlar Ortak Stil */
.post-card {
    position: relative;
    min-height: 300px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #333;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    transition: background 0.3s ease;
}

.post-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(213,83,53,0.9) 0%, rgba(213,83,53,0.1) 60%, rgba(0,0,0,0) 100%);
}

.post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.read-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.7;
    z-index: 2;
    transition: all 0.3s ease;
}

.post-card:hover .read-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.card-content {
    position: relative;
    padding: 25px;
    z-index: 2;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Sadece büyük kartta açıklama metnini göster */
.post-card.large-card .card-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Küçük kartlarda açıklamayı gizle */
.post-card:not(.large-card) .card-content p {
    display: none;
}

/* Daha Fazla Yükle Butonu */
.load-more-button {
    display: block;
    margin: 60px auto 0 auto;
    background-color: #D55335;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.load-more-button:hover {
    background-color: #b04021;
    transform: translateY(-3px);
}

/* ■■■ RESPONSIVE STİLLER ■■■ */
@media (max-width: 768px) {
    .blog-hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .posts-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }

    .post-card.large-card {
        grid-column: span 1;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .blog-category-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }
}

/* ■■■ MOBİL DÜZENLEME (BLOG) - FOOTER & SPACING ■■■ */
@media (max-width: 768px) {

    /* --- BOŞLUK SİLME (Blog'a Özel) --- */
    .blog-posts {
        /* Yazıların bittiği yer ile footer arasındaki boşluğu kapat */
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }

    .load-more-button {
        /* "Daha Fazla Yükle" butonu footer'a çok yapışmasın, hafif pay bırak */
        margin-bottom: 20px;
    }

    /* Footer centering logic similar to contact/support */
    .footer-container {
        padding: 0 20px 40px 20px !important;
        display: flex;
        flex-direction: column;
    }
    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        width: 100%;
    }
    .footer-brand {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 0 !important;
        border: none;
    }
    .footer-logo { width: 100%; text-align: center; }
    .footer-language {
        display: flex; justify-content: center; gap: 10px; margin-top: 10px; width: 100%;
    }
    .footer-links-columns {
        display: grid; grid-template-columns: 1fr 1fr; gap: 30px 10px; width: 100%; text-align: left;
    }
    .footer-bottom {
        display: flex; flex-direction: column-reverse; gap: 30px; margin-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%;
    }
    .footer-bottom-right {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
        align-items: center; justify-content: center; gap: 10px; width: 100%;
    }
    .footer-bottom-left {
        display: flex; flex-direction: column; align-items: center !important;
        justify-content: center; text-align: center !important; width: 100%;
    }
    .footer-copy { text-align: center !important; width: 100% !important; display: block; margin: 0 auto; }
    .footer-social-icons { display: flex; justify-content: center; width: 100%; margin-bottom: 15px; }
}

/* ■■■ MOBİL NAVİGASYON - HINGE STYLE (FULL SCREEN) ■■■ */

/* 1. Hamburger Butonu */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* 2. Mobil Menü Düzeni */
@media (max-width: 768px) {

    .nav-mobile-toggle {
        display: flex;
        margin-left: 15px;
    }

    .nav-mobile-toggle.is-open {
        position: fixed;
        top: 28px;
        left: 5%;
        right: auto;
        transform: none;
    }

    /* Full Ekran Kapsayıcı */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0a0a0a;

        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        padding: 120px 25px 40px 25px;
        box-sizing: border-box;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9990;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Link Stilleri */
    .nav-links a {
        display: block;
        width: 100%;
        font-family: 'Times New Roman', serif; /* Hinge Style Serif Font */
        font-size: 2.5rem;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        line-height: 1.2;

        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);

        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
    }

    .nav-links a:last-of-type {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-links a:hover {
        color: #cccccc;
    }

    /* Club Link (Özel) */
    .nav-club-link {
        margin-top: 0 !important;
        /* --- BURADA DEĞİŞİKLİK YAPILDI --- */
        padding-top: 2px !important;    /* Eskisi 20px - Kısıldı */
        padding-bottom: 2px !important; /* Eskisi 20px - Kısıldı */
        border-top: none !important;
    }

    /* --- DÜZELTİLEN KISIM BAŞLANGIÇ --- */
    .nav-club-link .club-logo-wrapper {
        width: 100px;    /* Logoyu büyütmek için artırdık */
        max-width: 100%;
        filter: none;    /* Orijinal renkler */
        opacity: 1;
        display: block;
        margin-top: 5px;
    }

    /* Resmin kendisine zorla boyut veriyoruz ki wrapper'ı doldursun */
    .nav-club-link .club-logo-wrapper img {
        width: 100% !important;  /* Wrapper ne kadarsa o kadar olsun */
        height: auto !important; /* Orantıyı koru */
        max-height: none !important; /* Yükseklik kısıtlamasını kaldır */
        display: block;
    }

    .nav-links.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.is-open a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.is-open a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.is-open a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.is-open a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.is-open a:nth-child(5) { transition-delay: 0.3s; }

    .nav-mobile-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-mobile-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    .nav-mobile-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

body.menu-open {
    overflow: hidden;
}