/* Post-specific styles - Black Theme */
body {
    background: #f5f4f0;
    color: #1a1a1a;
    overflow-x: hidden;
}

.post-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 90px 40px 80px;
    background: #f5f4f0;
}

.post-header {
    margin-bottom: 56px;
    position: relative;
    text-align: left;
}

.post-meta-row {
    font-size: 14px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(26, 26, 26, 0.65);
    margin-bottom: 18px;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.post-meta {
    font-weight: 500;
}

.post-meta strong {
    font-weight: 600;
    color: rgba(26, 26, 26, 0.78);
}

.post-meta-sep {
    opacity: 0.65;
}

.post-title {
    font-size: clamp(35px, 4.2vw, 64px);
    line-height: 1.15;
    margin: 0 0 18px 0;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1a1a1a;
}

.post-breadcrumbs {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(26, 26, 26, 0.55);
    margin: 0 0 28px 0;
}

.breadcrumb-link {
    color: rgba(26, 26, 26, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: rgba(26, 26, 26, 0.95);
}

.breadcrumb-sep {
    opacity: 0.5;
}

.breadcrumb-current {
    opacity: 0.45;
}

.post-lead {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(26, 26, 26, 0.7);
    font-weight: 400;
    margin: 0;
    max-width: 860px;
    text-align: justify;
    text-justify: inter-word;
}

.post-hero {
    margin: 0 auto 60px;
}

.post-hero-figure {
    margin: 0;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #e9e9e9;
}

.post-hero-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-content {
    margin-top: 30px;
}

.post-h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
}

.post-paragraph {
    margin: 0 0 14px 0;
    color: rgba(26, 26, 26, 0.7);
    line-height: 1.8;
    font-size: 14.5px;
    text-align: justify;
    text-justify: inter-word;
}

.post-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(26, 26, 26, 0.7);
    line-height: 1.9;
    font-size: 14.5px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

/* Image Carousel */
.carousel-track-container {
    overflow: hidden;
    background: #000;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Overlay - Author info and social buttons */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.hero-metadata {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-author,
.hero-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-label,
.date-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-name,
.date-value {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.hero-social {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.social-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.social-btn.social-icon {
    padding: 10px;
}

.social-btn svg {
    flex-shrink: 0;
}

/* Caption at bottom left */
.hero-caption-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            transparent 100%);
    z-index: 9;
    pointer-events: none;
}

.hero-caption-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    text-align: left;
    max-width: 700px;
}

/* Carousel navigation */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 11;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-btn:active {
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Back button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    font-weight: 400;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.back-link:hover {
    color: #1a1a1a;
    transform: translateX(-6px);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-container {
        padding: 70px 24px 50px;
    }

    .post-lead {
        font-size: 15px;
        max-width: none;
    }

    .hero-caption-wrapper {
        padding: 40px 24px 24px;
    }

    .hero-caption-text {
        font-size: 14px;
    }

    .carousel-controls {
        padding: 0 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-indicators {
        bottom: 100px;
    }
}

/* Smooth scroll animations with stagger */
.animate-post {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-post.visible {
    opacity: 1;
    transform: translateY(0);
    width: 100%;
}

/* Loading screen */
#loading-screen {
    background: #f5f4f0;
}

.loader-bar {
    background: rgba(0, 0, 0, 0.1);
}

.loader-bar-inner {
    background: linear-gradient(90deg, #1a1a1a, #666);
}

.loader-text {
    color: #666;
}