/* 
 * Modern Single Post Template Styles
 * Design system: Dark blue-green gradient theme
 * Responsive: Desktop > 1024px, Mobile < 768px
 */

html {
    scroll-behavior: smooth;
}

.post-single__wrapper {
    background: #ffffff;
}

/* ===== HERO SECTION ===== */
.post-single__hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    overflow: hidden;
}

.post-single__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 26, 43, 0.95) 0%, rgba(15, 47, 37, 0.95) 52%, rgba(10, 36, 29, 0.95) 100%);
    z-index: 1;
}

.post-single__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 40px;
    animation: fadeInUp 0.8s ease-out;
}

/* Breadcrumb */
.post-single__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.post-single__breadcrumb a {
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-single__breadcrumb a:hover {
    color: #06d6a0;
    text-decoration: underline;
}

.post-single__breadcrumb span,
.post-single__breadcrumb .current {
    color: rgba(255, 255, 255, 0.7);
}

/* Title */
.post-single__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 8vw, 58px);
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Meta Info */
.post-single__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.post-single__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-single__meta-item .label {
    opacity: 0.7;
    font-weight: 500;
}

.post-single__meta-item a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.post-single__meta-item a:hover {
    color: #06d6a0;
}

.post-single__meta .sep {
    opacity: 0.5;
}

