/* =Single Post Experience (weDevs Style Overhaul)
-------------------------------------------------------------- */

/* ── Reading Progress Bar ───────────────────────────────── */
.svx-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: transparent;
}
#svx-progress-bar {
    height: 100%;
    background: #085df2;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(8, 93, 242, 0.5);
}

/* ── Floating Social Share ──────────────────────────────── */
.svx-floating-share-wrapper {
    position: relative;
    width: 0;
    height: 0;
}

.svx-floating-share {
    position: absolute;
    left: -100px;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 1200px) {
    .svx-floating-share {
        display: none !important; /* Hide on smaller screens to avoid overlap */
    }
}

.svx-share-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.svx-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.svx-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.svx-share-btn.twitter:hover { background: #000; border-color: #000; }
.svx-share-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.svx-share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.svx-share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.svx-share-btn.pinterest:hover { background: #bd081c; border-color: #bd081c; }
.svx-share-btn.reddit:hover { background: #ff4500; border-color: #ff4500; }
.svx-share-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.svx-share-btn.pocket:hover { background: #ee4056; border-color: #ee4056; }

.svx-extra-shares {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.svx-floating-share.is-expanded .svx-extra-shares {
    max-height: 500px;
    margin-top: 12px;
    opacity: 1;
    pointer-events: auto;
}

.svx-share-toggle {
    margin-top: 8px;
    cursor: pointer;
    background: #f8fafc !important;
}

.svx-floating-share.is-expanded #svx-share-toggle svg {
    transform: rotate(180deg);
}

/* ── Content Area & Typography ───────────────────────────── */
.svx-single-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: #334155;
    letter-spacing: -0.011em;
}

.svx-single-content > * + * { margin-top: 2rem; }

/* ── Headings ─────────────────────────────────────────── */
.svx-single-content h2,
.svx-single-content h3,
.svx-single-content h4 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 4rem !important; /* Increased for better separation */
    margin-bottom: 1.5rem !important;
}

.svx-single-content h2 { 
    font-size: 2rem; 
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
.svx-single-content h3 { font-size: 1.625rem; }

/* ── Paragraphs & Emphasis ────────────────────────────── */
.svx-single-content p {
    margin-bottom: 1.8rem !important;
}

/* "Step" Highlight Pattern */
.svx-single-content p > strong:first-child:contains("Step") {
    display: block;
    font-size: 1.25rem;
    color: #085df2;
    margin-bottom: 0.5rem;
}

.comment-form-cookies-consent {
    margin-bottom: 25px !important;
    display: block;
}

.comment-form-cookies-consent input {
    margin-right: 10px;
}

#reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ── Blockquote ───────────────────────────────────────── */
.svx-single-content blockquote {
    margin: 3rem 0 !important;
    padding: 2rem 2.5rem;
    background: #f8fafc;
    border-left: 6px solid #085df2;
    border-radius: 0 16px 16px 0;
    font-size: 1.375rem;
    font-style: italic;
    color: #1e293b;
    line-height: 1.6;
}

/* ── Images & Figures ─────────────────────────────────── */
.svx-single-content .wp-block-image,
.svx-single-content figure {
    margin: 3.5rem 0 !important;
    text-align: center;
}

.svx-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.svx-single-content figcaption {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 1.25rem;
    font-style: italic;
}

/* ── Tables ───────────────────────────────────────────── */
.svx-single-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 3rem 0 !important;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.svx-single-content th {
    background: #f8fafc;
    padding: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.svx-single-content td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.svx-single-content tr:last-child td { border-bottom: none; }

/* ── Lists ────────────────────────────────────────────── */
.svx-single-content ul,
.svx-single-content ol {
    padding-left: 2rem;
    margin-bottom: 2rem !important;
}

.svx-single-content li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    color: #475569;
}

.svx-single-content ul { 
    list-style: disc; 
}

.svx-single-content ul li::marker {
    color: #94a3b8; /* Subtle gray bullets matching weDevs */
}

.svx-single-content ol { 
    list-style: decimal; 
}

.svx-single-content ol li::marker {
    color: #0f172a;
    font-weight: 600;
}
