/* ═══════════════════════════════════════════
   ARTIKEL DETAIL PAGE - artikel-show.css
   ═══════════════════════════════════════════ */

/* ── Page Title Section (same as investasi) ── */
.page-title-section {
    background: linear-gradient(135deg, #075985 0%, #0284c7 60%, #0f766e 100%);
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.page-title-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0 1px,
        transparent 1px 20px
    );
    pointer-events: none;
}
.page-title-section .container {
    position: relative;
    z-index: 1;
}
.page-title-section h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    max-width: 800px;
    line-height: 1.3;
}
.page-title-section .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    max-width: 700px;
}
@media (max-width: 767px) {
    .page-title-section {
        padding: 2rem 0 1.5rem;
    }
    .page-title-section h1 {
        font-size: 1.35rem;
    }
}

.artikel-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Reading Progress Bar ── */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #4fc3f7);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   FLOATING SHARE (left side, static position)
   ═══════════════════════════════════════════ */
.share-floating {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.share-floating-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transition: all 0.2s;
    position: relative;
}

.share-floating-toggle .share-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2.5px solid rgba(26, 115, 232, 0.6);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.share-floating-toggle .share-ring.animate {
    animation: shareRingOut 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.share-floating-toggle .share-ring-2 {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(26, 115, 232, 0.4);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.share-floating-toggle .share-ring-2.animate {
    animation: shareRingOut 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes shareRingOut {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

.share-floating-toggle:hover {
    background: #1557b0;
    transform: scale(1.1);
}

.share-floating-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.share-floating-menu .share-floating-item {
    opacity: 0;
    transform: scale(0.5) translateY(-10px);
    animation: shareItemPop 0.3s ease forwards;
}

.share-floating-menu .share-floating-item:nth-child(1) {
    animation-delay: 0s;
}
.share-floating-menu .share-floating-item:nth-child(2) {
    animation-delay: 0.05s;
}
.share-floating-menu .share-floating-item:nth-child(3) {
    animation-delay: 0.1s;
}
.share-floating-menu .share-floating-item:nth-child(4) {
    animation-delay: 0.15s;
}
.share-floating-menu .share-floating-item:nth-child(5) {
    animation-delay: 0.2s;
}
.share-floating-menu .share-floating-item:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes shareItemPop {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-floating-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.share-floating-item:hover {
    transform: scale(1.15);
    color: #fff;
}

.share-fb {
    background: #1877f2;
}
.share-x {
    background: #000;
}
.share-wa {
    background: #25d366;
}
.share-tg {
    background: #0088cc;
}
.share-ig {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}
.share-copy {
    background: #475569;
}

@media (max-width: 991.98px) {
    .share-floating {
        position: fixed;
        left: 0.5rem;
        top: auto;
        bottom: 1rem;
        transform: none;
    }
    .share-floating-toggle {
        width: 40px;
        height: 40px;
    }
    .share-floating-item {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* ── Hero Image ── */
.artikel-hero-image img {
    border-radius: 10px;
    transition: transform 0.3s;
}

.artikel-hero-image img:hover {
    transform: scale(1.01);
}

/* ── Galeri Foto Tambahan ── */
.artikel-galeri {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.artikel-galeri h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.galeri-thumb {
    border: 2px solid transparent;
    transition: all 0.2s;
}

.galeri-thumb:hover {
    border-color: #0284c7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Table of Contents ── */
.toc-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.toc-nav ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: toc;
}

.toc-nav ol li {
    counter-increment: toc;
    padding: 0.3rem 0;
}

.toc-nav ol li::before {
    content: counters(toc, ".") ". ";
    color: #64748b;
    font-size: 0.8rem;
}

.toc-nav ol li a {
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.toc-nav ol li a:hover {
    color: #1a73e8;
}

.toc-nav ol ol {
    padding-left: 1rem;
}

/* ── Article Content Typography ── */
.artikel-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.artikel-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2e8f0;
}

.artikel-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.artikel-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.artikel-content p {
    margin-bottom: 1rem;
}

.artikel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    cursor: zoom-in;
}

.artikel-content blockquote {
    border-left: 4px solid #1a73e8;
    background: #f0f7ff;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.artikel-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}

.artikel-content code {
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.artikel-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.artikel-content ul,
.artikel-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.artikel-content li {
    margin-bottom: 0.4rem;
}

.artikel-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.artikel-content table th,
.artikel-content table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e2e8f0;
}

.artikel-content table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* ── Tags ── */
.artikel-tags .badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    transition: all 0.2s;
}

.artikel-tags .badge:hover {
    background: #1a73e8 !important;
    color: #fff !important;
    border-color: #1a73e8 !important;
}

/* ── Prev/Next Navigation ── */
.artikel-nav {
    position: relative;
    z-index: 2;
}

.artikel-nav-link {
    display: block;
    text-decoration: none;
    color: #334155;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s;
}

.artikel-nav-link:hover {
    border-color: #1a73e8;
    background: #f0f7ff;
    color: #1a73e8;
}

/* ── Komentar Section ── */
.komentar-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.komentar-item:last-child {
    border-bottom: none;
}

.komentar-item.reply {
    padding: 0.75rem 0;
    border-bottom: none;
}

.komentar-avatar .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818181, #727272);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.komentar-avatar .avatar-placeholder.small {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.komentar-body {
    flex: 1;
    min-width: 0;
}

.komentar-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.komentar-replies {
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.komentar-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

/* ── Artikel Terkait Cards ── */
.artikel-terkait-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.artikel-terkait-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1a73e8;
}

.artikel-terkait-card .card-title {
    color: #1e293b;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.artikel-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a73e8;
}

/* Sidebar Post List */
.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #334155;
    transition: color 0.2s;
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-item:hover {
    color: #1a73e8;
}

.sidebar-post-item:hover .post-title {
    color: #1a73e8;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: #334155;
    transition: color 0.2s;
}

.post-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   BERITA POPULER - Visual Card Style
   ═══════════════════════════════════════════ */
.nm-vis-widget {
    padding: 1.25rem;
}

.nm-vis-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #009c48;
}

/* Featured item (01) */
.nm-vis-featured {
    display: block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.nm-vis-featured-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.nm-vis-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nm-vis-featured:hover .nm-vis-featured-img img {
    transform: scale(1.05);
}

.nm-vis-featured-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nm-vis-number-big {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.nm-vis-featured-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0.75rem 0 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.nm-vis-featured:hover .nm-vis-featured-title {
    color: #009c48;
}

/* List items (02-05) */
.nm-vis-list {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
}

.nm-vis-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s;
}

.nm-vis-list-item:last-child {
    border-bottom: none;
}

.nm-vis-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nm-vis-list-item:hover .nm-vis-circle {
    background: #009c48;
    color: #fff;
}

.nm-vis-list-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.35;
    transition: color 0.2s;
}

.nm-vis-list-item:hover .nm-vis-list-title {
    color: #009c48;
}

/* ═══════════════════════════════════════════
   LIGHTBOX with Navigation
   ═══════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-nav[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   MAILBOX ATTACHMENTS (AdminLTE style)
   ═══════════════════════════════════════════ */
.mailbox-attachments {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mailbox-attachments li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 180px;
    background: #fff;
    transition:
        box-shadow 0.2s,
        border-color 0.2s;
}

.mailbox-attachments li:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.12);
}

.mailbox-attachment-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.mailbox-attachment-link:hover {
    color: inherit;
}

.mailbox-attachment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: #f8fafc;
    font-size: 2rem;
    color: #64748b;
}

.mailbox-attachment-icon .fa-file-pdf {
    color: #dc2626;
}
.mailbox-attachment-icon .fa-file-word {
    color: #2563eb;
}
.mailbox-attachment-icon .fa-file-excel {
    color: #16a34a;
}
.mailbox-attachment-icon .fa-file-powerpoint {
    color: #ea580c;
}
.mailbox-attachment-icon .fa-file-archive {
    color: #ca8a04;
}

.mailbox-attachment-info {
    padding: 0.6rem 0.75rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.mailbox-attachment-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.mailbox-attachment-name:hover {
    color: #1a73e8;
}

.mailbox-attachment-name i {
    color: #94a3b8;
    margin-right: 0.25rem;
}

.mailbox-attachment-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
}

.mailbox-attachment-size .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 4px;
    transition: all 0.2s;
}

.mailbox-attachment-size .btn:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

@media (max-width: 575.98px) {
    .mailbox-attachments li {
        width: 100%;
    }
    .mailbox-attachment-icon {
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .artikel-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .artikel-content {
        font-size: 0.92rem;
    }

    .artikel-terkait .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .artikel-nav .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
        margin-bottom: 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   DARK MODE - Artikel Show
   ═══════════════════════════════════════════ */
body.dark-mode .sidebar-widget {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .widget-title {
    color: #e2e8f0 !important;
    border-bottom-color: #60a5fa !important;
}

body.dark-mode .nm-vis-widget {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 10px;
}

body.dark-mode .nm-vis-title {
    color: #e2e8f0 !important;
    border-bottom-color: #10b981 !important;
}

body.dark-mode .nm-vis-featured-title {
    color: #e2e8f0 !important;
}

body.dark-mode .nm-vis-featured:hover .nm-vis-featured-title {
    color: #10b981 !important;
}

body.dark-mode .nm-vis-featured-placeholder {
    background: #334155 !important;
}

body.dark-mode .nm-vis-list {
    border-top-color: #334155 !important;
}

body.dark-mode .nm-vis-list-item {
    border-bottom-color: #334155 !important;
}

body.dark-mode .nm-vis-circle {
    background: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .nm-vis-list-item:hover .nm-vis-circle {
    background: #10b981 !important;
    color: #fff !important;
}

body.dark-mode .nm-vis-list-title {
    color: #cbd5e1 !important;
}

body.dark-mode .nm-vis-list-item:hover .nm-vis-list-title {
    color: #10b981 !important;
}

body.dark-mode .sidebar-post-item {
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .sidebar-post-item:hover {
    color: #60a5fa !important;
}

body.dark-mode .post-title {
    color: #cbd5e1 !important;
}

body.dark-mode .sidebar-post-item:hover .post-title {
    color: #60a5fa !important;
}

body.dark-mode .share-floating-toggle {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

body.dark-mode .share-floating-toggle .share-ring {
    border-color: rgba(96, 165, 250, 0.6);
}

body.dark-mode .share-floating-toggle .share-ring-2 {
    border-color: rgba(96, 165, 250, 0.4);
}
