/* Blog Grid - etechnologie.pl */

/* Inherit Enfold fonts */
.et-blog-header, .et-blog-title, .et-blog-subtitle,
.et-card-title, .et-card-excerpt, .et-filter-tab {
    font-family: inherit;
}


/* Header */
.et-blog-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0 1rem;
}
.et-blog-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}
.et-blog-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
}

/* Category Filters */
.et-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    justify-content: center;
}
.et-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.et-filter-tab:hover {
    background: #e8e8e8;
    color: #222;
}
.et-filter-tab.active {
    background: #e8740e;
    color: #fff;
    border-color: #e8740e;
}
.et-filter-tab.active .et-filter-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.et-filter-count {
    font-size: 0.75rem;
    background: #e0e0e0;
    color: #777;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    line-height: 1.4;
}

/* Grid */
.et-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Featured (first) card - 2/3 width */
.et-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}
.et-card-featured .et-card-image-link {
    height: 100%;
    min-height: 320px;
}
.et-card-featured .et-card-image {
    height: 100%;
    min-height: 320px;
}
.et-card-featured .et-card-title {
    font-size: 1.5rem;
}
.et-card-featured .et-card-excerpt {
    font-size: 0.95rem;
}

/* Card */
.et-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.et-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Card Image */
.et-card-image-link {
    display: block;
    overflow: hidden;
    height: 200px;
    background: #f0f0f0;
}
.et-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.et-card:hover .et-card-image {
    transform: scale(1.04);
}
.et-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

/* Card Content */
.et-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta: categories */
.et-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.et-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #e8740e !important;
    background: rgba(232, 116, 14, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.et-card-category:hover {
    background: rgba(232, 116, 14, 0.2);
}

/* Title */
.et-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}
.et-card-title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s;
}
.et-card-title a:hover {
    color: #e8740e;
}

/* Excerpt */
.et-card-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

/* Footer */
.et-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}
.et-card-date {
    font-size: 0.8rem;
    color: #999;
}
.et-card-readmore {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8740e !important;
    text-decoration: none !important;
    transition: gap 0.2s;
}
.et-card-readmore:hover {
    text-decoration: underline !important;
}

/* Pagination */
.et-blog-pagination {
    text-align: center;
    margin: 2rem 0 3rem;
}
.et-blog-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.et-blog-pagination li {
    margin: 0;
}
.et-blog-pagination a,
.et-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    text-decoration: none !important;
    transition: all 0.2s;
}
.et-blog-pagination a:hover {
    background: #e8e8e8;
    color: #222;
}
.et-blog-pagination .current {
    background: #e8740e;
    color: #fff;
}

/* Empty state */
.et-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .et-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .et-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .et-card-featured .et-card-image-link,
    .et-card-featured .et-card-image {
        height: 250px;
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .et-blog-grid {
        grid-template-columns: 1fr;
    }
    .et-card-featured {
        grid-column: span 1;
    }
    .et-card-featured .et-card-image-link,
    .et-card-featured .et-card-image {
        height: 200px;
    }
    .et-card-image-link {
        height: 180px;
    }
    .et-card-image {
        height: 180px;
    }
    .et-blog-filters {
        justify-content: flex-start;
    }
    .et-blog-title {
        font-size: 1.6rem;
    }
}