/* Share Buttons */
.post-single__share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.share-label {
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.8;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--share-color), color-mix(in srgb, var(--share-color) 65%, black));
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.share-text {
    display: none;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.share-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.share-btn:hover::after {
    opacity: 1;
}

.share-wa { --share-color: #22c55e; }
.share-fb { --share-color: #1877f2; }
.share-x { --share-color: #111827; }
.share-ln { --share-color: #0a66c2; }
.share-tg { --share-color: #229ed9; }

@media (max-width: 600px) {
    .post-single__share {
        gap: 8px;
    }

    .share-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* ===== CONTAINER & GRID ===== */
.post-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-single__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .post-single__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== MAIN CONTENT ===== */
.post-single__content {
    width: 100%;
}

.post-single__featured {
    width: 100%;
    margin: 0 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-single__featured img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Text */
.post-single__text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-spacing: 0.05em;
}

.post-single__text h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #0b1a2b;
    line-height: 1.3;
}

.post-single__text h3 {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #0f2f25;
}

.post-single__text p {
    margin: 0 0 20px 0;
}

.post-single__text a {
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.post-single__text a:hover {
    border-bottom-color: #10b981;
}

.post-single__text ul,
.post-single__text ol {
    margin: 20px 0 20px 30px;
    line-height: 2;
}

.post-single__text li {
    margin-bottom: 10px;
}

/* ===== BLOCKQUOTE STYLES (Modern & Beautiful) ===== */

/* Default Blockquote - Gradient dengan Quote Icon */
.post-single__text blockquote {
    position: relative;
    border: none;
    border-left: 4px solid transparent;
    border-image: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
    border-image-slice: 1;
    padding: 30px 40px 30px 70px;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(11, 26, 43, 0.03) 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: clamp(16px, 1.125rem, 20px);
    line-height: 1.8;
    color: #0b1a2b;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transition: all 0.3s ease;
}

.post-single__text blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 20px;
    font-family: 'Georgia', serif;
    font-size: 60px;
    line-height: 1;
    color: #10b981;
    opacity: 0.3;
    font-style: normal;
}

.post-single__text blockquote:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.post-single__text blockquote p {
    margin: 0 0 15px 0;
}

.post-single__text blockquote p:last-child {
    margin-bottom: 0;
}

/* Blockquote dengan Author/Citation */
.post-single__text blockquote cite,
.post-single__text blockquote footer {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding-top: 15px;
}

.post-single__text blockquote cite::before,
.post-single__text blockquote footer::before {
    content: '— ';
    color: #0b1a2b;
}

/* Blockquote Highlight - Full Gradient Background */
.post-single__text blockquote.blockquote-highlight {
    background: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
    color: #ffffff;
    border-left: none;
    padding: 30px 40px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.post-single__text blockquote.blockquote-highlight::before {
    color: rgba(255, 255, 255, 0.4);
}

.post-single__text blockquote.blockquote-highlight cite,
.post-single__text blockquote.blockquote-highlight footer {
    color: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(255, 255, 255, 0.3);
}

.post-single__text blockquote.blockquote-highlight:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

/* Blockquote Bordered - Tebal dengan Shadow */
.post-single__text blockquote.blockquote-bordered {
    border: 3px solid #10b981;
    border-radius: 12px;
    padding: 30px 40px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.post-single__text blockquote.blockquote-bordered::before {
    display: none;
}

.post-single__text blockquote.blockquote-bordered::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #10b981, #06d6a0, #10b981);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-single__text blockquote.blockquote-bordered:hover::after {
    opacity: 0.5;
}

/* Blockquote Simple - Minimalist dengan Line */
.post-single__text blockquote.blockquote-simple {
    border-left: 3px solid #10b981;
    padding: 15px 30px;
    margin: 30px 0;
    background: transparent;
    font-style: normal;
    font-size: 16px;
    box-shadow: none;
}

.post-single__text blockquote.blockquote-simple::before {
    display: none;
}

.post-single__text blockquote.blockquote-simple:hover {
    transform: none;
    border-left-width: 5px;
    padding-left: 28px;
}

/* Blockquote Warning/Info Variants */
.post-single__text blockquote.blockquote-warning {
    border-image: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-image-slice: 1;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.03) 100%);
}

.post-single__text blockquote.blockquote-warning::before {
    content: '⚠';
    color: #f59e0b;
    font-style: normal;
}

.post-single__text blockquote.blockquote-info {
    border-image: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-image-slice: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.03) 100%);
}

.post-single__text blockquote.blockquote-info::before {
    content: 'ℹ';
    color: #3b82f6;
    font-style: normal;
}

/* Responsive Blockquote */
@media (max-width: 768px) {
    .post-single__text blockquote {
        padding: 20px 30px 20px 50px;
        margin: 30px 0;
        font-size: 16px;
    }

    .post-single__text blockquote::before {
        font-size: 40px;
        left: 15px;
        top: 15px;
    }

    .post-single__text blockquote.blockquote-simple {
        padding: 15px 20px;
    }

    .post-single__text blockquote cite,
    .post-single__text blockquote footer {
        font-size: 13px;
    }
}

.post-single__text pre {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.post-single__text code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

/* ===== TAGS ===== */
.post-single__tags {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.post-single__tags strong {
    color: #0b1a2b;
    font-weight: 600;
}

.post-single__tag {
    display: inline-block;
    background: #f0fdf4;
    color: #0b5c37;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #d1fae5;
}

.post-single__tag:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* ===== SIDEBAR ===== */
.post-single__sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Box Styles */
.post-single__box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.post-single__box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-single__box h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1a2b;
    margin: 0 0 20px 0;
}

/* Author Card */
.post-single__author-card {
    background: linear-gradient(135deg, rgba(11, 26, 43, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.post-single__author-card h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #0b1a2b;
}

.post-single__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #10b981;
    display: block;
}

.post-single__author-name {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    margin: 15px 0;
    color: #0b1a2b;
}

.post-single__author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-single__author-name a:hover {
    color: #10b981;
}

.post-single__author-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 12px 0;
}

.post-single__author-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0b1a2b 0%, #0f2f25 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.post-single__author-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
    transform: translateY(-2px);
}

/* ===== KILAS WIDGET (Featured Posts) ===== */
.post-single__kilas-widget {
    background: linear-gradient(145deg, 
        rgba(11, 36, 71, 0.15) 0%,
        rgba(25, 55, 109, 0.15) 50%,
        rgba(16, 185, 129, 0.15) 100%);
    border-radius: 20px;
    position: relative;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    animation: widget-float 7s ease-in-out infinite;
    will-change: transform;
    contain: layout style paint;
}

.post-single__kilas-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(25, 55, 109, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 80%, 
        rgba(16, 185, 129, 0.1) 0%, 
        transparent 50%);
    animation: gradient-rotate 20s linear infinite;
    pointer-events: none;
}

.post-single__kilas-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.kilas-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: -40px 0 16px 0;
}

.kilas-accent {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: icon-pulse 2.5s ease-in-out infinite;
}

.kilas-accent::after {
    content: '⚡';
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.kilas-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Featured Post with Large Image */
.kilas-featured {
    position: relative;
    overflow: hidden;
    margin: 0 12px 8px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kilas-featured-link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 16px;
}

.kilas-featured img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.9);
}

