/* 
 * BlogLingo - Single Post Base (Elite Blend)
 * Foundation for single post styling: Dark Frame + White Content Area
 */

/* 1. Spacing for Fixed Header (Handled by Hero) */
.single-post #primary {
    padding-top: 0 !important;
}

.blog-hero {
    background-color: #0F0F0F !important;
    /* Spacing: ~260px total padding (approx 180px gap from header nav line at ~80px) */
    padding-top: 260px !important;
    padding-bottom: 8rem !important;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
    text-align: center;
    background: transparent !important;
}

.blog-hero h1 {
    max-width: 815px !important;
    margin: 0 auto 2.5rem auto !important;
    font-size: 55px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.2 !important;
    }
}

/* Premium Circle Glows */
/* Celestial Lighting System (Lush Nebula) */
.blog-hero .glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    top: -20rem;
    left: -15rem;
    filter: blur(160px);
    animation: nebula-drift 20s infinite ease-in-out alternate;
}

.glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.08;
    top: 10rem;
    right: -10rem;
    filter: blur(140px);
    animation: nebula-drift 25s infinite ease-in-out alternate-reverse;
}

.glow-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    /* Celestial Blue */
    opacity: 0.1;
    bottom: -10rem;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(120px);
    animation: nebula-pulse 15s infinite ease-in-out;
}

@keyframes nebula-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes nebula-pulse {

    0%,
    100% {
        opacity: 0.05;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.15;
        transform: translateX(-50%) scale(1.2);
    }
}

.blog-post-meta {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 3rem;
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta .author-avatar {
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.blog-post-meta .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 100px !important;
    }
}

/* 2. Elite Blend - Dark Frame */
body.single-post,
.single-post #page {
    background: var(--bg) !important;
}

/* Base site container - should be transparent in hero areas */
.single-post .site-container {
    background-color: transparent !important;
}

/* 3. Elite Blend - White Content Area (The "Card") */
.content-card-wrap {
    background-color: #FFFFFF !important;
    color: #1A1A1A !important;
    border-radius: 2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: -6rem;
    position: relative;
    z-index: 20;
    width: 100%;
}

@media (max-width: 768px) {
    .content-card-wrap {
        border-radius: 1.5rem 1.5rem 0 0;
        margin-top: -4rem;
    }
}

.intro-content-text {
    font-size: 1.125rem;
    line-height: 1.625;
    color: #334155;
    font-weight: 500;
}

.content-card-wrap article {
    padding: 3rem !important;
}

@media (max-width: 768px) {
    .content-card-wrap article {
        padding: 1.5rem !important;
    }
}

.elite-article-content {
    padding: 3rem !important;
    max-width: none;
}

