/* Blog Specific Styles */

.blog-hero {
    background: linear-gradient(135deg, #3b1757 0%, #1a1a1a 50%, #eb9b2a 100%);
    padding: 150px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 23, 87, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 23, 87, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.blog-hero .hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eb9b2a 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    padding: 60px 0;
}

.filters-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 45px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 23, 87, 0.25);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-select {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 23, 87, 0.25);
}

/* Blog Articles */
.blog-articles {
    padding: 80px 0;
}

.blog-article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.blog-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-article-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-article-content {
    padding: 2rem;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-article-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.blog-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-title a:hover {
    color: var(--secondary-color);
}

.blog-article-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.blog-article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: rgba(59, 23, 87, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin: 0 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #3b1757 100%);
}

.newsletter-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin-left: auto;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 15px 20px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 15px 25px;
    font-weight: 600;
}

/* Loading States */
.loading-articles {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 23, 87, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-articles {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}

.no-articles i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .filters-container {
        padding: 1.5rem;
    }
    
    .blog-article-content {
        padding: 1.5rem;
    }
    
    .blog-article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 25px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        border-radius: 25px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 120px 0 80px;
    }
    
    .blog-filters {
        padding: 40px 0;
    }
    
    .blog-articles {
        padding: 60px 0;
    }
    
    .filters-container .row > div {
        margin-bottom: 1rem;
    }
    
    .blog-article-image {
        height: 200px;
    }
    
    .blog-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Filter Active States */
.form-control.active,
.form-select.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 23, 87, 0.25);
}

/* Category Colors */
.blog-article-category.tecnologia {
    background: linear-gradient(135deg, #3b1757 0%, #5a2d7a 100%);
}

.blog-article-category.marketing {
    background: linear-gradient(135deg, #eb9b2a 0%, #f4b942 100%);
}

.blog-article-category.seguranca {
    background: linear-gradient(135deg, #dc3545 0%, #e85d6b 100%);
}

.blog-article-category.mobile {
    background: linear-gradient(135deg, #28a745 0%, #4caf50 100%);
}

.blog-article-category.ia {
    background: linear-gradient(135deg, #007bff 0%, #0d6efd 100%);
}