/* Blog Index Full Styles (deferred) */

/* Reset and base styles */
.blog-page * {
    box-sizing: border-box;
}

.blog-page {
    min-height: 100vh;
    background: #2f2f2f;
    padding: 0;
    margin: 0;
}

/* Hero section */
.blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 0;
    margin: -110px 0 40px 0;
    padding-top: 170px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

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

.blog-hero h1 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.intro-text {
    color: #e0e0e0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main container */
.blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Section headers */
.section-header {
    color: #4CAF50;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4CAF50;
    display: inline-block;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, transparent);
}

/* Category navigation */
.category-nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-nav h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-nav .category-item {
    display: inline-block;
    margin: 6px 8px 6px 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2d2d2d 0%, #383838 100%);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #404040;
    position: relative;
    overflow: hidden;
}

.category-nav .category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.category-nav .category-item:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.category-nav .category-item:hover::before {
    left: 100%;
}

/* Featured grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog sections layout */
.blog-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.latest-posts {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

.latest-post-item {
    padding: 18px 0;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.latest-post-item:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #383838 100%);
    margin: 0 -15px;
    padding: 18px 15px;
    border-radius: 8px;
    transform: translateX(-3px);
}

.latest-post-item:last-child {
    border-bottom: none;
}

.latest-post-item h4 {
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 600;
}

.latest-post-item .author {
    color: #4CAF50;
    font-size: 0.8rem;
    font-weight: 500;
}

.latest-post-item .date {
    color: #888;
    font-size: 0.75rem;
}

/* About section */
.about-ai-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.about-ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #4CAF50);
}

.about-ai-section p {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.cta-button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 1024px) {
    .blog-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: static;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 0;
        padding-top: 140px;
    }

    .blog-main-container {
        padding: 0 15px;
    }

    .category-nav {
        padding: 20px;
    }

    .category-nav .category-item {
        margin: 4px 6px 4px 0;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-posts {
        padding: 20px;
    }

    .about-ai-section {
        padding: 25px;
    }
}

/* Section descriptions */
.section-description {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

.sidebar-description {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.section-header-container {
    margin-bottom: 25px;
}

/* Pagination section */
.pagination-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    position: relative;
}

.pagination-title {
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.pagination-section nav {
    margin: 0;
}

.pagination-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #4CAF50);
    border-radius: 12px 12px 0 0;
}

/* Breadcrumb Styling */
.page-breadcrumb {
    margin: 15px 0;
    font-size: 0.8rem;
}

.page-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.page-breadcrumb li {
    color: #888;
    margin-right: 8px;
}

.page-breadcrumb li:not(:last-child)::after {
    content: ' › ';
    margin-left: 8px;
    color: #666;
}

.page-breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Internal Links Styling */
.internal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.internal-link {
    display: block;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2d2d2d 0%, #383838 100%);
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.internal-link:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    color: white !important;
    text-decoration: none;
}

/* Enhanced semantic elements */
header, footer, section, article, aside, nav {
    display: block;
}

time {
    font-style: normal;
}

/* Schema.org microdata visibility */
meta[itemprop] {
    display: none;
}

/* Mobile improvements for new elements */
@media (max-width: 768px) {
    .page-breadcrumb {
        font-size: 0.75rem;
    }

    .page-breadcrumb ol {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-breadcrumb li:not(:last-child)::after {
        content: ' ↓ ';
        margin-left: 0;
        margin-top: 2px;
    }

    .internal-links {
        gap: 8px;
    }

    .internal-link {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Focus states for accessibility */
.category-item:focus,
.cta-button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}


