/**
 * Sosyal XL Blog Cards - Stil Dosyası
 * Version: 1.2.0
 */

/* Blog Kartları Container */
.sosyalxl-blog-cards {
    display: grid;
    gap: 30px;
    width: 100%;
    padding: 20px 0;
}

/* Sütun Düzenleri */
.sosyalxl-columns-1 {
    grid-template-columns: 1fr;
}

.sosyalxl-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sosyalxl-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sosyalxl-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Blog Kartı */
.sosyalxl-blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sosyalxl-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Kart Link */
.sosyalxl-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sosyalxl-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Kart Görseli */
.sosyalxl-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.sosyalxl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sosyalxl-blog-card:hover .sosyalxl-card-image img {
    transform: scale(1.1);
}

/* Placeholder Görsel */
.sosyalxl-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    color: #94a3b8;
}

.sosyalxl-card-placeholder svg {
    width: 60px;
    height: 60px;
}

/* Kart İçeriği */
.sosyalxl-card-content {
    padding: 20px;
}

/* Kart Başlığı */
.sosyalxl-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sosyalxl-blog-card:hover .sosyalxl-card-title {
    color: #6366f1;
}

/* Kart Özeti */
.sosyalxl-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kart Butonu */
.sosyalxl-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6366f1;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sosyalxl-blog-card:hover .sosyalxl-card-button {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

.sosyalxl-card-button i {
    transition: transform 0.3s ease;
}

.sosyalxl-blog-card:hover .sosyalxl-card-button i {
    transform: translateX(4px);
}

/* Yazı Yok Mesajı */
.sosyalxl-no-posts {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 1.1rem;
}

/* Responsive Tasarım */
@media screen and (max-width: 1200px) {
    .sosyalxl-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .sosyalxl-columns-3,
    .sosyalxl-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sosyalxl-card-title {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .sosyalxl-blog-cards {
        gap: 20px;
    }
    
    .sosyalxl-columns-2,
    .sosyalxl-columns-3,
    .sosyalxl-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .sosyalxl-card-image {
        height: 180px;
    }
    
    .sosyalxl-card-content {
        padding: 16px;
    }
    
    .sosyalxl-card-title {
        font-size: 1.15rem;
    }
    
    .sosyalxl-card-excerpt {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .sosyalxl-card-image {
        height: 160px;
    }
    
    .sosyalxl-card-title {
        font-size: 1.05rem;
    }
    
    .sosyalxl-card-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* Elementor Editör Uyumluluğu */
.elementor-editor-active .sosyalxl-blog-card {
    cursor: default;
}

.elementor-editor-active .sosyalxl-blog-card:hover {
    transform: none;
}

/* Hello Elementor Tema Uyumluluğu */
body.hello-elementor .sosyalxl-blog-cards {
    max-width: 100%;
}

/* Animasyonlar */
@keyframes sosyalxl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sosyalxl-blog-card {
    animation: sosyalxl-fadeIn 0.5s ease forwards;
}

.sosyalxl-blog-card:nth-child(1) { animation-delay: 0.1s; }
.sosyalxl-blog-card:nth-child(2) { animation-delay: 0.2s; }
.sosyalxl-blog-card:nth-child(3) { animation-delay: 0.3s; }
.sosyalxl-blog-card:nth-child(4) { animation-delay: 0.4s; }
.sosyalxl-blog-card:nth-child(5) { animation-delay: 0.5s; }
.sosyalxl-blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Print Stilleri */
@media print {
    .sosyalxl-blog-cards {
        display: block;
    }
    
    .sosyalxl-blog-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .sosyalxl-card-button {
        display: none;
    }
}