.kilas-featured-link:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1);
}

.kilas-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(11, 36, 71, 0.95) 0%, 
        rgba(11, 36, 71, 0.7) 60%, 
        transparent 100%);
    padding: 16px 18px 14px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
}

.kilas-featured-overlay h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.kilas-featured-link:hover .kilas-featured-overlay {
    background: linear-gradient(to top, 
        rgba(16, 185, 129, 0.95) 0%, 
        rgba(16, 185, 129, 0.7) 60%, 
        transparent 100%);
    transform: translateY(-5px);
}

.kilas-featured-link:hover .kilas-featured-overlay h4 {
    transform: translateX(5px);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* List of Posts */
.kilas-list {
    padding: 0 8px 12px;
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.kilas-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin: 0 4px 8px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.kilas-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, transparent 100%);
    transition: width 0.4s ease;
}

.kilas-item:hover::before {
    width: 100%;
}

.kilas-item:hover {
    background: rgba(16, 185, 129, 0.1);
    padding-left: 20px;
    border-left-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

.kilas-item:last-child {
    margin-bottom: 0;
}

.kilas-item h5 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    z-index: 1;
}

.kilas-item:hover h5 {
    color: #10b981;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.kilas-arrow {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-10px);
}

.kilas-item:hover .kilas-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .post-single__popular-widget,
    .post-single__recommend-widget {
        padding-top: 8px;
    }

    .kilas-header {
        margin: -20px 0 12px 0;
    }
    
    .popular-header {
        margin: 0 0 12px 0;
        padding-top: 10px;
    }

    .popular-header h3 {
        line-height: 1.35;
        padding-top: 2px;
    }
    
    .recommend-header {
        margin: 0 0 12px 0;
        padding-top: 10px;
    }

    .recommend-header h3 {
        line-height: 1.35;
        padding-top: 2px;
    }
    
    .category-modern-header {
        margin: 0 0 12px 0;
        padding-top: 14px;
    }
    
    .kilas-featured img {
        height: 220px;
    }

    .kilas-featured-overlay h4 {
        font-size: 14px;
    }

    .kilas-item {
        padding: 14px 16px;
    }

    .kilas-item h5 {
        font-size: 13px;
    }
}

/* Categories List */
.post-single__categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-single__category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: #0b1a2b;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-single__category-link:hover {
    padding-left: 5px;
    color: #10b981;
}

.post-single__category-link small {
    color: #999;
    font-size: 12px;
}

/* Table of Contents (Sidebar - removed, now inline) */

/* Table of Contents - Inline (after first paragraph) */
.post-toc-inline {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(11, 26, 43, 0.05) 100%);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-toc-inline:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.post-toc-inline__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.post-toc-inline__icon {
    font-size: 24px;
    line-height: 1;
}

.post-toc-inline__header h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    margin: 0;
    flex: 1;
}

.post-toc-inline__toggle {
    background: none;
    border: none;
    color: #10b981;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.post-toc-inline__toggle:hover {
    transform: scale(1.1);
}

.post-toc-inline.collapsed .post-toc-inline__toggle svg {
    transform: rotate(-90deg);
}

.post-toc-inline__list {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.post-toc-inline.collapsed .post-toc-inline__list {
    max-height: 0;
    opacity: 0;
}

.post-toc-inline__list ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}

.post-toc-inline__list li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
}

.post-toc-inline__list li::before {
    content: counter(toc-counter) '.';
    color: #10b981;
    font-weight: 700;
    margin-right: 10px;
    font-size: 15px;
    display: inline-block;
    min-width: 25px;
}

.post-toc-inline__list a {
    text-decoration: none;
    color: #0b1a2b;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.2s ease;
    display: inline-block;
    font-weight: 500;
}

