/* ==========================================================================
   Movy Theme - Single Post Stylesheet
   ========================================================================== */

/* 1. Cinematic Post Hero */
.post-hero {
    position: relative;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow: hidden;
    padding: 150px 0 130px 0; /* Extra bottom padding for featured image overlap */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-hero__inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.post-hero__meta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-highlight);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-hero__meta a {
    color: var(--primary-highlight);
}

.post-hero__meta a:hover {
    color: var(--text-light);
}

.post-hero__title {
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 2. Main Post Content Area */
.post-main {
    position: relative;
    padding: 0 0 100px 0;
    background-color: var(--bg-body);
}

/* Overlapping Featured Image */
.post-featured-image-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-featured-image-wrapper {
    margin-top: -70px; /* Overlap the hero section */
    position: relative;
    z-index: 20;
    border-radius: 28px;
    overflow: hidden;
    padding-top: 52%; /* Slightly wider aspect ratio than 16:9 for single post */
    background: #000;
    box-shadow: 0 25px 60px rgba(12, 7, 28, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-featured-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-featured-image-wrapper:hover img {
    opacity: 1;
    transform: scale(1.02);
}

/* Viewfinder corners for single post featured image */
.post-featured-image__frame {
    position: absolute;
    inset: 22px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.5;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                inset 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-featured-image-wrapper:hover .post-featured-image__frame {
    opacity: 1;
    inset: 15px;
}

.post-featured-image__frame .frame-corner {
    border-color: rgba(255, 255, 255, 0.25);
}

.post-featured-image-wrapper:hover .post-featured-image__frame .frame-corner {
    border-color: var(--primary-highlight);
}

/* Lens glare sweep */
.post-featured-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 70%,
            transparent);
    transform: skewX(-25deg);
    z-index: 4;
    pointer-events: none;
}

.post-featured-image-wrapper:hover::after {
    left: 150%;
    transition: left 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Post Body and Typography */
.post-body {
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding: 0 20px;
}

.post-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.12rem;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.8);
}

.post-content p {
    margin-top: 0;
    margin-bottom: 28px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: 'Gemunu Libre', sans-serif;
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 45px;
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 2.2rem;
}

.post-content h3 {
    font-size: 1.8rem;
}

.post-content h4 {
    font-size: 1.5rem;
}

/* Style for blockquotes */
.post-content blockquote {
    position: relative;
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary-highlight);
    border-left: 4px solid var(--primary-highlight);
    padding: 20px 10px 20px 30px;
    margin: 45px 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(18, 11, 40, 0.01);
}

.post-content blockquote p {
    margin: 0;
}

/* Inline links inside post content */
.post-content a {
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 rgba(96, 44, 185, 0.15);
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: var(--primary-highlight);
    box-shadow: inset 0 -2px 0 var(--primary-highlight);
}

/* Custom lists */
.post-content ul,
.post-content ol {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content ul li {
    list-style: none;
    position: relative;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-highlight);
    border-radius: 50%;
}

/* 4. Sleek Post Navigation */
.post-navigation {
    border-top: 1px solid rgba(18, 11, 40, 0.08);
    padding-top: 60px;
    margin-top: 80px;
    display: flex;
    gap: 30px;
}

.post-navigation .nav-link-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(18, 11, 40, 0.06);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-navigation .nav-link-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 57, 216, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(99, 57, 216, 0.06);
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-navigation .nav-title {
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.post-navigation .nav-link-card:hover .nav-title {
    color: var(--primary);
}

.post-navigation .nav-link-card--prev .nav-label::before {
    content: '←';
    font-weight: bold;
}

.post-navigation .nav-link-card--next {
    text-align: right;
    align-items: flex-end;
}

.post-navigation .nav-link-card--next .nav-label::after {
    content: '→';
    font-weight: bold;
}

/* 5. DNA Floating Blobs */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
    will-change: transform, border-radius;
}

.shape-blob--circle {
    background: var(--primary-highlight);
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
    animation: floatOrganicSingle 24s ease-in-out infinite;
}

.shape-blob--circle-2 {
    background: var(--primary);
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: floatOrganicSingle 18s ease-in-out infinite -4s;
    opacity: 0.18;
}

.shape-blob--triangle-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 25%;
    right: 5%;
    opacity: 0.12;
    z-index: 0;
    animation: rotateTriangleSingle 40s linear infinite;
}

