/* ================================
   BLOG STYLES
   ================================ */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #020617 0%, #0B1120 50%, #020617 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Content Layout */
.blog-content {
    background: #020617;
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.blog-main {
    min-width: 0;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0B1120 0%, #1a1f35 100%);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 1.5rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(56, 189, 248, 0.05);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.75rem;
    color: #E5E7EB;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn i {
    width: 18px;
    height: 18px;
    color: #38BDF8;
}

.category-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-color: #38BDF8;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: linear-gradient(135deg, #0B1120 0%, #1a1f35 100%);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 60px rgba(56, 189, 248, 0.2);
}

.post-card.hidden {
    display: none;
}

/* Post Image */
.post-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.post-category i {
    width: 16px;
    height: 16px;
}

.post-category.noticias {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.post-category.dicas {
    background: rgba(251, 191, 36, 0.9);
    color: #fff;
}

.post-category.case-studies {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.post-category.tutoriais {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.post-category.tendencias {
    background: rgba(168, 85, 247, 0.9);
    color: #fff;
}

.post-category.performance {
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
}

/* Post Content */
.post-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta i {
    width: 16px;
    height: 16px;
}

.post-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #E5E7EB;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #38BDF8;
}

.post-excerpt {
    color: #9CA3AF;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #38BDF8;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-read-more i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.post-read-more:hover {
    gap: 0.75rem;
}

.post-read-more:hover i {
    transform: translateX(4px);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: linear-gradient(135deg, #0B1120 0%, #1a1f35 100%);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E5E7EB;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
}

/* About Widget */
.about-widget p {
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.widget-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-cta i {
    width: 18px;
    height: 18px;
}

.widget-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.recent-post-item:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(4px);
}

.recent-post-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-item:hover .recent-post-info h4 {
    color: #38BDF8;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #6B7280;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.categories-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(56, 189, 248, 0.05);
    border: 2px solid rgba(56, 189, 248, 0.15);
    border-radius: 0.75rem;
    color: #E5E7EB;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list li a i {
    width: 20px;
    height: 20px;
    color: #38BDF8;
}

.categories-list li a span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.category-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38BDF8;
}

.categories-list li a:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-content {
        padding: 60px 0;
    }

    .category-filter {
        padding: 1.5rem;
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .category-btn span {
        display: none;
    }

    .category-btn i {
        width: 20px;
        height: 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-image {
        height: 200px;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .widget-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .category-filter {
        justify-content: center;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
