/* Artikel CSS — Benukokka SEO System */
/* Mobile-first, reuses CSS vars from LP */

:root {
    --primary: #FB8C00;
    --secondary: #E07812;
    --dark: #121212;
    --dark-secondary: #1f1f1f;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 12px;
    --font-heading: 'Oswald', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
    font-display: optional;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/oswald-v57-latin-700.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-dark);
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

/* Nav */
.artikel-nav {
    background: var(--dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* Main */
.artikel-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb { padding: 16px 0 8px; font-size: 13px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li::after { content: '/'; margin-left: 4px; color: #999; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb li[aria-current] { color: #666; }

/* Layout */
.artikel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0 48px;
}
@media (min-width: 768px) {
    .artikel-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Article */
.artikel-content { min-width: 0; }
.artikel-header { margin-bottom: 24px; }
.artikel-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.artikel-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 8px;
}
.artikel-meta {
    font-size: 14px;
    color: #777;
}
.meta-sep { margin: 0 6px; }
.artikel-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 24px;
    object-fit: cover;
    max-height: 450px;
}

/* Article body typography */
.artikel-body h2 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    color: var(--dark);
    margin: 32px 0 12px;
    padding-top: 16px;
    border-top: 2px solid #eee;
}
.artikel-body h3 {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--dark);
    margin: 24px 0 8px;
}
.artikel-body p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}
.artikel-body ul, .artikel-body ol {
    margin: 0 0 16px 24px;
    font-size: 16px;
    line-height: 1.8;
}
.artikel-body li { margin-bottom: 4px; }
.artikel-body strong { color: var(--dark); }
.artikel-body a { color: var(--primary); text-decoration: underline; }
.artikel-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 16px 0;
}
.artikel-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: #fff8f0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #555;
}

/* Tables */
.artikel-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
    font-size: 15px;
}
.artikel-body th {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
}
.artikel-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
    color: var(--text-dark);
}
.artikel-body tr:last-child td { border-bottom: none; }
.artikel-body tr:nth-child(even) { background: #fafafa; }
.artikel-body tr:hover td { background: #fff8f0; }
.artikel-body td:first-child { font-weight: 600; }
.artikel-body td:nth-child(2) { color: var(--primary); font-weight: 600; }
@media (max-width: 640px) {
    .artikel-body table {
        display: table;
        width: 100%;
        font-size: 14px;
    }
    .artikel-body th {
        padding: 10px 12px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    .artikel-body td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
    }
    .artikel-body td:first-child {
        white-space: nowrap;
        min-width: 70px;
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}
.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--dark);
}
.faq-item {
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: '\2212';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 18px 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Sidebar */
.artikel-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}
.related-list { list-style: none; }
.related-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.related-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-list a { color: var(--dark); text-decoration: none; font-size: 14px; font-weight: 500; display: block; }
.related-list a:hover { color: var(--primary); }
.read-time { font-size: 12px; color: #999; }

/* Product CTA card (sidebar) */
.product-cta-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}
.product-price {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin: 4px 0 8px;
}
.sidebar-cta-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: background 0.2s;
}
.sidebar-cta-btn:hover { background: #1da851; }

/* Inline product CTA (within article body) */
.artikel-body .inline-product-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius);
    padding: 20px;
    margin: 32px 0;
    box-shadow: var(--shadow);
}
.artikel-body .inline-product-cta img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.artikel-body .inline-product-cta p {
    margin-bottom: 4px;
}
.artikel-body .inline-product-cta .inline-cta-info h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--dark);
    margin: 0 0 2px;
    padding: 0;
    border: none;
}
.artikel-body .inline-cta-price {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary);
    margin: 0 0 4px;
    font-weight: 700;
}
.artikel-body .inline-cta-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.4;
}
.artikel-body .inline-product-cta .inline-cta-btn {
    display: inline-block;
    background: #25D366;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(37,211,102,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.artikel-body .inline-product-cta .inline-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    color: var(--white) !important;
}
@media (max-width: 640px) {
    .artikel-body .inline-product-cta { flex-direction: column; text-align: center; align-items: center; }
    .artikel-body .inline-product-cta img { width: 120px; height: 120px; }
    .artikel-body .inline-product-cta .inline-cta-info { display: flex; flex-direction: column; align-items: center; }
    .artikel-body .inline-product-cta .inline-cta-btn { display: block; width: 100%; text-align: center; }
}

/* Sticky WA */
.sticky-wa {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}
.sticky-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    max-width: 320px;
    margin: 0 auto;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.2s;
}
.sticky-wa-btn:hover { transform: scale(1.03); }

/* Footer */
.artikel-footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand strong { font-family: var(--font-heading); font-size: 18px; color: var(--primary); }
.footer-brand p { font-size: 13px; opacity: 0.7; margin-top: 4px; }
.footer-links { margin: 16px 0; display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: var(--text-light); text-decoration: none; font-size: 14px; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 12px; opacity: 0.5; margin-top: 16px; }

/* Article listing page */
.listing-header { text-align: center; padding: 32px 0 24px; }
.listing-header h1 { font-family: var(--font-heading); font-size: clamp(28px, 5vw, 40px); color: var(--dark); }
.listing-header p { color: #666; font-size: 16px; margin-top: 8px; }
.category-group { margin-bottom: 40px; }
.category-group h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.article-card:hover { transform: translateY(-2px); }
.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-card-body { padding: 16px; }
.article-card-body h3 { font-family: var(--font-heading); font-size: 16px; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.article-card-body p { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 8px; }
.article-card-meta { font-size: 12px; color: #999; }

/* Mobile enhancements */
@media (max-width: 768px) {
    .artikel-sidebar {
        border-top: 2px solid #eee;
        padding-top: 24px;
    }
    .artikel-body h2 { margin: 24px 0 10px; padding-top: 12px; }
    .artikel-body h3 { margin: 18px 0 6px; }
    .sidebar-cta-btn { display: block; width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .artikel-main { padding: 0 14px; }
    .artikel-body p { font-size: 15px; }
    .artikel-body ul, .artikel-body ol { font-size: 15px; margin-left: 18px; }
    .sidebar-section { padding: 16px; }
}

/* Callout boxes */
.callout {
    border-left: 4px solid;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.6;
}
.callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.callout p { margin: 0; }
.callout-tip {
    border-color: #22c55e;
    background: #f0fdf4;
}
.callout-tip strong { color: #16a34a; }
.callout-warning {
    border-color: var(--primary);
    background: #fffbeb;
}
.callout-warning strong { color: #d97706; }
.callout-key {
    border-color: var(--dark);
    background: #f5f5f5;
}
.callout-key strong { color: var(--dark); }

/* Figure + caption */
.artikel-body figure {
    margin: 24px 0;
    text-align: center;
}
.artikel-body figure img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    margin: 0;
}
.artikel-body figcaption {
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}