.post-toc-inline__list a:hover {
    color: #10b981;
    transform: translateX(5px);
}

.post-toc-inline__list a.active {
    color: #10b981;
    font-weight: 700;
    position: relative;
}

.post-toc-inline__list a.active::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
}

.post-toc-inline__list .toc-level-3 {
    padding-left: 30px;
    font-size: 14px;
    margin-bottom: 8px;
}

.post-toc-inline__list .toc-level-3::before {
    content: '→';
    color: #666;
    margin-right: 8px;
    min-width: 20px;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Highlight heading when scrolled to */
h2[id]:target,
h3[id]:target {
    animation: highlight-heading 2s ease;
}

@keyframes highlight-heading {
    0% {
        background-color: rgba(16, 185, 129, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* ===== RELATED ARTICLES (Modern Design) ===== */
.post-single__related {
    margin: 80px 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(11, 26, 43, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.post-single__related h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 2.5rem, 42px);
    font-weight: 700;
    color: #0b1a2b;
    margin: 0 0 50px 0;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.post-single__related h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #06d6a0 100%);
    border-radius: 2px;
}

/* Grid Layout: 4 columns desktop, 2 columns mobile */
.post-single__related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .post-single__related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .post-single__related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .post-single__related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Modern Card Design */
.post-single__related-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-single__related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 214, 160, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 16px;
}

.post-single__related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
}

.post-single__related-card:hover::before {
    opacity: 1;
}

/* Thumbnail with Overlay */
.post-single__related-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, #0b1a2b 0%, #0f2f25 100%);
}

.post-single__related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-single__related-card:hover .post-single__related-thumb img {
    transform: scale(1.1);
}

/* Gradient Overlay on Image */
.post-single__related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 26, 43, 0) 0%, rgba(11, 26, 43, 0.6) 100%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-single__related-card:hover .post-single__related-overlay {
    opacity: 0.7;
}

/* Category Badge */
.post-single__related-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #10b981 0%, #06d6a0 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.3s ease;
}

.post-single__related-card:hover .post-single__related-badge {
    transform: scale(1.05);
}

/* Placeholder for posts without image */
.post-single__related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #d1fae5 100%);
    color: #10b981;
}

/* Content Area */
.post-single__related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Meta (Date) */
.post-single__related-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.post-single__related-meta time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Title */
.post-single__related-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(14px, 1.125rem, 18px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.post-single__related-title a {
    color: #0b1a2b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-single__related-card:hover .post-single__related-title a {
    color: #10b981;
}

/* Excerpt */
.post-single__related-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.post-single__related-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.05);
}

.post-single__related-btn svg {
    transition: transform 0.3s ease;
}

.post-single__related-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    gap: 12px;
}

