/* Blog Sayfası Özel Stilleri */

.blog-page {
    min-height: 100vh;
    background: #f9fafb;
    padding-top: 120px;
    padding-bottom: 80px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tek blog olduğunda 2 sütunlu yap */
.blog-grid:has(.blog-card:only-child) {
    grid-template-columns: 1fr 1fr;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta i {
    color: #2563eb;
    font-size: 0.9rem;
}

.blog-title-card {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title-card {
    color: #2563eb;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.author-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

.blog-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.blog-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.blog-stat i {
    color: #2563eb;
}

@media screen and (max-width: 768px) {
    .blog-page {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .blog-container {
        padding: 0 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Mobilde tek blog olduğunda da tek sütun */
    .blog-grid:has(.blog-card:only-child) {
        grid-template-columns: 1fr !important;
    }
    
    .blog-card {
        border-radius: 12px;
        width: 100%;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1.2rem;
    }
    
    .blog-title-card {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-stats {
        gap: 1rem;
    }
}

/* Küçük mobil cihazlar için */
@media screen and (max-width: 480px) {
    .blog-container {
        padding: 0 10px;
    }
    
    .blog-grid {
        gap: 1rem;
    }
    
    .blog-card {
        border-radius: 10px;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-title-card {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
        gap: 0.8rem;
    }
    
    .blog-stats {
        gap: 0.8rem;
        font-size: 0.75rem;
    }
}
