/* Single blog post — ContentZen layout (plugin only) */

body.sellerapp-single-post .progressCounter {
    display: none !important;
}

/* Theme overflow-x-hidden breaks position:sticky — allow visible overflow on single posts */
body.sellerapp-single-post .position-relative.overflow-x-hidden {
    overflow: visible !important;
}

body.sellerapp-single-post footer.footer {
    display: none !important;
}

#sellerapp-single-post-root.sellerapp-single-post-layout {
    background-color: var(--background) !important;
    min-height: 100vh;
}

#sellerapp-single-post-root .sellerapp-reading-progress {
    top: 4rem;
}

body.admin-bar #sellerapp-single-post-root .sellerapp-reading-progress {
    top: calc(4rem + 32px);
}

@media (min-width: 783px) {
    body.admin-bar #sellerapp-single-post-root .sellerapp-reading-progress {
        top: calc(4rem + 32px);
    }
}

#sellerapp-single-post-root .sellerapp-share-btn {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#sellerapp-single-post-root .sellerapp-share-btn:hover {
    background: var(--brand-soft);
    color: var(--accent-foreground);
    border-color: oklch(66% 0.16 165 / 0.3);
}

#sellerapp-single-post-root .sellerapp-single-sidebar {
    position: relative;
    align-self: start !important;
}

@media (min-width: 768px) {
    body.sellerapp-single-post #sellerapp-single-post-root .sellerapp-single-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 240px !important;
        gap: 3rem !important;
        align-items: start !important;
        position: relative !important;
        padding-bottom: 120px !important; /* Generous gap before footer */
    }

    body.sellerapp-single-post #sellerapp-single-post-root .sellerapp-single-sidebar {
        width: 240px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    #sellerapp-single-post-root .sellerapp-single-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

#sellerapp-single-post-root .sellerapp-sidebar-sticky {
    position: relative;
    max-height: none;
    overflow: visible;
}

#sellerapp-single-post-root .sellerapp-sidebar-placeholder {
    width: 100%;
    height: 0;
    pointer-events: none;
}

#sellerapp-single-post-root .sellerapp-toc-sticky {
    position: relative;
    z-index: 20;
}

/* Make TOC container smooth-scroll and add small transitions to mask layout shifts */
#sellerapp-single-post-root .sellerapp-toc-sticky {
    scroll-behavior: smooth;
    transition: top .18s ease, opacity .12s ease, transform .12s ease;
    will-change: top, transform, opacity;
}

#sellerapp-single-post-root .sellerapp-toc-sticky.is-fixed {
    position: fixed;
}

#sellerapp-single-post-root .sellerapp-toc-sticky.is-at-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    width: 100%;
}

#sellerapp-single-post-root .sellerapp-sidebar-placeholder.toc-placeholder {
    width: 100%;
    height: 0;
    pointer-events: none;
}

#sellerapp-single-post-root .sellerapp-toc-link.is-active {
    border-left-color: var(--brand) !important;
    color: var(--brand) !important;
}

#sellerapp-single-post-root .sellerapp-toc-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

/* Tiny custom scrollbar for TOC list */
#sellerapp-single-post-root .sellerapp-toc-list::-webkit-scrollbar {
    width: 4px;
}
#sellerapp-single-post-root .sellerapp-toc-list::-webkit-scrollbar-track {
    background: transparent;
}
#sellerapp-single-post-root .sellerapp-toc-list::-webkit-scrollbar-thumb {
    background-color: var(--line);
    border-radius: 9999px;
}
#sellerapp-single-post-root .sellerapp-toc-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand);
}

/* Prevent any duplicate TOC block from showing inside the article body */
#sellerapp-single-post-root .sellerapp-article-content .sellerapp-toc,
#sellerapp-single-post-root .sellerapp-article-content .sellerapp-toc-sticky,
#sellerapp-single-post-root .sellerapp-article-content .toc,
#sellerapp-single-post-root .sellerapp-article-content .table-of-contents,
#sellerapp-single-post-root .sellerapp-article-content .ez-toc-container,
#sellerapp-single-post-root .sellerapp-article-content .wp-block-table-of-contents {
    display: none !important;
}

#sellerapp-single-post-root .sellerapp-article-content.prose-article a {
    color: var(--brand) !important;
}

#sellerapp-single-post-root .sellerapp-article-content.prose-article a:hover {
    color: var(--accent-foreground) !important;
}

#sellerapp-single-post-root .sellerapp-article-content figure img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--line);
}

#sellerapp-single-post-root .sellerapp-article-content figure {
    margin: 3rem 0;
}

#sellerapp-single-post-root .sellerapp-article-content figcaption {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.75rem;
}

#sellerapp-single-post-root .sellerapp-article-content blockquote {
    border-left: 4px solid var(--brand);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
}

#sellerapp-single-post-root .sellerapp-feedback-box.is-thanks .sellerapp-feedback-btn {
    display: none;
}

#sellerapp-single-post-root .sellerapp-save-article.is-saved {
    background: var(--brand-soft);
    border-color: oklch(66% 0.16 165 / 0.3);
    color: var(--accent-foreground);
}