.post-single__related-btn:hover svg {
    transform: translateX(4px);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .post-single__related {
        padding: 40px 15px;
        margin: 60px 0;
    }

    .post-single__related h2 {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .post-single__related h2::after {
        width: 60px;
        height: 3px;
        bottom: -12px;
    }

    .post-single__related-thumb {
        height: 160px;
    }

    .post-single__related-badge {
        top: 10px;
        left: 10px;
        padding: 5px 12px;
        font-size: 10px;
    }

    .post-single__related-content {
        padding: 15px;
    }

    .post-single__related-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .post-single__related-excerpt {
        font-size: 12px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }

    .post-single__related-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ===== COMMENTS SECTION ===== */
.post-single__comments {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 60px 20px;
    border-top: 2px solid #e0e0e0;
}

.post-single__comments h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    color: #0b1a2b;
    margin: 0 0 40px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .post-single__hero {
        min-height: 350px;
        margin-bottom: 40px;
    }

    .post-single__hero-content {
        padding: 40px 20px;
    }

    .post-single__title {
        font-size: 28px;
    }

    .post-single__meta {
        font-size: 12px;
        gap: 8px;
    }

    .post-single__text {
        font-size: 15px;
    }

    .post-single__text h2 {
        font-size: 24px;
        margin: 30px 0 15px 0;
    }

    .post-single__text h3 {
        font-size: 20px;
        margin: 20px 0 10px 0;
    }

    .post-single__related {
        margin: 60px 0;
    }

    .post-single__comments {
        padding: 40px 20px;
    }
}
/* Accessibility helper */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Post hero card (image right, text left) */
.post-hero.hero-card{display:grid;grid-template-columns:1fr 480px;gap:24px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:28px;border-radius:16px;margin-bottom:20px;align-items:center}
.post-hero .hero-left{padding:12px}
.post-hero .hero-kicker{font-weight:700;color:#62d3ff;margin-bottom:8px;font-size:0.95rem}
.post-hero .hero-title{font-size:2rem;margin:0 0 12px;color:#eaf0ff;font-weight:900}
.post-hero .hero-excerpt{color:rgba(255,255,255,.82);margin-bottom:16px;line-height:1.6}
.post-hero .hero-ctas .btn{margin-right:12px;padding:10px 18px;border-radius:999px;text-decoration:none;display:inline-block}
.post-hero .btn.primary{background:linear-gradient(90deg,#62d3ff,#00bfff);color:#021424;font-weight:800}
.post-hero .btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.08);color:#eaf0ff}
.post-hero .hero-right .hero-image{height:260px;background-size:cover;background-position:center;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
@media (max-width:900px){.post-hero.hero-card{grid-template-columns:1fr;padding:18px}.post-hero .hero-right{order:-1;margin-bottom:12px}.post-hero .hero-right .hero-image{height:180px}}

/* ===== MODERN COMMENTS SECTION - DARK GREEN THEME ===== */
.comments-section {
    background: linear-gradient(135deg, #0a3d2c 0%, #064d3b 50%, #0a3d2c 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    margin: 0;
}

.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(6, 214, 160, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.comments-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.comments-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Comments Title */
.comments-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #06d6a0);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.comments-icon {
    width: 28px;
    height: 28px;
    stroke: #10b981;
    stroke-width: 2;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-item {
    margin-bottom: 25px;
}

.comment-body {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border-left: 3px solid #10b981;
    transition: all 0.3s ease;
}

.comment-body:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar .avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.comment-author-name a {
    color: #10b981;
    text-decoration: none;
}

.comment-author-name a:hover {
    color: #06d6a0;
    text-decoration: underline;
}

.comment-metadata {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-text p {
    margin: 0 0 8px 0;
}

.comment-awaiting-moderation {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 6px;
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: normal;
}

.reply-link-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.reply-link-wrap a:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    transform: translateX(3px);
}

/* Nested Comments */
.children {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 25px;
}

.children .comment-body {
    background: rgba(255, 255, 255, 0.04);
}

/* Comment Form */
.comment-respond-wrap {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.comment-reply-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-icon {
    width: 24px;
    height: 24px;
    stroke: #10b981;
    stroke-width: 2;
    flex-shrink: 0;
}

.comment-form {
    display: grid;
    gap: 18px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.comment-form .required {
    color: #f87171;
    margin-left: 2px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15),
                0 4px 12px rgba(16, 185, 129, 0.2);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form .form-submit {
    margin: 10px 0 0 0;
}

.submit-btn,
.comment-form .submit,
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    letter-spacing: 0.3px;
}

.submit-btn:hover,
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.submit-btn:active,
.comment-form .submit:active,
.comment-form input[type="submit"]:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #10b981;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 400;
}

/* Logged in as */
.comment-form .logged-in-as {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0 0 15px 0;
}

.comment-form .logged-in-as a {
    color: #10b981;
    text-decoration: none;
}

.comment-form .logged-in-as a:hover {
    color: #06d6a0;
    text-decoration: underline;
}

/* Comments Closed */
.comments-closed {
    padding: 25px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 15px;
    text-align: center;
    margin: 0;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.comment-navigation a {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.comment-navigation a:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 60px 0;
    }

    .comments-container {
        padding: 35px 25px;
        border-radius: 16px;
    }

    .comments-title {
        font-size: 26px;
        gap: 8px;
        margin-bottom: 30px;
    }

    .comments-icon {
        width: 24px;
        height: 24px;
    }

    .comment-body {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .comment-avatar .avatar-img {
        width: 40px;
        height: 40px;
    }

    .children {
        margin-left: 15px;
    }

    .comment-reply-title {
        font-size: 22px;
    }

    .reply-icon {
        width: 20px;
        height: 20px;
    }

    .submit-btn,
    .comment-form .submit,
    .comment-form input[type="submit"] {
        width: 100%;
    }

    .comment-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .comments-container {
        padding: 25px 18px;
    }

    .comments-title {
        font-size: 22px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* live-reload-test: comments-modern-green */

/* ===== TERPOPULER WIDGET (Numbered List Design) ===== */
.post-single__popular-widget {
    background: linear-gradient(145deg, 
        rgba(45, 27, 78, 0.15) 0%,
        rgba(74, 44, 107, 0.15) 50%,
        rgba(251, 191, 36, 0.15) 100%);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: widget-float 8s ease-in-out infinite;
    will-change: transform;
    contain: layout style paint;
}

.post-single__popular-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(74, 44, 107, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 80%, 
        rgba(251, 191, 36, 0.1) 0%, 
        transparent 50%);
    animation: gradient-rotate 18s linear infinite;
    pointer-events: none;
}

.post-single__popular-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.popular-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 8px 12px 10px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: -40px 0 16px 0;
}

.popular-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: icon-pulse 2.2s ease-in-out infinite;
}

.popular-icon svg {
    width: 18px;
    height: 18px;
    color: #1f2937;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.popular-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

.popular-list {
    padding: 0 8px 12px;
    position: relative;
    z-index: 1;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 4px 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid transparent;
}

.popular-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.15) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popular-item:hover::before {
    opacity: 1;
}

.popular-item:last-child {
    margin-bottom: 0;
}

.popular-item:hover {
    background: rgba(251, 191, 36, 0.12);
    transform: translateX(8px) scale(1.02);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.25),
                0 0 30px rgba(251, 191, 36, 0.1);
}

.popular-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    color: #1f2937;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.popular-item:hover .popular-number {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6),
                0 0 25px rgba(251, 191, 36, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(251, 191, 36, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.popular-item:hover .popular-thumb {
    border-color: #fbbf24;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4),
                0 0 25px rgba(251, 191, 36, 0.2);
}

.popular-title {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.popular-item:hover .popular-title {
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* ===== REKOMENDASI WIDGET (Grid Design) ===== */
.post-single__recommend-widget {
    background: linear-gradient(145deg, 
        rgba(19, 78, 74, 0.15) 0%,
        rgba(15, 118, 110, 0.15) 50%,
        rgba(20, 184, 166, 0.15) 100%);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: widget-float 9s ease-in-out infinite;
    will-change: transform;
    contain: layout style paint;
}

.post-single__recommend-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(15, 118, 110, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 80%, 
        rgba(20, 184, 166, 0.1) 0%, 
        transparent 50%);
    animation: gradient-rotate 22s linear infinite;
    pointer-events: none;
}

.post-single__recommend-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.recommend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 8px 12px 10px;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: -40px 0 16px 0;
}

.recommend-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: icon-pulse 2.8s ease-in-out infinite;
}

.recommend-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.recommend-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(20, 184, 166, 0.2);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 12px 12px;
    position: relative;
    z-index: 1;
}

.recommend-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(20, 184, 166, 0.15);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.recommend-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.recommend-card:hover::before {
    opacity: 1;
}

.recommend-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.3),
                0 0 40px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.6);
}

.recommend-thumb {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.85);
}

.recommend-card:hover .recommend-thumb img {
    transform: scale(1.2) rotate(3deg);
    filter: brightness(1);
}

.recommend-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(19, 78, 74, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.recommend-card:hover .recommend-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, 
        rgba(20, 184, 166, 0.3) 0%, 
        rgba(20, 184, 166, 0.8) 100%);
}

.recommend-title {
    padding: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.recommend-card:hover .recommend-title {
    color: #14b8a6;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }
    
    .recommend-thumb {
        height: 140px;
    }
}

/* ===== CATEGORY WIDGET (Modern Pill Design) ===== */
/* ===== ULTRA MODERN CATEGORY WIDGET ===== */
.category-modern-widget {
    background: linear-gradient(145deg, 
        rgba(139, 92, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(6, 182, 212, 0.15) 100%);
    border-radius: 20px;
    padding: 24px 20px;
    position: relative;
    overflow: visible;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: widget-float 6s ease-in-out infinite;
    will-change: transform;
    contain: layout style paint;
}

@keyframes widget-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Animated gradient background */
.category-modern-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 80%, 
        rgba(6, 182, 212, 0.1) 0%, 
        transparent 50%);
    animation: gradient-rotate 15s linear infinite;
    pointer-events: none;
}

@keyframes gradient-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .post-single__kilas-widget,
    .post-single__popular-widget,
    .post-single__recommend-widget,
    .category-modern-widget,
    .category-icon-wrapper,
    .kilas-accent,
    .category-sparkle {
        animation: none !important;
        transform: none !important;
    }
}

