/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 900;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #333;
    color: #cccccc;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: #111111;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 40px;
}

.featured-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.3;
}

.featured-excerpt {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.featured-highlights {
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    margin-bottom: 25px;
}

.featured-highlights h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 16px;
}

.featured-highlights ul {
    list-style: none;
    padding: 0;
}

.featured-highlights li {
    color: #cccccc;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.featured-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
    background: #0a0a0a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-badge.leak {
    background: #e74c3c;
    color: #ffffff;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.post-category.official {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.post-category.leaks {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.post-category.analysis {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.post-category.characters {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.post-category.gameplay {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.post-date,
.read-time {
    font-size: 12px;
    color: #888;
}

.post-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.4;
}

.post-excerpt {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.post-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #333;
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more {
    color: #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #f7931e;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    margin-bottom: 20px;
}

.posts-count {
    color: #888;
    font-size: 14px;
}

/* Blog Newsletter CTA */
.blog-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.newsletter-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-content p {
    color: #cccccc;
    font-size: 18px;
}

.inline-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.inline-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
}

.inline-form input:focus {
    outline: none;
    border-color: #ff6b35;
}

.inline-form input::placeholder {
    color: #888;
}

/* Active nav link style for blog page */
.nav-link.active {
    color: #ff6b35;
}

.nav-link.active::after {
    width: 100%;
}

/* Article animations */
.blog-post {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.blog-post.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Filter animations */
.blog-post.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.blog-post.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .newsletter-cta {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .featured-article {
        padding: 60px 0;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-posts {
        padding: 60px 0;
    }
    
    .blog-newsletter {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .inline-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .inline-form input,
    .inline-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        gap: 8px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
}

/* Loading states for dynamic content */
.loading-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.loading-post {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-post-image {
    height: 220px;
    background: #333;
}

.loading-post-content {
    padding: 25px;
}

.loading-title {
    height: 20px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.loading-excerpt {
    height: 60px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 20px;
}

.loading-meta {
    display: flex;
    gap: 15px;
}

.loading-meta-item {
    height: 12px;
    background: #333;
    border-radius: 4px;
    flex: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Search functionality styles */
.blog-search {
    margin-bottom: 40px;
    text-align: center;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #333;
    border-radius: 25px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 80px 0;
    color: #888;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #cccccc;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 25px;
}

.clear-filters {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters:hover {
    color: #f7931e;
}