.featured-img-elite {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-post .entry-content-wrap,
.single-post .entry-content,
.single-post .article-container,
.single-post .article-section {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 4. The "Text Card" / Intro Header (Restoration) */
.intro-box {
    width: 100%;
    background-color: #f7f7f7;
    padding: 2px 20px 30px 20px;
    margin-top: -2rem;
}

.intro-titlebg {
    width: auto;
    background: #ffffff;
    padding: 0.005rem;
    margin: 1rem;
    /* Negative margin to sit flush at top of card */
    border-radius: 2rem 2rem 0 0;
    border-bottom: 0px solid #e2e8f0;
    min-height: 0px;
    /* Preserve spacing without text */
}

.intro-titlebg h2,
.intro-titlebg h3,
.intro-titlebg .font-heading {
    margin: 0 !important;
    color: #1e293b !important;
}

/* 5. Text Readability in White Area */
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .article-container p,
.single-post .article-container li {
    color: #333333 !important;
    line-height: 1.7;
}

.post-footer-extras {
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.author-box-elite-dark {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.author-card-glass {
    background: rgba(26, 21, 40, 0.4) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2.5rem;
    padding: 4rem;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.author-sidebar {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(121, 60, 251, 0.4) 0%, rgba(255, 91, 73, 0.2) 100%);
    filter: blur(15px);
    border-radius: 50%;
    z-index: 0;
}

.author-img-elite {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.sidebar-author-name {
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.sidebar-author-role {
    color: #793cfb !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.author-socials-elite {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: rgba(121, 60, 251, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.author-main-content {
    flex: 1;
}

.about-label {
    color: #793cfb !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.author-bio-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 400;
}

@media (max-width: 900px) {
    .author-card-glass {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 2rem;
    }

    .author-main-content {
        margin-top: 2rem;
    }

    .about-label {
        margin-bottom: 1rem;
    }
}

/* 5. Headings Logic */
.single-post .content-card-wrap h2,
.single-post .content-card-wrap h3,
.single-post .content-card-wrap h4,
.single-post .content-card-wrap h5,
.single-post .content-card-wrap h6,
.single-post .content-card-wrap .font-heading {
    color: #1e293b !important;
}

/* Headings in the dark hero/header areas stay white */
.blog-hero h1,
.single-post .entry-hero .entry-title,
.single-post .entry-header .entry-title {
    color: #FFFFFF !important;
}

.blog-hero .glow {
    pointer-events: none;
    z-index: 1;
}

/* 6. Elite Blend - Force Light Prose inside White Card */
.single-post .entry-content.prose-invert,
.single-post .entry-content-wrap .prose-invert {
    color: #334155 !important;
}

.single-post .entry-content.prose-invert h1,
.single-post .entry-content.prose-invert h2,
.single-post .entry-content.prose-invert h3,
.single-post .entry-content.prose-invert h4,
.single-post .entry-content.prose-invert strong {
    color: #0F172A !important;
}

/* 7. Fix for Kadence specific components in Blend mode */
.single-post .entry-hero {
    background: transparent !important;
}

.single-post .entry-hero-container-inner {
    background: transparent !important;
}

/* 8. Related Posts Restoration (Elite Dark) */
.entry-related {
    padding: 4rem 0 !important;
    background-color: var(--bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.elite-related-posts-section .entry-related-inner-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    /* Zero out any inherited alignwide/full margins */
    width: 100% !important;
}

.elite-related-posts-section .entry-related-inner {
    max-width: 1184px !important;
    margin: 0 auto !important;
}

.elite-related-posts-section .entry-related-title,
.elite-related-posts-section .related-posts-elite-title {
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    margin-bottom: 3.5rem !important;
    text-align: left !important;
    font-size: 2.25rem !important;
    letter-spacing: -0.04em;
    max-width: 1184px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.elite-related-posts-section {
    background-color: var(--bg) !important;
    padding: 6rem 0 1rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.elite-related-posts-section .site-container {
    max-width: 1200px !important;
    /* Standard site-container width */
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.entry-related .entry-title a {
    color: #3f4fe2 !important;
    font-weight: 500;
    font-size: 17px !important;
    margin-top: 0.005rem !important;
    /* Pull title closer to image */
    display: inline-block;
    transition: color 0.3s ease;
    line-height: 1.4 !important;
}

/* Hide Repetitive Meta in Related Posts */
.entry-related .entry-meta {
    display: none !important;
}

/* Reposition Slider Arrows to avoid title obstruction */
.entry-related .splide__arrow {
    top: 58% !important;
    /* Move higher up targeting the image area */
    transform: translateY(-50%);
    opacity: 0.8;
}

.entry-related .splide__arrow--prev {
    left: 0.5rem !important;
}

.entry-related .splide__arrow--next {
    right: 0.5rem !important;
}

.entry-related .entry-title a:hover {
    color: var(--primary) !important;
}

.entry-related .entry-content-wrap {
    background: transparent !important;
    padding: 1.25rem !important;
    /* Balanced internal padding */
    margin: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    /* Ensure content is centered */
    width: 100% !important;
    /* Prevent over-edge expansion */
}

.entry-related .entry-header {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 0.75rem 0 !important;
    text-align: center !important;
}

.entry-related .entry-title {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix Related Post Image Cropping */
.entry-related .post-thumbnail {
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.entry-related .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    /* Fix left cropping issue */
    display: block;
}

.entry-related .entry-summary {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* 10. Introduction Card & Hero Optimization */
.intro-card-elite {
    background: #FFFFFF !important;
    padding: 3.5rem 3.5rem 2.1rem 3.5rem !important;
    border-radius: 2.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    text-align: left;
    position: relative;
    z-index: 50;
    margin-bottom: 3.0rem;
    max-width: 840px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .intro-card-elite {
        padding: 2rem 1.5rem !important;
        border-radius: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.intro-badge-wrap {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    animation: psychological-pulse 2.4s infinite ease-in-out;
}

.dot-purple {
    background: #783afb;
    animation-delay: 0s;
}

.dot-green {
    background: #10b981;
    animation-delay: 0.4s;
}

.dot-amber {
    background: #f59e0b;
    animation-delay: 0.8s;
}

@keyframes psychological-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
        filter: blur(0px);
    }

    50% {
        transform: scale(1.6);
        opacity: 1;
        filter: blur(1px);
        box-shadow: 0 0 15px currentColor;
    }
}

.intro-card-elite .text-lg,
.intro-card-elite p {
    color: #334155 !important;
    font-size: 1.2rem !important;
    line-height: 1.8;
    font-family: 'Lora', Georgia, serif;
    font-style: normal;
}

.intro-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .intro-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.footer-item .material-symbols-outlined {
    font-size: 1.1rem;
    color: #10b981;
    /* Success Green for Verified */
}

.footer-item.actionable .material-symbols-outlined {
    color: #f59e0b;
    /* Amber for Insight */
}

.hero-scroll-indicator {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    animation: scroll-float 2s infinite ease-in-out;
}

@keyframes scroll-float {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(12px);
        opacity: 1;
    }
}

.standalone-hero-image {
    position: relative;
    z-index: 5;
}

.content-card-wrap {
    position: relative;
    z-index: 20;
    margin-top: -165px !important;
    background: #FFFFFF !important;
    border-radius: 2.5rem 2.5rem 0 0;
}

.image-premium-wrap {
    position: relative;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.image-premium-wrap:hover {
    transform: translateY(-5px);
}

/* Elite Glint Shimmer */
.image-premium-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: elite-glint 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes elite-glint {
    0% {
        left: -150%;
    }

    20%,
    100% {
        left: 150%;
    }
}

/* Perspective Reveal */
.standalone-hero-image {
    perspective: 1000px;
    z-index: 5;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 11. Elite Scroll Progress Indicator */
.scroll-indicator-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF5B49 0%, #783AFB 100%);
    width: 0;
    z-index: 100;
    transform-origin: left;
    /* Modern Scroll Timeline (Zero JS impact) */
    animation: lingo-scroll-progress auto linear;
    animation-timeline: scroll();
}

@keyframes lingo-scroll-progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Fallback for browsers not supporting scroll-timeline (JS helper in footer if needed) */
@supports not (animation-timeline: scroll()) {
    .scroll-indicator-bar {
        transition: width 0.1s ease-out;
    }
}

/* 12. Elite Breadcrumbs Styling */
.hero-scroll-indicator {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    animation: scroll-float 2s infinite ease-in-out;
}

.elite-breadcrumb-wrap {
    background: linear-gradient(180deg, #f7f9ff, #f5f7fb);
    padding: 0.5rem;
    border-bottom: 0px solid rgba(226, 232, 240, 0.5);
}

.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 3rem 0 3rem;
}

.elite-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 15px !important;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.elite-breadcrumb a {
    color: #69bced !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.elite-breadcrumb a:hover {
    color: var(--primary) !important;
}

.elite-breadcrumb .sep {
    font-size: 12px;
    opacity: 0.7;
    color: #f16334;
}

.elite-breadcrumb .current {
    color: #64748b;
    font-weight: 400;
}

/* 13. Elite Sidebar & Layout Grid */
.content-container.site-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    max-width: 1280px;
    /* Equivalent to max-w-7xl */
}

#primary.has-sidebar {
    width: 100%;
    overflow-x: clip;
    /* Prevent horizontal scroll from alignfull items on Windows */
}

#primary.has-sidebar>.content-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
    max-width: 1184px;
    /* 780 content + 64 gap + 340 sidebar */
}

#primary.no-sidebar .content-container {
    display: block;
    max-width: 840px;
}

.elite-sidebar {
    margin-top: -95px;
    /* Alignment with card pull-up */
    position: relative;
    z-index: 30;
}

.elite-sidebar-inner {
    position: sticky;
    top: 140px;
    /* Space for fixed header */
}

/* 14. Elite Sidebar Widgets */
.elite-sidebar .widget {
    background: #FFFFFF !important;
    border-radius: 1.5rem;
    padding: 0rem;
    margin-bottom: 0rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #1A1A1A !important;
}

.elite-sidebar .widget-title {
    color: #1A1A1A !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.elite-sidebar .widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.elite-sidebar .widget a {
    color: #4A5568 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.elite-sidebar .widget a:hover {
    color: var(--primary) !important;
}

.elite-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elite-sidebar .widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.elite-sidebar .widget ul li:last-child {
    border-bottom: none;
}

/* 15. Alignment Fix for Hero Image */
.standalone-hero-image {
    max-width: 1200px !important;
    margin: 0 auto 3.5rem auto !important;
    padding: 0 1.5rem;
}

#primary.no-sidebar .standalone-hero-image {
    max-width: 1200px;
}

@media (max-width: 1024px) {

    #primary.has-sidebar .content-container,
    #primary.has-sidebar .standalone-hero-image .reveal-on-scroll {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .elite-sidebar {
        margin-top: 2rem;
    }

    .elite-sidebar-inner {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .intro-card-elite {
        padding: 2rem !important;
        border-radius: 1.5rem;
    }

    .intro-card-elite .text-lg,
    .intro-card-elite p {
        font-size: 1rem !important;
    }

    .elite-related-posts-section .site-container,
    .elite-related-posts-section .entry-related-inner {
        max-width: 100% !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    .content-card-wrap,
    .content-card-wrap.elite-page-layout-860 {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .breadcrumb-inner {
        display: none !important;
    }
}