/* ================================
   BLOG PAGE STYLES
   ================================ */

.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--gradient-hero);
    text-align: center;
}

/* Animated Background */
.blog-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    z-index: 0;
    overflow: hidden;
}

.blog-hero .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.blog-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    padding: 0.625rem 1.5rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(10px);
}

.blog-hero .badge-icon i {
    color: var(--secondary);
    animation: sparkle 2s ease-in-out infinite;
}

/* Search Bar */
.search-bar {
    max-width: 650px;
    margin: 2.5rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 3.5rem;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(31, 41, 55, 0.8);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

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

/* Blog Categories */
.blog-categories {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-tag i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.category-tag:hover {
    background: rgba(31, 41, 55, 0.9);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-tag:hover i {
    transform: scale(1.1);
}

.category-tag.active,
.category-tag.active:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}

.blog-grid {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

/* Enhanced Post Cards */
.posts-grid .post-card {
    position: relative;
    overflow: hidden;
}

.posts-grid .post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.posts-grid .post-card:hover::before {
    transform: scaleX(1);
}

.posts-grid .post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.15);
}