/* ===========================================
   Blog CSS - HEA Diamonds
   =========================================== */

/* CSS Variables - matches main styles.css theme */
:root {
    --primary-dark: #0D0D0D;
    --gold: #C5A572;
    --gold-light: #d4b896;
    --bg-cream: #FAF9F7;
    --text-dark: #111111;
    --text-light: #666;
    --white: #FFFFFF;
    --border-light: #e5e5e5;
    /* Alias to match main theme */
    --accent-gold: #C5A572;
    --header-bg: #0D0D0D;
}

/* ===========================================
   Header Navigation (matches main site theme)
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 4px;
}

.header .logo-subtext {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    margin-top: -2px;
}

.header .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.header .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.header .nav-links a:hover,
.header .nav-links a.active {
    color: var(--gold);
}

.header .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .cart-icon {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header .cart-icon:hover {
    color: var(--gold);
}

.header .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Body padding for fixed header */
body {
    padding-top: 70px;
}

@media (max-width: 992px) {
    .header .nav-links {
        display: none;
    }

    .header .mobile-menu-btn {
        display: block;
    }
}

/* ===========================================
   Breadcrumb Navigation
   =========================================== */
.breadcrumb {
    background: var(--bg-cream);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-dark);
}

/* ===========================================
   Article Header
   =========================================== */
.article-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d2d4a 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.article-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-category {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.article-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===========================================
   Featured Image
   =========================================== */
.article-featured-image {
    max-width: 1000px;
    margin: -2rem auto 3rem;
    padding: 0 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   Table of Contents
   =========================================== */
.table-of-contents {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.table-of-contents .container {
    max-width: 100%;
    padding: 0;
}

.table-of-contents h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.table-of-contents a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--gold);
}

/* ===========================================
   Article Content
   =========================================== */
.article-content {
    padding: 0 2rem 4rem;
}

.article-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.article-content a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--gold);
}

/* ===========================================
   Styled Lists
   =========================================== */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.priority-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    counter-reset: priority;
}

.priority-list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-cream);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.priority-list h4 {
    margin-top: 0;
    color: var(--gold);
}

/* ===========================================
   Insight, Tip & Warning Boxes
   =========================================== */
.key-insight,
.pro-tip,
.warning-box,
.decision-box {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.key-insight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-left: 4px solid #3b82f6;
}

.key-insight h3 {
    color: #1e40af;
    margin-top: 0;
    font-size: 1.1rem;
}

.key-insight h3 i {
    margin-right: 0.5rem;
}

.pro-tip {
    background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
    border-left: 4px solid var(--gold);
}

.pro-tip h4 {
    color: var(--gold);
    margin-top: 0;
    font-size: 1.1rem;
}

.pro-tip h4 i {
    margin-right: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
}

.warning-box h4 {
    color: #dc2626;
    margin-top: 0;
    font-size: 1.1rem;
}

.warning-box h4 i {
    margin-right: 0.5rem;
}

.decision-box {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #f5f0e8 100%);
    border: 2px solid var(--gold);
}

.decision-box h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

.decision-box h3 i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* ===========================================
   Grade & Comparison Tables
   =========================================== */
.grade-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.grade-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.grade-table th,
.grade-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.grade-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.grade-table tr:nth-child(even) {
    background: var(--bg-cream);
}

.grade-table tr:hover {
    background: #f0ebe3;
}

/* Price Comparison Cards */
.price-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.price-card.natural {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border: 2px solid #3b82f6;
}

.price-card.lab {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
}

.price-card h4 {
    margin-top: 0;
    font-size: 1.2rem;
}

.price-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
}

.price-card.natural h4 { color: #1e40af; }
.price-card.lab h4 { color: #15803d; }

/* ===========================================
   Color & Clarity Scales
   =========================================== */
.color-scale,
.clarity-scale {
    margin: 2rem 0;
}

.color-group,
.clarity-grade {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
}

.color-group h4,
.clarity-grade h4 {
    margin-top: 0;
    color: var(--gold);
    font-size: 1.1rem;
}

.color-group p,
.clarity-grade p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ===========================================
   Comparison Methods
   =========================================== */
.comparison-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.method-card {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--gold);
}

.method-card h4 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* ===========================================
   Budget Guide
   =========================================== */
.budget-guide {
    margin: 2rem 0;
}

.budget-tier {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
}

.budget-tier h4 {
    margin-top: 0;
    color: var(--primary-dark);
}

.budget-tier em {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================================
   FAQ Section
   =========================================== */
.faq-item {
    background: var(--bg-cream);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h3,
.faq-item h4,
.faq-item .faq-question {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.faq-item p,
.faq-item .faq-answer {
    margin-bottom: 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

/* ===========================================
   CTA Box
   =========================================== */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d2d4a 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: #0D0D0D !important;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.cta-box .btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b8935f 100%);
    color: #0D0D0D !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* ===========================================
   Author Bio
   =========================================== */
.author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: 12px;
    margin: 3rem 0;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.author-link:hover {
    color: var(--gold-light);
}

/* ===========================================
   Related Posts
   =========================================== */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.related-posts h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    text-decoration: none;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
}

.related-post-card .read-more {
    display: block;
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================================
   Conclusion Section
   =========================================== */
.conclusion {
    padding-top: 2rem;
}

/* ===========================================
   Trend Chart (for 2026 trends article)
   =========================================== */
.trend-chart {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.trend-chart h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    margin-top: 0;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chart-bar .shape {
    width: 80px;
    font-weight: 500;
    font-size: 0.9rem;
}

.chart-bar .bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.5s ease;
}

.chart-bar .bar span {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Trend indicators */
.trend-up { color: #2e7d32; font-weight: 600; }
.trend-down { color: #c62828; font-weight: 600; }
.trend-stable { color: #1565c0; font-weight: 600; }

/* ===========================================
   Content Images
   =========================================== */
.content-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image figcaption {
    padding: 1rem;
    background: var(--bg-cream);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1.05rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .article-featured-image {
        margin: -1rem auto 2rem;
        padding: 0 1rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .article-content {
        padding: 0 1rem 3rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .key-insight,
    .pro-tip,
    .warning-box,
    .decision-box {
        padding: 1.25rem 1.5rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .price-comparison,
    .comparison-methods {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
    }

    .article-header {
        padding: 2.5rem 0;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .grade-table th,
    .grade-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===========================================
   Footer Styles (matches main site theme)
   =========================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
