/* ===================================================================
   BLOG CARDS - GÜLPAMUKLAR İNŞAAT
   Blog sayfaları için modern kart tasarımları
   =================================================================== */

/* Blog Ana Kartı */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blog-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

/* Blog Resim Alanı */
.blog-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Blog Etiketleri */
.blog-tags {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.blog-tag {
    background: var(--blog-accent);
    color: white;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Blog İçerik Alanı */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* Blog Başlığı */
.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--blog-text-dark);
}

.blog-title a {
    color: var(--blog-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(to right, var(--blog-primary), var(--blog-primary));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
}

.blog-title a:hover {
    color: var(--blog-primary);
    background-size: 100% 2px;
}

/* Blog Özet */
.blog-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--blog-text-light);
    margin-bottom: 20px;
}

/* Blog Meta Bilgileri */
.blog-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--blog-text-light);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-name {
    font-weight: 600;
    color: var(--blog-text-dark);
    transition: color 0.3s ease;
}

.blog-author:hover .blog-author-name {
    color: var(--blog-primary);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.blog-date i {
    color: var(--blog-accent);
}

/* Blog Okuma Süresi */
.blog-read-time {
    background: rgba(0,114,188,0.1);
    color: var(--blog-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.blog-read-time:hover {
    background: var(--blog-primary);
    color: white;
}

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

/* Featured Blog Kartı */
.blog-card-featured {
    position: relative;
    margin-bottom: 40px;
    border-radius: 25px;
}

.blog-card-featured .blog-image {
    padding-bottom: 65%; /* Biraz daha büyük görsel */
}

.blog-card-featured::after {
    content: 'ÖNERİLEN';
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--blog-gradient);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    z-index: 2;
    backdrop-filter: blur(5px);
}

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

/* Blog Kategori Alanı */
.blog-category-area {
    margin-bottom: 40px;
}

.blog-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.blog-category-pill {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--blog-text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-category-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blog-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-category-pill span {
    position: relative;
    z-index: 2;
}

.blog-category-pill:hover::before,
.blog-category-pill.active::before {
    opacity: 1;
}

.blog-category-pill:hover,
.blog-category-pill.active {
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-medium);
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading Placeholder */
.blog-card.loading .blog-image {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Blog Liste Görünümü */
.blog-list .blog-card {
    display: flex;
    flex-direction: row;
    height: auto;
    margin-bottom: 25px;
}

.blog-list .blog-image {
    width: 35%;
    padding-bottom: 0;
    height: auto;
}

.blog-list .blog-content {
    width: 65%;
}

/* Blog Detay Sayfası */
.blog-detail {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.blog-detail-header {
    margin-bottom: 30px;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.blog-detail-image {
    margin: -40px -40px 30px;
    height: 450px;
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--blog-text-dark);
}

.blog-content-body p {
    margin-bottom: 20px;
}

.blog-content-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--blog-primary);
}

.blog-content-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--blog-text-dark);
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content-body li {
    margin-bottom: 10px;
}

.blog-content-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--blog-accent);
    background: rgba(0,0,0,0.02);
    font-style: italic;
    color: var(--blog-text-dark);
    border-radius: 0 10px 10px 0;
}

/* Blog İlgili Yazılar */
.related-posts {
    margin-top: 50px;
}

.related-posts-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--blog-primary);
    position: relative;
    padding-left: 15px;
}

.related-posts-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--blog-accent);
    border-radius: 3px;
}

/* Yorum Alanı */
.blog-comments {
    margin-top: 50px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.blog-comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--blog-primary);
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author-name {
    font-weight: 600;
    color: var(--blog-text-dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--blog-text-light);
}

.comment-content {
    line-height: 1.6;
    color: var(--blog-text-dark);
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card-featured .blog-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .blog-list .blog-card {
        flex-direction: column;
    }
    
    .blog-list .blog-image,
    .blog-list .blog-content {
        width: 100%;
    }
    
    .blog-list .blog-image {
        padding-bottom: 56.25%;
    }
    
    .blog-detail {
        padding: 25px;
    }
    
    .blog-detail-image {
        margin: -25px -25px 25px;
        height: 300px;
    }
    
    .blog-detail-title {
        font-size: 2rem;
    }
    
    .blog-content-body {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured .blog-title {
        font-size: 1.4rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-author {
        width: 100%;
    }
    
    .blog-detail-title {
        font-size: 1.6rem;
    }
    
    .blog-detail-image {
        height: 200px;
    }
    
    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .related-posts-title {
        font-size: 1.4rem;
    }
    
    .blog-comments {
        padding: 20px;
    }
} 