/* Kenthongan (KTG) Frontend Stylesheet - Clean Editorial & Mobile Readability */

/* Kontainer Artikel Review Baku */
.single-affiliate .entry-content,
.ktg-article-body {
    font-size: 16.5px;
    line-height: 1.8;
    color: #2d3748;
    word-break: break-word;
}

.ktg-article-body p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

.ktg-article-body h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a202c;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.ktg-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.ktg-article-body ul,
.ktg-article-body ol {
    margin-top: 0;
    margin-bottom: 1.4em;
    padding-left: 24px;
}

.ktg-article-body li {
    margin-bottom: 0.45em;
    line-height: 1.75;
}

.ktg-article-body blockquote {
    margin: 1.8em 0;
    padding: 14px 20px;
    background: #f8fafc;
    border-left: 3px solid #64748b;
    border-radius: 0 6px 6px 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    font-style: normal;
}

.ktg-article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Kolom Perbandingan / Catatan Penulis Baku */
.ktg-notes-section {
    margin: 2em 0;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ktg-notes-section h4 {
    margin: 0 0 10px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tombol CTA Affiliate Standalone (Konsep Keranjang Rekomendasi) */
.ktg-cta-container {
    margin: 2.2em 0;
    text-align: center;
    box-sizing: border-box;
    clear: both;
}

.ktg-cta-container a.ktg-cta-button,
.ktg-cta-container a.ktg-cta-button:link,
.ktg-cta-container a.ktg-cta-button:visited,
.entry-content .ktg-cta-container a.ktg-cta-button,
.entry-content a.ktg-cta-button,
article .ktg-cta-container a.ktg-cta-button,
body .ktg-cta-button {
    display: inline-block;
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    padding: 16px 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.ktg-cta-container a.ktg-cta-button:hover,
.ktg-cta-container a.ktg-cta-button:focus,
.ktg-cta-container a.ktg-cta-button:active,
.entry-content .ktg-cta-container a.ktg-cta-button:hover,
.entry-content a.ktg-cta-button:hover,
article .ktg-cta-container a.ktg-cta-button:hover,
body .ktg-cta-button:hover {
    background: #1e293b !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22) !important;
}

/* Responsif Mobile (< 640px) */
@media screen and (max-width: 640px) {
    .single-affiliate .entry-content,
    .ktg-article-body {
        font-size: 16px;
        line-height: 1.75;
    }

    .ktg-article-body h2 {
        font-size: 19px;
        margin-top: 1.8em;
    }

    .ktg-cta-container {
        margin: 1.8em 0;
    }

    .ktg-cta-container a.ktg-cta-button,
    .entry-content .ktg-cta-container a.ktg-cta-button,
    body .ktg-cta-button {
        display: block !important;
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
}

/* ========================================================
   BARIS TOMBOL BERBAGI MANDIRI (KASIH TAU BESTIEMU)
   ======================================================== */
.ktg-share-container {
    margin: 2.4em 0 1.6em 0;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    clear: both;
}

.ktg-share-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ktg-share-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ktg-share-title-icon {
    color: #4f46e5;
    stroke: #4f46e5;
}

.ktg-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ktg-share-btn,
.entry-content .ktg-share-buttons a.ktg-share-btn,
.entry-content .ktg-share-buttons button.ktg-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9.5px 18px !important;
    border-radius: 50px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.ktg-share-btn span,
.entry-content .ktg-share-buttons a.ktg-share-btn span,
.entry-content .ktg-share-buttons button.ktg-share-btn span {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-weight: 600 !important;
}

.ktg-share-btn svg,
.entry-content .ktg-share-buttons a.ktg-share-btn svg,
.entry-content .ktg-share-buttons button.ktg-share-btn svg {
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.ktg-share-more svg,
.entry-content .ktg-share-buttons button.ktg-share-more svg {
    stroke: #ffffff !important;
    fill: none !important;
}

.ktg-share-btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    text-decoration: none !important;
}

.ktg-share-btn:active {
    transform: translateY(0) !important;
}

/* Skema Gradasi Merek Media Sosial + Soft Shadow */
.ktg-share-wa,
.entry-content a.ktg-share-wa {
    background: #25D366 !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28) !important;
    color: #ffffff !important;
}
.ktg-share-wa:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38) !important;
}

.ktg-share-fb,
.entry-content a.ktg-share-fb {
    background: #1877F2 !important;
    background: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%) !important;
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.28) !important;
    color: #ffffff !important;
}
.ktg-share-fb:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.38) !important;
}

.ktg-share-pin,
.entry-content a.ktg-share-pin {
    background: #E60023 !important;
    background: linear-gradient(135deg, #E60023 0%, #bd081c 100%) !important;
    box-shadow: 0 3px 10px rgba(230, 0, 35, 0.28) !important;
    color: #ffffff !important;
}
.ktg-share-pin:hover {
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.38) !important;
}

.ktg-share-x,
.entry-content a.ktg-share-x {
    background: #0f172a !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.24) !important;
    color: #ffffff !important;
}
.ktg-share-x:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35) !important;
}

.ktg-share-more,
.entry-content button.ktg-share-more {
    background: #475569 !important;
    background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
    box-shadow: 0 3px 10px rgba(71, 85, 105, 0.24) !important;
    color: #ffffff !important;
}
.ktg-share-more:hover {
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.35) !important;
}

/* Notifikasi Mengambang Salin Tautan (Toast) */
.ktg-share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.35);
    z-index: 999999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}

.ktg-share-toast.ktg-toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Penyesuaian Responsif Mobile (< 640px) */
@media screen and (max-width: 640px) {
    .ktg-share-container {
        padding: 16px 18px;
        margin: 2em 0 1.2em 0;
        border-radius: 14px;
    }
    .ktg-share-header {
        margin-bottom: 12px;
    }
    .ktg-share-title {
        font-size: 13.5px;
    }
    .ktg-share-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .ktg-share-btn,
    .entry-content .ktg-share-buttons a.ktg-share-btn,
    .entry-content .ktg-share-buttons button.ktg-share-btn {
        width: 100% !important;
        padding: 10px 10px !important;
        font-size: 13px !important;
        border-radius: 50px !important;
    }
    .ktg-share-more,
    .entry-content button.ktg-share-more {
        grid-column: span 2;
    }
}
