/* ============================================
   Nored Farms - Visual Enhancements
   Hero banners, related content links, decorative elements
   Deep Iron dark palette
   ============================================ */

/* Article Hero Banner */
.article-hero-banner {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}
.article-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-size: 60px 60px;
    background-image:
        linear-gradient(45deg, currentColor 25%, transparent 25%),
        linear-gradient(-45deg, currentColor 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, currentColor 75%),
        linear-gradient(-45deg, transparent 75%, currentColor 75%);
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
}
.article-hero-banner .hero-illustration {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 160px;
    opacity: 0.25;
}
.article-hero-banner .hero-illustration svg {
    width: 100%;
    height: 100%;
}

/* Category-specific backgrounds — Deep Iron dark palette */
.article-hero-banner[data-category="cultivation"] {
    background: var(--color-bg-alt, #181e20);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="ethnobotanical"] {
    background: var(--color-bg-elevated, #263032);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="science"] {
    background: var(--color-bg-card, #1e2628);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="guides"] {
    background: var(--color-bg-elevated, #263032);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="hemp"] {
    background: var(--color-bg-alt, #181e20);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="grass"] {
    background: var(--color-bg-elevated, #263032);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="fruit"] {
    background: var(--color-bg-card, #1e2628);
    color: var(--color-text, #bccac4);
}
.article-hero-banner[data-category="vegetable"] {
    background: var(--color-bg-elevated, #263032);
    color: var(--color-text, #bccac4);
}

/* Related Content / Continue Learning Section */
.related-content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--color-surface, #181e20);
    border: 1.5px solid var(--color-border, rgba(80, 232, 192, 0.05));
    border-radius: 16px;
}
.related-content-section h3 {
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.related-content-section h3 svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary, #50e8c0);
    flex-shrink: 0;
}
.related-content-section .related-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted, #506460);
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-bg, #1e2628);
    border: 1px solid var(--color-border, rgba(80, 232, 192, 0.05));
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary, #50e8c0);
}
.related-card-body {
    flex: 1;
}
.related-card-body h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.375rem;
    color: var(--color-text, #bccac4);
    line-height: 1.3;
}
.related-card-body p {
    font-size: 0.8rem;
    color: var(--color-text-muted, #506460);
    margin: 0;
    line-height: 1.5;
}
.related-card-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-primary, #50e8c0);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.related-card-arrow svg {
    width: 20px;
    height: 20px;
}
.related-card:hover .related-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Elevated Shadow Panels - wrap article sections for visual breaks */
.elevated-panel {
    background: var(--color-bg, #1e2628);
    border: 1px solid var(--color-border, rgba(80, 232, 192, 0.05));
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem -0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}
.elevated-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary, linear-gradient(135deg, #28584e, #1e4640));
    border-radius: 16px 16px 0 0;
}
.elevated-panel > h2:first-child {
    margin-top: 0;
}

/* Auto-injected Quick Reference Tables */
.auto-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border, rgba(80, 232, 192, 0.05));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}
.auto-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text, #bccac4);
    padding: 0 0 0.75rem;
}
.auto-table thead th {
    background: var(--color-primary, #50e8c0);
    color: var(--color-text-inverse, #12181a);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.875rem 1rem;
    text-align: left;
}
.auto-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--color-text, #8e9c98);
    border-top: 1px solid var(--color-border, rgba(80, 232, 192, 0.05));
    line-height: 1.5;
}
.auto-table tbody tr:nth-child(even) {
    background: var(--color-surface, #181e20);
}
.auto-table tbody tr:hover {
    background: var(--color-primary-subtle, rgba(80, 232, 192, 0.05));
}
.auto-table td:first-child {
    font-weight: 500;
    color: var(--color-text, #bccac4);
}
.auto-table-wrapper {
    margin: 2.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Key Fact Callout Box */
.key-fact-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-primary-subtle, rgba(80, 232, 192, 0.07));
    border: 1px solid var(--color-primary, #50e8c0);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.key-fact-box .fact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--color-primary, #50e8c0);
}
.key-fact-box .fact-icon svg {
    width: 100%;
    height: 100%;
}
.key-fact-box .fact-content {
    flex: 1;
}
.key-fact-box .fact-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary, #50e8c0);
    margin-bottom: 0.25rem;
}
.key-fact-box .fact-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text, #8e9c98);
    margin: 0;
}

/* Section Decorative Dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    color: var(--color-text-muted, #506460);
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border, rgba(80, 232, 192, 0.05)), transparent);
}
.section-divider svg {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Product Page Image Placeholders */
.product-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}
.product-image-placeholder .placeholder-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-placeholder .placeholder-bg svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}
.product-image-placeholder[data-product="gummies"] .placeholder-bg {
    background: var(--color--lemongrass, #263032);
}
.product-image-placeholder[data-product="tinctures"] .placeholder-bg {
    background: var(--color--foamwhite, #181e20);
}
.product-image-placeholder[data-product="extracts"] .placeholder-bg {
    background: var(--color--seedgreen-card, #1e2628);
}
.product-image-placeholder[data-product="live-plants"] .placeholder-bg {
    background: var(--color--mossroot, #263032);
}

/* Photo placeholder with camera icon for future real images */
.photo-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: var(--color-surface, #181e20);
    border: 2px dashed var(--color-border, rgba(80, 232, 192, 0.12));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted, #506460);
    margin: 1.5rem 0;
}
.photo-placeholder svg {
    width: 32px;
    height: 32px;
}
.photo-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .article-hero-banner {
        height: 200px;
        padding: 1.25rem;
        border-radius: 12px;
    }
    .article-hero-banner .hero-illustration {
        width: 100px;
        height: 100px;
        right: 1rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-content-section {
        padding: 1.25rem;
    }
    .elevated-panel {
        margin: 2rem -0.25rem;
        padding: 1.25rem;
        border-radius: 12px;
    }
    .auto-table {
        font-size: 0.8rem;
    }
    .auto-table thead th,
    .auto-table tbody td {
        padding: 0.625rem 0.75rem;
    }
    .key-fact-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }
}
