/**
 * Frontend Styles - GC Fast Blog Posts
 * Modern ve responsive blog post listesi tasarımı
 */

/* Ana Wrapper */
.gcfbp-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid Sistemi */
.gcfbp-posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* 2 Sütun */
.gcfbp-columns-2 .gcfbp-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(calc(50% - 15px), 1fr));
}

/* 3 Sütun (Varsayılan) */
.gcfbp-columns-3 .gcfbp-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 20px), 1fr));
}

/* 4 Sütun */
.gcfbp-columns-4 .gcfbp-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 23px), 1fr));
}

/* Post Card */
.gcfbp-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gcfbp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail - Padding-trick ile sabit aspect ratio */
.gcfbp-post-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio = 3/4 = 75% */
    overflow: hidden;
    background: #f5f5f5;
}

.gcfbp-post-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gcfbp-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* inline style'ları override et */
    height: 100% !important; /* inline style'ları override et */
    object-fit: cover; /* Resmi container'a sığdırır, taşan kısmı keser */
    object-position: center; /* Resmi ortalar */
    transition: transform 0.3s ease;
}

.gcfbp-post-card:hover .gcfbp-post-thumbnail img {
    transform: scale(1.05);
}

/* Content */
.gcfbp-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Categories */
.gcfbp-post-categories {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gcfbp-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gcfbp-category:hover {
    background: #333;
    color: #fff;
}

/* Title */
.gcfbp-post-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.gcfbp-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gcfbp-post-title a:hover {
    color: #0073aa;
}

/* Meta */
.gcfbp-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.gcfbp-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gcfbp-post-meta svg {
    opacity: 0.7;
}

/* Excerpt */
.gcfbp-post-excerpt {
    margin-bottom: 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Read More */
.gcfbp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.gcfbp-read-more:hover {
    background: #005177;
    gap: 12px;
}

.gcfbp-read-more svg {
    transition: transform 0.2s ease;
}

.gcfbp-read-more:hover svg {
    transform: translateX(4px);
}

/* View All Button */
.gcfbp-view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

.gcfbp-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gcfbp-view-all-btn:hover {
    background: #0073aa;
    gap: 16px;
}

/* Pagination */
.gcfbp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gcfbp-pagination a,
.gcfbp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.gcfbp-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.gcfbp-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.gcfbp-pagination .dots {
    border: none;
    background: transparent;
}

/* No Posts Message */
.gcfbp-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .gcfbp-columns-4 .gcfbp-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 20px), 1fr));
    }
}

@media (max-width: 768px) {
    .gcfbp-posts-grid {
        gap: 20px;
    }
    
    .gcfbp-columns-2 .gcfbp-posts-grid,
    .gcfbp-columns-3 .gcfbp-posts-grid,
    .gcfbp-columns-4 .gcfbp-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 10px), 1fr));
    }
    
    .gcfbp-post-content {
        padding: 16px;
    }
    
    .gcfbp-post-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gcfbp-columns-2 .gcfbp-posts-grid,
    .gcfbp-columns-3 .gcfbp-posts-grid,
    .gcfbp-columns-4 .gcfbp-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .gcfbp-post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Elementor Widget Specifics */
.elementor-widget-gcfbp_blog_posts .gcfbp-wrapper {
    padding: 0;
}