.shape-blob--triangle-glow svg {
    width: 100%;
    height: 100%;
}

@keyframes floatOrganicSingle {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    33% {
        transform: translate(40px, -50px) scale(1.1) rotate(15deg);
        border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9) rotate(-10deg);
        border-radius: 50% 40% 60% 40% / 50% 50% 40% 60%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

@keyframes rotateTriangleSingle {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.08);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ==========================================================================
   5.1. Custom Comments Section Styling
   ========================================================================== */
.comments-area {
    margin-top: 80px;
    border-top: 1px solid rgba(18, 11, 40, 0.08);
    padding-top: 60px;
}

.comments-title {
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 35px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
}

.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
    border-left: 2px solid rgba(96, 44, 185, 0.15);
}

.comment-body {
    position: relative;
    padding: 25px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(18, 11, 40, 0.06);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.comment-body:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(99, 57, 216, 0.15);
    box-shadow: 0 12px 35px rgba(99, 57, 216, 0.05);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--primary-highlight);
    box-shadow: 0 4px 10px rgba(99, 57, 216, 0.15);
}

.comment-author .fn {
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-style: normal;
}

.comment-metadata {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.45);
    font-family: 'Open Sans', sans-serif;
}

.comment-metadata a {
    color: rgba(0, 0, 0, 0.45);
    transition: color 0.3s ease;
}

.comment-metadata a:hover {
    color: var(--primary-highlight);
    text-decoration: none;
}

.comment-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.96rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.75);
}

.comment-content p {
    margin: 0;
}

.comment-body .reply {
    margin-top: 15px;
    text-align: right;
}

.comment-body .reply a {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background: var(--primary);
    color: var(--text-light) !important;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(96, 44, 185, 0.15);
    box-shadow: inset 0 0 0 transparent; /* Override main site links shadow */
}

.comment-body .reply a:hover {
    background: var(--primary-highlight);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 57, 216, 0.25);
    text-decoration: none !important;
}

/* Comment Form styling */
.comment-respond {
    margin-top: 60px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(18, 11, 40, 0.06);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(18, 11, 40, 0.01);
}

.comment-reply-title {
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 25px;
}

.comment-reply-title small a {
    font-size: 0.85rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--primary-highlight);
    margin-left: 10px;
}

.comment-notes {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.55);
    margin-top: -15px;
    margin-bottom: 25px;
}

.comment-form p {
    margin-top: 0;
    margin-bottom: 22px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(18, 11, 40, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    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;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(96, 44, 185, 0.1);
}

.comment-form .btn-submit {
    display: inline-flex;
    align-items: center;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(96, 44, 185, 0.2);
    box-shadow: inset 0 0 0 transparent;
}

.comment-form .btn-submit:hover {
    background: var(--primary-highlight);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 57, 216, 0.3);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    text-transform: none;
    letter-spacing: normal;
}

/* ==========================================================================
   6. Responsive Design Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .post-hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 120px 0 100px 0;
    }

    .post-hero__title {
        font-size: 2.4rem;
    }

    .post-featured-image-wrapper {
        margin-top: -50px;
        border-radius: 20px;
    }

    .post-featured-image__frame {
        inset: 18px;
    }

    .post-featured-image-wrapper:hover .post-featured-image__frame {
        inset: 12px;
    }

    .post-body {
        margin-top: 40px;
    }

    .post-content {
        font-size: 1.05rem;
    }

    .post-content h2 {
        font-size: 1.8rem;
        margin-top: 35px;
    }

    .post-content h3 {
        font-size: 1.5rem;
    }

    .post-content blockquote {
        font-size: 1.45rem;
        margin: 35px 0;
        padding-left: 20px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
        margin-top: 50px;
        padding-top: 40px;
    }

    .post-navigation .nav-link-card--next {
        text-align: left;
        align-items: flex-start;
    }
    
    .post-navigation .nav-link-card--next .nav-label::after {
        content: '';
    }
    
    .post-navigation .nav-link-card--next .nav-label::before {
        content: '→';
        font-weight: bold;
    }

    /* Disable organic shapes on mobile to save layout painting */
    .shape-blob {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .post-hero__title {
        font-size: 2rem;
    }

    .post-hero__meta {
        font-size: 0.8rem;
        gap: 12px;
    }
}