/* Glassmorphism overlay */
.category-modern-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Header */
.category-modern-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -30px 0 16px 0;
    position: relative;
    z-index: 10;
}

.category-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6); }
}

.category-icon-wrapper svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.category-modern-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.category-sparkle {
    font-size: 18px;
    animation: sparkle-rotate 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes sparkle-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(20deg) scale(1.2); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-20deg) scale(1.2); }
}

/* Tag Grid */
.category-modern-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Modern Tag Pills */
.category-modern-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: tag-appear 0.6s ease forwards;
    animation-delay: var(--animation-delay, 0s);
}

@keyframes tag-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated border gradient */
.category-modern-tag::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, 
        var(--tag-color, #8b5cf6), 
        color-mix(in srgb, var(--tag-color, #8b5cf6) 60%, #06b6d4));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Inner glow effect */
.category-modern-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 60%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-modern-tag:hover::before {
    opacity: 1;
}

.category-modern-tag:hover::after {
    opacity: 1;
}

.category-modern-tag:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--tag-color, #8b5cf6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 30px color-mix(in srgb, var(--tag-color, #8b5cf6) 40%, transparent);
}

/* Glow effect on hover */
.tag-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, 
        color-mix(in srgb, var(--tag-color, #8b5cf6) 20%, transparent) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-modern-tag:hover .tag-glow {
    opacity: 1;
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Tag Icon (hash symbol) */
.tag-icon {
    font-size: 16px;
    font-weight: 700;
    color: var(--tag-color, #8b5cf6);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tag-color, #8b5cf6) 60%, transparent));
}

.category-modern-tag:hover .tag-icon {
    transform: rotate(360deg) scale(1.2);
    color: #ffffff;
}

/* Tag Name */
.tag-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.category-modern-tag:hover .tag-name {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Tag Count Badge */
.tag-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: linear-gradient(135deg, 
        var(--tag-color, #8b5cf6),
        color-mix(in srgb, var(--tag-color, #8b5cf6) 70%, black));
    border-radius: 13px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-modern-tag:hover .tag-count {
    transform: scale(1.15) rotate(5deg);
    background: #ffffff;
    color: var(--tag-color, #8b5cf6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
                0 0 15px color-mix(in srgb, var(--tag-color, #8b5cf6) 40%, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-modern-widget {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .category-modern-header h3 {
        font-size: 18px;
    }
    
    .category-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .category-icon-wrapper svg {
        width: 16px;
        height: 16px;
    }
    
    .category-modern-grid {
        gap: 10px;
    }
    
    .category-modern-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .tag-icon {
        font-size: 14px;
    }
    
    .tag-name {
        font-size: 13px;
    }
    
    .tag-count {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .post-single__popular-widget,
    .post-single__recommend-widget,
    .category-modern-widget {
        padding-top: 12px;
    }

    .popular-header,
    .recommend-header,
    .category-modern-header {
        margin: 6px 0 12px 0;
        padding-top: 10px;
    }

    .popular-header h3,
    .recommend-header h3,
    .category-modern-header h3 {
        line-height: 1.35;
        padding-top: 4px;
    }
}
