/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Blog Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Floating Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 66, 251, 0.3) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 50%;
    animation-delay: 4s;
}

/* Geometric Grid Overlay */
.geometric-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Hero Visual Container */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: start;
}

@media (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Cards */
.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.blog-post:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* All posts now have uniform styling */

/* Post Image */
.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    margin-bottom: 0;
}

/* All post images are now the same height */

.post-image .post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.blog-post:hover .post-image .post-img {
    transform: scale(1.05);
}

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Post Category Badge */
.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-button);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

/* Post Content */
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

/* All post content has uniform padding */

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-date {
    color: #888;
}

.post-read-time {
    color: #888;
}

/* Post Title */
.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

/* All post titles are now uniform */

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: var(--accent-orange);
}

/* Post Excerpt */
.post-excerpt {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* All post excerpts are now uniform */

/* Post Tags */
.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(139, 66, 251, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Read More Link */
.read-more {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #ffffff;
    gap: 0.75rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

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

/* Blog CTA Section */
.blog-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.blog-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-cta p {
    color: #a0a0a0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blog-hero {
        padding: 10rem 0 4rem !important;
        min-height: 80vh;
        overflow-x: hidden;
    }
    
    /* Grid already set to 1 column for mobile */
    .blog-grid {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* All posts have uniform content padding */
    
    .post-image {
        height: 200px;
    }
    
    /* All post images are uniform on mobile */
    
    .orb-1, .orb-2, .orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .blog-hero {
        padding: 4rem 0 3rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.125rem;
    }
    
    .featured-post .post-title {
        font-size: 1.25rem;
    }
}
