.blogs-hero {
    position: relative;
    background: var(--bg-primary);
    padding: 2rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .blogs-hero::before {
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.08), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.08), transparent 50%);
}

.blogs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.blogs-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

[data-theme="light"] .blogs-hero-title {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 50%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.blogs-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.blogs-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 2rem;
}

.blogs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 0 1.5rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .filter-btn:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .filter-btn.active {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.search-filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .search-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count i {
    color: #04ff75;
}

[data-theme="light"] .results-count i {
    color: #10b981;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blogs-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.see-more {
    color: #6366f1;
    font-weight: 500;
    margin-left: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.see-more:hover {
    color: #818cf8;
    text-decoration: underline;
}

[data-theme="light"] .see-more {
    color: #4f46e5;
}

[data-theme="light"] .see-more:hover {
    color: #6366f1;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

[data-theme="light"] .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
    height: 12rem;
}

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.blog-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .blog-tag {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.no-results-icon {
    width: 4rem;
    height: 4rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.no-results-icon i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.clear-filters-btn {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.clear-filters-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

@media (min-width: 768px) {
    .blogs-title {
        font-size: 3rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-filter-section {
        flex-direction: row;
        align-items: center;
    }

    .results-info {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
