/* ================================================
   BLOG MULTIFIRMAS - MODERNO DARK DESIGN
   ================================================ */

/* Hero Section */
.blog-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0a0f1e 0%, #111827 50%, #0a0f1e 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M40 0v80M0 40h80' stroke='%2364748b' stroke-width='0.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.hero-content h1 span {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 35%, #a78bfa 65%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-feature-settings: 'tnum';
}

.stat-number::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    margin-right: 8px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Section */
.search-section {
    padding: 32px 0;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: sticky;
    top: 72px;
    z-index: 90;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input-wrapper:hover .search-icon {
    color: #64748b;
}

.search-input-wrapper input {
    width: 100%;
    padding: 18px 56px 18px 54px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(71, 85, 105, 0.5);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #1e293b 0%, #1a2744 100%);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-input-wrapper input::placeholder {
    color: #475569;
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(71, 85, 105, 0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: rgba(71, 85, 105, 0.8);
    color: #fff;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 2px solid rgba(71, 85, 105, 0.4);
    border-radius: 14px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab svg {
    transition: transform 0.3s;
}

.filter-tab:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #cbd5e1;
    transform: translateY(-2px);
}

.filter-tab:hover svg {
    transform: scale(1.1);
}

.filter-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.filter-tab.active svg {
    transform: scale(1.1);
}

/* Articles Section */
.articles-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, rgba(10, 15, 30, 1) 0%, rgba(15, 23, 42, 1) 100%);
    min-height: 600px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* Article Card */
.article-card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 25px 50px -12px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.article-card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.article-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95) 100%);
}

.article-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.article-card-content {
    padding: 24px;
}

.article-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-card-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: #93c5fd;
    gap: 14px;
}

.read-more-link svg {
    transition: transform 0.3s;
}

.read-more-link:hover svg {
    transform: translateX(4px);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 100px 20px;
}

.no-results-icon {
    color: #1e293b;
    margin-bottom: 28px;
}

.no-results-icon svg {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.no-results h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 12px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 15px;
}

.btn-reset {
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Pagination */
.pagination-section {
    padding: 40px 0 100px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(10, 15, 30, 1) 100%);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 2px solid rgba(71, 85, 105, 0.4);
    border-radius: 14px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(.active):not(:disabled) {
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

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

.pagination-nav {
    gap: 8px;
}

.pagination-ellipsis {
    color: #475569;
    padding: 0 12px;
    font-size: 16px;
}

.results-info {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 28px;
}

.results-info span {
    color: #60a5fa;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        padding: 24px 0;
        top: 60px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .filter-tab svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 16px);
    }
    
    .pagination-btn {
        min-width: 42px;
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }
}