/* 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;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.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;
}

/* Boş yazı mesajı stili */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-posts i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.no-posts h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.no-posts p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.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;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title-card {
    color: #2563eb;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    overflow: hidden; /* Resim taşmasını engeller */
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi boşa sığdırır, keser */
    border-radius: 50%; /* Yuvarlak şekil */
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.author-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.blog-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-stat:hover {
    color: #2563eb;
}

.blog-stat i {
    font-size: 0.9rem;
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
    .blog-page {
        padding-top: 100px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .blog-grid:has(.blog-card:only-child) {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .blog-card {
        border-radius: 12px;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-author {
        padding: 0.75rem;
    }

    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .blog-title-card {
        font-size: 1.1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .blog-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}
