/**
 * Ecopaperbox Article SEO Styles
 * Version: 2026-05-07
 * Description: Multi-color article layout for Google SEO ranking
 * Location: /Public/Home/css/article-style.css
 */

/* ===== BASE ARTICLE WRAPPER ===== */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

/* ===== BREADCRUMB ===== */
.article-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}
.article-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.article-breadcrumb li {
    display: inline;
}
.article-breadcrumb li:not(:last-child)::after {
    content: " › ";
    color: #999;
    margin: 0 5px;
}
.article-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.article-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

/* ===== E-E-A-T META BAR ===== */
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}
.author-info {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}
.article-meta-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}
.article-meta-details i {
    color: #999;
}

/* ===== SOCIAL SHARE ===== */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.share-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-right: 5px;
}
.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #bd081c; }
.share-btn.email { background: #666; }

/* ===== FEATURED IMAGE ===== */
.article-featured-image {
    margin: 0 0 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.article-featured-image figcaption {
    font-size: 13px;
    color: #666;
    padding: 10px 15px;
    background: #f8f9fa;
    text-align: center;
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #495057;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}
.table-of-contents h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1a1a2e;
}
.table-of-contents ul {
    margin: 0;
    padding-left: 18px;
}
.table-of-contents li {
    margin-bottom: 6px;
}
.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}
.table-of-contents a:hover {
    text-decoration: underline;
}

/* ===== ARTICLE CONTENT - MULTI-COLOR HEADINGS ===== */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 35px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e74c3c;
    letter-spacing: -0.3px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 28px 0 12px 0;
    padding-left: 14px;
    border-left: 4px solid #27ae60;
    letter-spacing: -0.2px;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 22px 0 10px 0;
    padding-left: 12px;
    border-left: 3px solid #f39c12;
}

