/* 
 * Blog Styles for Imbatik
 * Modern Tech Synergy Design System
 */

/* Blog Archive & Grid */
.blog-header {
    background-color: var(--surface);
    border-bottom: 1px solid rgba(116, 118, 133, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--surface-container-lowest);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(196, 198, 213, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 10px 30px -4px rgba(40, 84, 194, 0.12);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.badge-seo { background: rgba(0, 133, 88, 0.9); color: #f6fff6; }
.badge-growth { background: rgba(255, 123, 114, 0.9); color: #731214; }
.badge-dev { background: rgba(70, 110, 221, 0.9); color: #fefcff; }

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--on-surface);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-date {
    font-size: 12px;
    color: var(--outline);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-more {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-more {
    transform: translateX(4px);
}

/* Category Filters */
.blog-filters {
    position: sticky;
    top: 80px;
    z-index: 40;
    background: rgba(249, 249, 252, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(196, 198, 213, 0.3);
    border-bottom: 1px solid rgba(196, 198, 213, 0.3);
    padding: 16px 0;
    margin-bottom: 48px;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--on-surface-variant);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(40, 84, 194, 0.2);
}

.filter-btn:not(.active):hover {
    background: var(--surface-container-high);
}

/*
 * Single Post styles han sido movidos al template single.php
 * para mejor encapsulación (CSS inline ahí, con variables sp-* y specificity
 * controlada). Mantener AQUÍ vacío evita conflictos con las clases viejas
 * (.post-title, .single-post-container, .post-meta, .post-toc, etc.) que ya
 * no existen en el HTML actual del single.php.
 *
 * Si necesitas extender el single.php, hazlo dentro del propio template
 * (bloque <style> en single.php) o crea un archivo nuevo css/single-post.css.
 */
