/* Blog Page - Magazine Style Layout */

.blog-hero {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(236, 72, 153, 0.05) 50%, 
        rgba(6, 182, 212, 0.08) 100%
    );
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-section {
    padding: 4rem 0 6rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.5rem;
    background: linear-gradient(45deg, #6366f1, #ec4899, #06b6d4, #a855f7, #6366f1);
    background-size: 300% 300%;
    animation: gradient-rotate 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:nth-child(1)::before {
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #f472b6, #a855f7, #8b5cf6);
}

.blog-card:nth-child(2)::before {
    background: linear-gradient(45deg, #f59e0b, #ef4444, #ec4899, #f97316, #f59e0b);
}

.blog-card:nth-child(3)::before {
    background: linear-gradient(45deg, #22c55e, #06b6d4, #3b82f6, #10b981, #22c55e);
}

.blog-card:nth-child(4)::before {
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #6366f1, #14b8a6, #06b6d4);
}

.blog-card:nth-child(5)::before {
    background: linear-gradient(45deg, #ec4899, #f472b6, #fb7185, #f43f5e, #ec4899);
}

.blog-card:nth-child(6)::before {
    background: linear-gradient(45deg, #a855f7, #8b5cf6, #ec4899, #d946ef, #a855f7);
}

.blog-card:hover {
    transform: translateY(-12px) rotateX(3deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(99, 102, 241, 0.2);
}

.blog-card:hover::before {
    opacity: 1;
}

/* Shine effect */
.blog-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card.featured .blog-image {
    aspect-ratio: auto;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder::after {
    content: '📝';
    font-size: 3rem;
    opacity: 0.5;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

.blog-card.featured .blog-title {
    font-size: 1.5rem;
}

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

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: #818cf8;
    transition: gap 0.2s ease;
}

.blog-link:hover {
    gap: 0.5rem;
}

/* Blog CTA */
.blog-cta {
    margin-top: 4rem;
    text-align: center;
}

.blog-cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-subscribe {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.blog-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.blog-input::placeholder {
    color: var(--text-muted);
}

.blog-input:focus {
    outline: none;
    border-color: #818cf8;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
        grid-column: span 1;
    }
    
    .blog-subscribe {
        flex-direction: column;
    }
}