#sellerapp-single-post-root .sellerapp-copy-link.is-copied {
    background: var(--brand-soft);
    border-color: oklch(66% 0.16 165 / 0.3);
}

#sellerapp-single-post-root .sellerapp-audio-player-wrapper {
    display: inline-block;
    width: 100%;
}

#sellerapp-single-post-root .sellerapp-audio-player {
    display: inline-flex;
    align-items: center;
    border-radius: 1.25rem; /* Modern rounded-2xl look */
    border: 1px solid var(--line);
    background-color: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    gap: 1.25rem;
    width: 80%;
    position: relative;
}

.sellerapp-newsletter-section h2 {
    color: white !important;
    margin: 5px 0 !important;
}

.sellerapp-newsletter-section form input[type=email] {
    padding-left: 15px !important;
}

.sellerapp-related-section a.card-hover {
    text-decoration: none !important
}

[data-theme="dark"] #sellerapp-single-post-root .sellerapp-audio-player {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#sellerapp-single-post-root .sellerapp-audio-player:hover {
    border-color: oklch(66% 0.16 165 / 0.3);
    background-color: var(--surface-2);
}

#sellerapp-single-post-root .sellerapp-audio-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* Increased size to 48px */
    height: 3rem; /* Increased size to 48px */
    border-radius: 0.75rem; /* Modern rounded-xl look */
    background-color: var(--brand);
    color: var(--brand-foreground) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 192, 135, 0.25);
}

#sellerapp-single-post-root .sellerapp-audio-play-btn:hover {
    transform: scale(1.05);
    background-color: oklch(62% 0.16 165);
    box-shadow: 0 6px 16px rgba(0, 192, 135, 0.35);
}

#sellerapp-single-post-root .sellerapp-audio-play-btn:active {
    transform: scale(0.95);
}

#sellerapp-single-post-root .sellerapp-audio-status {
    font-size: 0.85rem; /* Increased text size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    line-height: 1;
}

#sellerapp-single-post-root .sellerapp-audio-progress-container {
    width: 10rem; /* Increased width from 7rem to 10rem */
    height: 6px; /* Increased thickness */
    background-color: var(--line);
    border-radius: 9999px;
    margin-top: 8px; /* Increased margin */
    overflow: hidden;
    position: relative;
}

#sellerapp-single-post-root .sellerapp-audio-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--brand);
    border-radius: 9999px;
    transition: width 0.1s linear;
}

#sellerapp-single-post-root .sellerapp-audio-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px; /* Increased height */
    width: 32px; /* Increased width */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sellerapp-single-post-root .sellerapp-audio-player.is-playing .sellerapp-audio-equalizer {
    opacity: 1;
}

#sellerapp-single-post-root .eq-bar {
    width: 4px; /* Thicker bars */
    background-color: var(--brand);
    border-radius: 9999px;
    height: 4px;
    transition: height 0.15s ease;
}

@keyframes eq-dance-1 {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}
@keyframes eq-dance-2 {
    0%, 100% { height: 10px; }
    50% { height: 4px; }
}
@keyframes eq-dance-3 {
    0%, 100% { height: 16px; }
    50% { height: 8px; }
}
@keyframes eq-dance-4 {
    0%, 100% { height: 8px; }
    50% { height: 15px; }
}

#sellerapp-single-post-root .sellerapp-audio-player.is-playing .eq-bar:nth-child(1) {
    animation: eq-dance-1 0.8s ease-in-out infinite;
}
#sellerapp-single-post-root .sellerapp-audio-player.is-playing .eq-bar:nth-child(2) {
    animation: eq-dance-2 0.7s ease-in-out infinite;
}
#sellerapp-single-post-root .sellerapp-audio-player.is-playing .eq-bar:nth-child(3) {
    animation: eq-dance-3 0.9s ease-in-out infinite;
}
#sellerapp-single-post-root .sellerapp-audio-player.is-playing .eq-bar:nth-child(4) {
    animation: eq-dance-4 0.6s ease-in-out infinite;
}

#sellerapp-single-post-root .sellerapp-audio-speed-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 6px 12px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--surface-2);
    position: absolute;
    right: 20px;
}

#sellerapp-single-post-root .sellerapp-audio-speed-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
    background-color: var(--brand-soft);
}

#sellerapp-single-post-root .sellerapp-related-section a {
    color: inherit !important;
    text-decoration: none !important;
}

#sellerapp-single-post-root .sellerapp-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
}

/* Prose links inside article — override global inherit */
#sellerapp-single-post-root.sellerapp-sections-layout .sellerapp-article-content blockquote p {
    font-family: 'CameraPlainVariable', "Inter", system-ui, sans-serif !important;
    font-size: 1.5rem;
    line-height: 1.375;
    color: var(--ink);
}

@media (min-width: 768px) {
    #sellerapp-single-post-root.sellerapp-sections-layout .sellerapp-article-content blockquote p {
        font-size: 1.875rem;
    }
}

.sellerapp-sidebar-cta {
    margin: 20px 0;
}



/* Feedback Count display inside buttons */
#sellerapp-single-post-root .sellerapp-feedback-count {
    font-family: monospace;
    font-weight: 600;
}