/* ============================================
   Blog Page Styles - Netflix Theme
   ============================================ */

/* ============================================
   Blog Hero Section
   ============================================ */
.blog-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(229, 9, 20, 0.3) 0%, 
        rgba(20, 20, 20, 0.9) 100%),
        radial-gradient(circle at center, rgba(229, 9, 20, 0.2) 0%, transparent 70%);
    margin-top: 80px;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.blog-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Featured Post Section
   ============================================ */
.featured-section {
    padding-top: 3rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(229, 9, 20, 0.2);
    transition: all var(--transition-speed);
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.5);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-post-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================
   Post Meta & Tags
   ============================================ */
.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.post-date {
    color: var(--netflix-gray);
}

.post-read-time {
    color: var(--netflix-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Posts Grid Section
   ============================================ */
.posts-section {
    background-color: var(--bg-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-placeholder {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card-content .post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.read-more:hover {
    gap: 0.8rem;
    color: #f40612;
}

.read-more i {
    transition: transform var(--transition-speed);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, 
        rgba(229, 9, 20, 0.15) 0%, 
        rgba(20, 20, 20, 0.95) 100%);
    padding: 6rem 4%;
}

.newsletter-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4rem 3rem;
    border-radius: 12px;
    border: 2px solid rgba(229, 9, 20, 0.3);
}

.newsletter-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.newsletter-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.newsletter-box > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: var(--netflix-gray);
}

.newsletter-form button {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.85rem;
    color: var(--netflix-gray);
    font-style: italic;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .blog-hero-title {
        font-size: 3rem;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        min-height: 250px;
    }
    
    .featured-post-content {
        padding: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-post-content h3 {
        font-size: 1.5rem;
    }
    
    .post-excerpt {
        font-size: 1rem;
    }
    
    .newsletter-box {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-box h2 {
        font-size: 2rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
