/* ===== BLOG SPECIFIC STYLES ===== */

/* HERO ADAPTADO */
.article-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, var(--secondary) 0%, var(--dark) 80%);
    position: relative;
    overflow: hidden;
    padding: 150px 20px 80px;
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(90deg, #ffffff, #c7d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out both;
    margin-bottom: 16px;
}

.article-hero .highlight {
    display: block;
    background: linear-gradient(90deg, var(--accent), #ffda47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    margin-bottom: 6px;
}

.article-subtitle {
    margin-top: 16px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e5e5e5;
    line-height: 1.6;
}

/* BLOG LAYOUT & GRID */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    gap: 40px;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(91, 109, 248, 0.2);
}

.article-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.article-content {
    padding: 30px;
}

/* ARTICLE CONTENT & TYPOGRAPHY */
.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.article-date,
.article-read-time,
.article-category-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category-badge {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.article-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: var(--primary);
}

.article-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* ARTICLE BODY STYLES */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 2rem;
    margin: 60px 0 20px 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px 0;
    color: var(--light);
}

.article-body p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-body ul,
.article-body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* BREADCRUMBS */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.breadcrumbs a {
    color: var(--primary);
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

/* INFO BOXES */
.info-box {
    background: rgba(91, 109, 248, 0.1);
    border-left: 4px solid var(--primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--warning);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--success);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.info-box h4,
.warning-box h4,
.success-box h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-box h4 {
    color: var(--primary);
}

.warning-box h4 {
    color: var(--warning);
}

.success-box h4 {
    color: var(--success);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CATEGORIES WIDGET */
.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.category-count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* POPULAR POSTS */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-post {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.popular-post:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* RESPONSIVE BLOG */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        gap: 30px;
    }

    .article-content {
        padding: 25px;
    }

    .sidebar-widget {
        padding: 25px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-content-wrapper {
        padding: 40px 0;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }
}