/* ==========================================
   BLOG MEJORADO - RepararPC Lite v1.2
   ========================================== */

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

/* Card de post */
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

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

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

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

.post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #8b5cf6;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #9ca3af;
}

.post-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.post-card h2 a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover {
    color: #8b5cf6;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Featured post */
.featured-post {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-post-image {
    position: relative;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content {
    padding: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    width: fit-content;
}

.featured-post h2 {
    font-size: 36px;
    margin: 0 0 20px 0;
    color: #fff;
}

.featured-post-excerpt {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

.featured-post .read-more {
    background: #fff;
    color: #8b5cf6;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    width: fit-content;
}

/* Single post */
.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.single-post-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    color: #9ca3af;
}

.single-post h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #4b5563;
}

.single-post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px 0;
}

.single-post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.single-post-content img {
    border-radius: 10px;
    margin: 30px 0;
}

/* Posts relacionados */
.related-posts {
    margin: 60px 0;
    padding: 60px 0;
    border-top: 2px solid #e5e7eb;
}

.related-posts h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* Social share */
.social-share {
    display: flex;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-content {
        padding: 40px 30px;
    }
    
    .featured-post h2 {
        font-size: 28px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post-image {
        height: 300px;
    }
    
    .single-post h1 {
        font-size: 32px;
    }
}
