/* Blog-specific styles */
.blog-header {
    background-color: var(--bg-darker);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(109, 86, 207, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(67, 56, 202, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.blog-hero {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 100px 0 60px;
}

.home-icon {
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 100;
}

.home-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--grad-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.home-icon a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(109, 86, 207, 0.4);
}

.blog-main {
    padding: 80px 0;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(109, 86, 207, 0.2);
    position: relative;
    overflow: hidden;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(109, 86, 207, 0.05) 0%, rgba(67, 56, 202, 0.05) 100%);
    z-index: 0;
}

.featured-content,
.featured-image {
    position: relative;
    z-index: 1;
}

.featured-badge {
    display: inline-block;
    background: var(--grad-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-post h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--grad-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.read-more-btn {
    display: inline-block;
    background: var(--grad-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 86, 207, 0.4);
}

.read-more-btn.disabled {
    background: #4a5568;
    cursor: not-allowed;
    opacity: 0.6;
}

.read-more-btn.disabled:hover {
    background: #4a5568;
    transform: none;
    box-shadow: none;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--accent-primary);
}

/* Blog Categories */
.blog-categories {
    margin-bottom: 3rem;
}

.blog-categories h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.category-card:hover,
.category-card.active {
    border-color: var(--accent-primary);
    background: rgba(109, 86, 207, 0.1);
}

.category-card i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.category-card span {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.post-count {
    background: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Blog Posts */
.blog-posts {
    margin-bottom: 4rem;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.posts-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.sort-options select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(109, 86, 207, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(109, 86, 207, 0.1);
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.post-image {
    position: relative;
    height: 200px;
}

.post-image .image-placeholder {
    height: 100%;
    font-size: 2rem;
}

.category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.category-tag.tutorials {
    background: #10b981;
}

.category-tag.research {
    background: #3b82f6;
}

.category-tag.industry {
    background: #f59e0b;
}

.category-tag.tools {
    background: #8b5cf6;
}

.post-content {
    padding: 1.5rem;
}

.post-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.post-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-content .post-meta {
    margin-bottom: 0;
    font-size: 0.8rem;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(109, 86, 207, 0.2);
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    opacity: 0.05;
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.newsletter-signup h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.newsletter-signup p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(109, 86, 207, 0.3);
    border-radius: 25px;
    background: var(--bg-darker);
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

.newsletter-form button {
    background: var(--grad-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 86, 207, 0.4);
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-main {
        padding: 60px 0;
    }
    
    .featured-post {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .featured-post h2 {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .posts-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .featured-post {
        padding: 1rem;
    }
    
    .newsletter-signup {
        padding: 2rem 1rem;
    }
} 