/* Alternating border colors for variety */
.article-content h2:nth-of-type(2n) { border-bottom-color: #3498db; }
.article-content h2:nth-of-type(3n) { border-bottom-color: #9b59b6; }
.article-content h2:nth-of-type(4n) { border-bottom-color: #e67e22; }
.article-content h3:nth-of-type(2n) { border-left-color: #e74c3c; }
.article-content h3:nth-of-type(3n) { border-left-color: #3498db; }
.article-content h3:nth-of-type(4n) { border-left-color: #9b59b6; }

/* Paragraphs */
.article-content p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Links */
.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: #1d4ed8;
}

/* Lists */
.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content ul li {
    list-style-type: disc;
}
.article-content ul li::marker {
    color: #27ae60;
}

/* Strong / Bold */
.article-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* ===== STEP CARDS ===== */
.step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: #3498db;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 0;
}
.step-card:nth-of-type(2n)::before { background: #e74c3c; }
.step-card:nth-of-type(3n)::before { background: #27ae60; }
.step-card:nth-of-type(4n)::before { background: #9b59b6; }
.step-card:nth-of-type(5n)::before { background: #f39c12; }

.step-card h4 {
    margin: 8px 0 10px 40px;
    font-size: 16px;
    color: #1a1a2e;
}
.step-card p {
    margin-left: 40px;
    font-size: 14px;
    color: #4a5568;
}

/* ===== INFO BOXES (Multiple Colors) ===== */
.info-box {
    border-radius: 8px;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.6;
}
.info-box-green {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #27ae60;
    color: #155724;
}
.info-box-orange {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #f39c12;
    color: #856404;
}
.info-box-purple {
    background: linear-gradient(135deg, #e2d4f0 0%, #d6c3e8 100%);
    border-left: 4px solid #9b59b6;
    color: #4a235a;
}
.info-box-red {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #e74c3c;
    color: #721c24;
}
.info-box-blue {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #3498db;
    color: #0c5460;
}
.info-box-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box-title i {
    font-size: 18px;
}

/* ===== STAT BOXES ===== */
.stat-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}
.stat-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
    transition: transform 0.2s;
}
.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stat-box:nth-child(2) { border-top-color: #e74c3c; }
.stat-box:nth-child(3) { border-top-color: #27ae60; }
.stat-box:nth-child(4) { border-top-color: #9b59b6; }
.stat-box .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}
.stat-box .stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ===== PRODUCT INLINE CARDS ===== */
.product-inline-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin: 16px 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.product-inline-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #3498db;
}
.product-image-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}
.product-cta {
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
a.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.product-card-link:hover {
    text-decoration: none;
}

/* ===== CHECKLIST ===== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.checklist li {
    padding: 10px 15px 10px 40px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ===== TABLES ===== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.article-content thead tr {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.article-content th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.article-content tbody tr:nth-child(even) {
    background: #f8f9fa;
}
.article-content tbody tr:hover {
    background: #e8f4fd;
}

/* ===== BLOCKQUOTE ===== */
.article-content blockquote {
    margin: 20px 0;
    padding: 18px 25px;
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 13px;
    color: #888;
}

/* ===== FAQ SECTION ===== */
.article-faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.article-faq-section h2 {
    margin-top: 0;
    font-size: 22px;
    color: #1a1a2e;
    border-bottom: none;
}
.faq-container .faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.faq-container .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-question .q-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-answer {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    padding-left: 38px;
}
.faq-answer .a-mark {
    color: #27ae60;
    font-weight: 700;
    margin-right: 5px;
}

/* ===== TAGS ===== */
.article-tags-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
}
.article-tags-section h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.article-tag:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* ===== RELATED PRODUCTS GRID ===== */
.related-products-section {
    margin: 40px 0;
}
.related-products-section h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* ===== RELATED ARTICLES ===== */
.related-articles-section {
    margin: 40px 0;
}
.related-articles-section h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.related-article-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.related-article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.related-article-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}
.related-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-article-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.read-more {
    font-size: 13px;
    color: #3498db;
    font-weight: 500;
}

/* ===== CTA BOX ===== */
.article-cta-box {
    margin: 40px 0;
    padding: 35px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}
.article-cta-box h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
    border-left: none;
    padding-left: 0;
    color: #fff;
}
.article-cta-box p {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 20px;
}
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin: 5px;
    transition: background 0.2s, transform 0.2s;
}
.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
.cta-button.secondary {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}
.cta-button.secondary:hover {
    background: #3498db;
    color: #fff;
}

/* ===== E-E-A-T AUTHOR FOOTER ===== */
.article-footer-eeat {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}
.eeat-box {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}
.eeat-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.eeat-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1a1a2e;
    border-left: none;
    padding-left: 0;
}
.eeat-info p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 12px 0;
}
.eeat-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.eeat-credentials span {
    font-size: 13px;
    color: #27ae60;
    font-weight: 500;
}
.eeat-credentials i {
    margin-right: 4px;
}

/* ===== ARTICLE NAVIGATION ===== */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    align-items: center;
}
.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-prev:hover, .nav-next:hover {
    background: #e2e8f0;
}
.nav-prev .nav-label, .nav-next .nav-label {
    font-size: 12px;
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.nav-prev .nav-title, .nav-next .nav-title {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    line-height: 1.4;
}
.nav-next {
    text-align: right;
    align-items: flex-end;
}
.nav-all {
    display: inline-block;
    padding: 10px 20px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-all:hover {
    background: #3498db;
}
.nav-placeholder {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-wrapper {
        padding: 15px;
    }
    .article-title {
        font-size: 24px;
    }
    .article-content h2 {
        font-size: 20px;
    }
    .article-content h3 {
        font-size: 17px;
    }
    .stat-box-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-products-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    .eeat-box {
        flex-direction: column;
        text-align: center;
    }
    .article-navigation {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nav-next {
        text-align: center;
        align-items: center;
    }
    .product-inline-card {
        flex-direction: column;
    }
    .product-image-wrap {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .stat-box-container {
        grid-template-columns: 1fr;
    }
    .article-cta-box {
        padding: 25px 20px;
    }
    .cta-button {
        display: block;
        margin: 8px 0;
    }
    .article-meta-details {
        flex-direction: column;
        gap: 5px;
    }
}
