﻿/* Publications Page CSS */
.publications-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    overflow: hidden;
}

.publications-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/index/homesection1background-1920.webp') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.publications-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}

.publications-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.publications-lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.publications-content {
    padding: 80px 0;
    background-color: #f8fafc;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #8B4513;
    background-color: transparent;
    color: #8B4513;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-btn:hover {
    background-color: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.category-btn.active {
    background-color: #8B4513;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 17px;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
}

/* Görsel Alanı (Kırmızı ile çizilen) - %75 */
.post-image {
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Metin ve Buton Alanı (Yeşil ile çizilen) - %25 */
.post-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.post-category {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.post-date {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.read-more {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #8B4513;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    background-color: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* No Posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-posts h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.no-posts p {
    color: #64748b;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .publications-title {
        font-size: 2.5rem;
    }
    
    .publications-lead {
        font-size: 1.1rem;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card {
        padding: 16px;
    }
    
    .post-image {
        height: 220px;
    }
    
    .post-content {
        padding: 14px;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .publications-hero__inner {
        padding: 60px 20px;
    }
    
    .publications-title {
        font-size: 2rem;
    }
    
    .publications-content {
        padding: 60px 0;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}