/* ===================================
   BLOG PAGE - INTELEGAIN INSPIRED DESIGN
   =================================== */

/* Enhanced Variables */
:root {
    --primary: #FF6F26;
    --primary-light: #FFA726;
    --secondary: #5E35B1;
    --accent: #FF6F26;
    --dark: #0a0a0a;
    --light: #FFFFFF;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Enhanced Animated Background */
.animated-background {
    background: linear-gradient(135deg, 
        rgba(94, 53, 177, 0.1) 0%,
        rgba(10, 10, 10, 1) 30%,
        rgba(10, 10, 10, 1) 70%,
        rgba(255, 111, 38, 0.1) 100%);
}

.gradient-orb {
    animation: floatEnhanced 25s ease-in-out infinite;
}

@keyframes floatEnhanced {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(100px, -50px) scale(1.2) rotate(90deg); 
    }
    50% { 
        transform: translate(-80px, 60px) scale(0.9) rotate(180deg); 
    }
    75% { 
        transform: translate(-60px, -100px) scale(1.1) rotate(270deg); 
    }
}

/* Enhanced Hero Search Animation */
.search-box {
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 167, 38, 0.2), 
        transparent);
    animation: searchShimmer 3s infinite;
    pointer-events: none;
}

@keyframes searchShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 
        0 0 0 4px rgba(255, 167, 38, 0.1),
        0 20px 40px rgba(255, 167, 38, 0.15);
    transform: translateY(-2px);
}

/* Enhanced Category Filter - Smooth Slide In */
.category-filter {
    background: linear-gradient(to bottom, 
        rgba(94, 53, 177, 0.05) 0%,
        transparent 100%);
}

.category-btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    transform-origin: center;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.category-btn:hover::after {
    width: 150px;
    height: 150px;
}

.category-btn.active {
    animation: categoryPulse 2s infinite;
}

@keyframes categoryPulse {
    0%, 100% { 
        box-shadow: 0 8px 24px rgba(255, 111, 38, 0.4); 
    }
    50% { 
        box-shadow: 0 8px 32px rgba(255, 111, 38, 0.6), 
                    0 0 40px rgba(255, 167, 38, 0.3); 
    }
}

/* Enhanced Featured Article with Dark Gradient Overlay */
.featured-article {
    position: relative;
    overflow: hidden;
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.featured-article:hover .featured-image::before {
    opacity: 1;
}

.featured-image img {
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-article:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-article:hover .featured-content {
    transform: translateY(0);
    opacity: 1;
}

/* Blog Hero Section */
.blog-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, 
        rgba(94, 53, 177, 0.1) 0%,
        rgba(10, 10, 10, 1) 30%,
        rgba(10, 10, 10, 1) 70%,
        rgba(255, 111, 38, 0.1) 100%);
    overflow: hidden;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 1.5rem;
    transition: var(--transition-smooth);
}

.search-box i {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 1rem;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 1.25rem 0;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

.blog-card:hover {
    border-color: rgba(255, 167, 38, 0.4);
    box-shadow: 0 20px 40px rgba(255, 167, 38, 0.2);
    transform: translateY(-8px);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.read-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 167, 38, 0.1);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary);
}

.blog-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.action-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Category Filter */
.category-filter {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 111, 38, 0.3);
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: rgba(94, 53, 177, 0.05);
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.featured-article:hover {
    border-color: rgba(255, 167, 38, 0.3);
    box-shadow: 0 20px 40px rgba(255, 167, 38, 0.2);
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-category,
.featured-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.featured-category {
    color: var(--primary-light);
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.author-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 111, 38, 0.3);
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 38, 0.4);
    gap: 1rem;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 4rem 0;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.25rem;
}

.toggle-btn {
    padding: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn.active,
.toggle-btn:hover {
    background: var(--primary);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-grid.list-view {
    grid-template-columns: 1fr;
}

.blog-grid.list-view .blog-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-grid.list-view .blog-image {
    height: 200px;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.load-more-btn:hover {
    background: rgba(255, 167, 38, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(94, 53, 177, 0.1) 0%,
        rgba(255, 111, 38, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 111, 38, 0.3);
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 38, 0.4);
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .blog-grid.list-view .blog-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hide class for filtering */
.hide {
    display: none !important;
}

