/* --- MAKALELERİM SAYFASI PROFESYONEL TASARIM (V2.0) --- */

/* 1. GENEL SAYFA DÜZENİ */
.main-content {
    background-color: #f9f9f9; /* Hafif gri arka plan ile içerik ayrışsın */
    min-height: 100vh;
}

/* İçeriği saran ana kutu: Kenarlardan boşluk bırakır */
.content-wrapper {
    padding: 50px 60px; /* Üst/Alt: 50px, Sağ/Sol: 60px */
    max-width: 1600px;
    margin: 0 auto;
}

/* 2. BAŞLIK VE ARAMA ALANI */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px; /* Makaleler ile başlık arası mesafe */
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.about-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #1c2331; /* Lacivert */
    font-weight: 700;
    margin: 0;
    position: relative;
}

/* Başlık Altındaki Altın Çizgi */
.about-main-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #c5a059;
    margin-top: 10px;
}

/* Arama Kutusu Tasarımı */
.search-container {
    position: relative;
    width: 350px;
}

.search-container input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 60px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Tam oval (hap) şekli */
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #c5a059;
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.2);
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 42px;
    height: 42px;
    background-color: #c5a059;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-container button:hover {
    background-color: #1c2331;
}

/* 3. IZGARA (GRID) YAPISI */
.articles-grid-wrapper {
    display: grid;
    /* Ekran genişliğine göre 3 kolon, sığmazsa aşağı atar */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; /* Kartlar arası boşluk */
    width: 100%;
}

/* 4. MAKALE KARTI TASARIMI */
.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Hafif gölge */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.article-card:hover {
    transform: translateY(-10px); /* Yukarı kalkma efekti */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Gölge belirginleşir */
}

.article-image-wrapper {
    height: 240px; /* Görsel yüksekliği */
    overflow: hidden;
    position: relative;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.1); /* Resim yakınlaşır */
}

/* Tarih Rozeti (Sağ üst köşe) */
.date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #c5a059;
    color: #fff;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c2331;
    margin-bottom: 15px;
    line-height: 1.3;
    /* Başlığı 2 satırla sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-card:hover .article-title {
    color: #c5a059;
}

.article-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    /* Metni 3 satırla sınırla */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c2331;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    margin-top: auto; /* En alta iter */
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.read-more-btn:hover {
    color: #c5a059;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* 5. SAYFALAMA (PAGINATION) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 600;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.page-link:hover {
    background-color: #c5a059;
    border-color: #c5a059;
    color: #fff;
    transform: translateY(-3px);
}

.page-link.active {
    background-color: #1c2331;
    border-color: #1c2331;
    color: #fff;
    pointer-events: none; /* Aktif sayfaya tıklanamaz */
}

/* 6. MOBİL UYUMLULUK */
@media (max-width: 1200px) {
    .articles-grid-wrapper { grid-template-columns: repeat(2, 1fr); }
    .content-wrapper { padding: 40px; }
}

@media (max-width: 768px) {
    .articles-grid-wrapper { grid-template-columns: 1fr; }
    
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .content-wrapper {
        padding: 30px 20px; /* Mobilde kenar boşluklarını azalt */
    }
    
    .about-main-title {
        font-size: 2rem;
    }
}