/* Blog Page Styles */
.blog-container {
    min-height: 100vh;
    background: transparent;
    padding-top: 80px;
}

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

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

.blog-hero .hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #374151 50%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.48);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Feed Section */
.blog-feed {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Card - Grid Layout */
.blog-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Blog Image Section */
.blog-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.54);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content Section */
.blog-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date,
.blog-read-time {
    font-size: 0.9rem;
    color: gainsboro;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-title a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.blog-title a:hover {
    color: rgba(0, 0, 0, 0.48);
}

.blog-excerpt {
    color: rgba(0, 0, 0, 0.42);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Blog Actions Section */
.blog-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid gainsboro;
    border-radius: 8px;
    color: gainsboro;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: gainsboro;
    color: gainsboro;
    transform: translateY(-2px);
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

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

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 2rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid gainsboro;
    border-radius: 10px;
    color: gainsboro;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: gainsboro;
    color: gainsboro;
    transform: translateY(-2px);
}

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

.load-more-btn:hover i {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 1rem;
    }

    .blog-hero .hero-title {
        font-size: 2rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }

    .blog-feed {
        padding: 1rem;
    }

    /* Horizontal cards become vertical on mobile */
    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        width: 100%;
        height: 200px;
        min-width: auto;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-title a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-hero .hero-title {
        font-size: 1.8rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-author {
        padding-top: 0.5rem;
    }
}

/* Dark Theme Styles */
body:not(.light-theme) .blog-container {
    background: transparent;
}

body:not(.light-theme) .blog-hero .hero-badge {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
}

body:not(.light-theme) .blog-hero .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
    background-clip: text;
}

body:not(.light-theme) .blog-hero .hero-subtitle {
    color: white;
}

body:not(.light-theme) .blog-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .blog-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body:not(.light-theme) .blog-content {
    background: transparent;
}

body:not(.light-theme) .blog-title a {
    color: #ffffff;
}

body:not(.light-theme) .blog-title a:hover {
    color: #60a5fa;
}

body:not(.light-theme) .blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

body:not(.light-theme) .blog-meta {
    border-top: 1px solid gainsboro;
}

body:not(.light-theme) .blog-date {
    color: gainsboro;
}

body:not(.light-theme) .blog-author {
    color: gainsboro;
}

body:not(.light-theme) .author-avatar {
    border: 2px solid white;
}

body:not(.light-theme) .category-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}
