/**
 * Woodegy Knowledge Hub & Blog Stylesheet
 * Optimized for Luxury Aesthetics, Fast Reading, Rich SEO Snippets & AI Engine Citations
 *
 * @package Woodegy
 * @version 1.0.0
 */

/* ==========================================================================
   1. BLOG ARCHIVE & HUB LAYOUT
   ========================================================================== */

.blog-hub-hero {
    background: linear-gradient(135deg, #134A13 0%, #1E5C1E 60%, #2E7D2E 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hub-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.blog-hub-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.blog-hub-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Category Filter Bar */
.blog-filter-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.blog-filter-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Main Hub Content Container */
.blog-main-container {
    padding: 50px 0 80px;
    background: #FAFAFA;
}

/* Featured Top Post */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    margin-bottom: 50px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-featured-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.blog-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-featured-card:hover .blog-featured-img-wrap img {
    transform: scale(1.04);
}

.blog-featured-content {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Standard Article Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #d7e8d7;
}

.article-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.06);
}

.article-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.article-card-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.45;
    transition: color var(--transition-fast);
}

.article-card:hover .article-card-title {
    color: var(--color-primary);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.article-card-footer svg {
    transition: transform var(--transition-fast);
}

.article-card:hover .article-card-footer svg {
    transform: translateX(-4px);
}


/* ==========================================================================
   2. SINGLE ARTICLE (PILLAR CONTENT LAYOUT)
   ========================================================================== */

.single-article-header {
    background: linear-gradient(180deg, #F1F8F1 0%, #FFFFFF 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-light);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.article-breadcrumbs a {
    color: var(--color-text-muted);
}
.article-breadcrumbs a:hover {
    color: var(--color-primary);
}

.single-article-title {
    font-size: 34px;
    font-weight: 800;
    color: #113811;
    line-height: 1.35;
    margin: 0 0 18px;
    letter-spacing: -0.3px;
}

.single-article-subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
}

.single-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2ebe2;
    box-shadow: var(--shadow-sm);
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.author-info strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
}
.author-info span {
    font-size: 12px;
    color: var(--color-text-light);
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Article Featured Media */
.single-article-hero-media {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.single-article-hero-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Article Main Grid Layout: Content + Sticky Sidebar */
.article-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 45px;
    padding: 40px 0 80px;
    align-items: start;
}

/* Quick Takeaway / GEO AI Summary Box */
.ai-summary-box {
    background: linear-gradient(135deg, #F1F8F1 0%, #E8F5E9 100%);
    border: 2px solid #81C784;
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 35px;
    position: relative;
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.ai-summary-header svg {
    color: #2E7D2E;
}

.ai-summary-box ul {
    margin: 0;
    padding-right: 20px;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.8;
}

.ai-summary-box li {
    margin-bottom: 6px;
}

/* Table of Contents (TOC) Box */
.toc-box {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 35px;
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #4a5568;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: color var(--transition-fast);
    line-height: 1.5;
}

.toc-list a:hover {
    color: var(--color-primary);
    font-weight: 600;
}

.toc-list .toc-sub {
    padding-right: 18px;
    margin-top: 6px;
}

/* Typography & Content Inside Articles */
.article-rich-body {
    font-size: 17px;
    line-height: 1.95;
    color: #2d3748;
}

.article-rich-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: #113811;
    margin: 45px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8F5E9;
    position: relative;
}

.article-rich-body h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.article-rich-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 30px 0 14px;
}

.article-rich-body p {
    margin: 0 0 20px;
}

.article-rich-body ul, 
.article-rich-body ol {
    padding-right: 24px;
    margin-bottom: 24px;
}

.article-rich-body li {
    margin-bottom: 10px;
}

/* SEO & AI-Friendly Comparison Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.woodegy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: right;
    background: #ffffff;
}

.woodegy-table th {
    background: #F1F8F1;
    color: #134A13;
    font-weight: 800;
    padding: 14px 16px;
    border-bottom: 2px solid #C8E6C9;
    white-space: nowrap;
}

.woodegy-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    vertical-align: middle;
}

.woodegy-table tr:last-child td {
    border-bottom: none;
}

.woodegy-table tr:nth-child(even) td {
    background: #fafafa;
}

.woodegy-table .badge-best {
    display: inline-block;
    padding: 3px 8px;
    background: #E8F5E9;
    color: #2E7D2E;
    font-weight: 700;
    border-radius: 4px;
    font-size: 12px;
}

/* Highlighting Callout Boxes */
.callout-box {
    border-right: 4px solid var(--color-primary);
    background: #F9FBF9;
    padding: 20px 22px;
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
}

.callout-box.callout-pro-tip {
    border-right-color: #E89E28;
    background: #FFFDF8;
}

.callout-box strong {
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 6px;
}

/* In-Article Cross-Selling (Shop The Look) */
.article-product-showcase {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    padding: 28px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.showcase-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: transform var(--transition-fast);
}

.showcase-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
}

.showcase-item img {
    border-radius: 8px;
    height: 140px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.showcase-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1A1A1A;
}

.showcase-item .btn {
    padding: 6px 14px;
    font-size: 12px;
    width: 100%;
}

/* In-Article FAQ Accordion */
.article-faq-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    padding: 30px;
    margin: 45px 0 30px;
}

.article-faq-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 16px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #4a5568;
}

/* Sticky Sidebar Components */
.article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-cta-card {
    background: linear-gradient(135deg, #134A13 0%, #1E5C1E 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(19, 74, 19, 0.25);
}

.sidebar-cta-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}

.sidebar-cta-card p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 18px;
}

.sidebar-cta-card .btn {
    width: 100%;
    margin-bottom: 8px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    padding: 22px;
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F8F1;
}

.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
}

.sidebar-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px;
}

.sidebar-post-info h4 a {
    color: #1A1A1A;
}

.sidebar-post-info h4 a:hover {
    color: var(--color-primary);
}

.sidebar-post-info span {
    font-size: 11px;
    color: #888;
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout-grid {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        margin-top: 40px;
    }
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-img-wrap {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .blog-hub-hero {
        padding: 40px 0 35px;
    }
    .blog-hub-title {
        font-size: 26px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .single-article-title {
        font-size: 24px;
    }
    .single-article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-rich-body {
        font-size: 16px;
    }
    .article-product-showcase {
        padding: 18px;
    }
}
