/* SEO Pro+ Frontend Styles */

/* ==========================================
   INTERNAL LINK BLOCKQUOTE (auto-inserted)
   ========================================== */
blockquote.seopp-internal-link {
    border-left: 4px solid currentColor;
    background: transparent;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 2px;
    opacity: 0.85;
}

blockquote.seopp-internal-link p {
    margin: 4px 0;
}

blockquote.seopp-internal-link p:first-child {
    font-weight: 600;
}

/* ==========================================
   READING TIME
   ========================================== */
.seopp-reading-time-meta {
    --seopp-rt-text: #f4f4f5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--seopp-rt-text);
    line-height: 1.4;
}

.seopp-reading-time-meta {
    margin-left: 8px;
}

.seopp-reading-time-separator {
    margin: 0 8px;
    color: #999;
}

.reading-time-icon {
    margin-right: 2px;
}

/* ==========================================
   AUTHOR BIO (isolated scope)
   ========================================== */
.seopp-author-bio {
    --seopp-ab-bg: #111111;
    --seopp-ab-panel: #1a1a1a;
    --seopp-ab-border: #000000;
    --seopp-ab-text: #f5f5f5;
    --seopp-ab-muted: #c7c7c7;
    --seopp-ab-accent: #ff8a80;
    --seopp-ab-shadow: #000000;
    margin: 40px 0;
    padding: 24px;
    background: var(--seopp-ab-bg);
    border: 3px solid var(--seopp-ab-border);
    box-shadow: 10px 10px 0 var(--seopp-ab-shadow);
    color: var(--seopp-ab-text);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    clear: both;
    box-sizing: border-box;
}

.seopp-author-bio,
.seopp-author-bio * {
    box-sizing: border-box;
}

.seopp-author-bio__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.seopp-author-bio__item + .seopp-author-bio__item {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

/* Co-author badge */
.seopp-author-bio__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    margin-bottom: 6px;
    border: 2px solid var(--seopp-ab-border);
    background: var(--seopp-ab-accent);
    color: #111;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.seopp-author-bio__avatar {
    flex-shrink: 0;
}

.seopp-author-bio__avatar img {
    display: block;
    width: auto;
    height: auto;
    border: 3px solid var(--seopp-ab-border);
    background: #fff;
}

.seopp-author-bio--avatar-circle .seopp-author-bio__avatar img {
    border-radius: 999px;
}

.seopp-author-bio--avatar-rounded .seopp-author-bio__avatar img {
    border-radius: 20px;
}

.seopp-author-bio--avatar-square .seopp-author-bio__avatar img {
    border-radius: 0;
}

.seopp-author-bio__content {
    min-width: 0;
}

.seopp-author-bio__header {
    margin-bottom: 10px;
}

.seopp-author-bio__name {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--seopp-ab-text);
    letter-spacing: -0.02em;
    display: block;
}

.seopp-author-bio__job-title {
    margin: 6px 0 0 0;
    color: var(--seopp-ab-accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seopp-author-bio__description {
    color: var(--seopp-ab-text);
    font-size: 15px;
    line-height: 1.75;
}

.seopp-author-bio__description p {
    margin: 0 0 12px 0;
}

.seopp-author-bio__description p:last-child {
    margin-bottom: 0;
}

.seopp-author-bio__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.seopp-author-bio__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 2px solid var(--seopp-ab-border);
    background: var(--seopp-ab-panel);
    color: var(--seopp-ab-text) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 4px 4px 0 var(--seopp-ab-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.seopp-author-bio__social-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--seopp-ab-shadow);
    opacity: 0.98;
}

.seopp-author-bio__social-link--manual {
    border-style: dotted;
}

.seopp-author-bio__posts-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 0 14px;
    border: 3px solid var(--seopp-ab-border);
    background: var(--seopp-ab-posts-link-bg, var(--seopp-ab-accent));
    color: #111 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 5px 5px 0 var(--seopp-ab-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seopp-author-bio__posts-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--seopp-ab-shadow);
}

/* --- Style: light --- */
.seopp-author-bio--style-light {
    --seopp-ab-bg: #f5f5f5;
    --seopp-ab-panel: #ffffff;
    --seopp-ab-border: #111111;
    --seopp-ab-text: #111111;
    --seopp-ab-muted: #4b5563;
    --seopp-ab-accent: #ff6b6b;
}

.seopp-author-bio--style-light .seopp-author-bio__description {
    color: #222;
}

.seopp-author-bio--style-light .seopp-author-bio__social-link {
    background: #ffffff;
}

/* --- Style: outlined --- */
.seopp-author-bio--style-outlined {
    --seopp-ab-bg: #ffffff;
    --seopp-ab-panel: #ffffff;
    --seopp-ab-border: #111111;
    --seopp-ab-text: #111111;
    --seopp-ab-muted: #4b5563;
    --seopp-ab-accent: #ff6b6b;
    box-shadow: 12px 12px 0 var(--seopp-ab-shadow);
}

/* --- Layout: stacked / compact --- */
.seopp-author-bio--layout-stacked .seopp-author-bio__item,
.seopp-author-bio--layout-compact .seopp-author-bio__item {
    grid-template-columns: 1fr;
}

.seopp-author-bio--layout-stacked .seopp-author-bio__avatar,
.seopp-author-bio--layout-compact .seopp-author-bio__avatar {
    justify-self: start;
}

.seopp-author-bio--layout-stacked.seopp-author-bio--align-center .seopp-author-bio__avatar,
.seopp-author-bio--layout-compact.seopp-author-bio--align-center .seopp-author-bio__avatar,
.seopp-author-bio--layout-stacked.seopp-author-bio--align-center .seopp-author-bio__content,
.seopp-author-bio--layout-compact.seopp-author-bio--align-center .seopp-author-bio__content {
    justify-self: center;
    text-align: center;
}

.seopp-author-bio--layout-compact .seopp-author-bio__description {
    font-size: 14px;
    line-height: 1.65;
}

/* --- Align: center --- */
.seopp-author-bio--align-center .seopp-author-bio__item {
    justify-items: center;
    text-align: center;
}

.seopp-author-bio--align-center .seopp-author-bio__social {
    justify-content: center;
}

/* --- Align: justify --- */
.seopp-author-bio--align-justify .seopp-author-bio__description {
    text-align: justify;
}

.seopp-author-bio--align-justify .seopp-author-bio__description p {
    text-align: justify;
}

.seopp-author-bio--align-justify .seopp-author-bio__item {
    justify-items: stretch;
}

/* --- Posts link with custom color --- */
.seopp-author-bio__posts-link[style*="--seopp-ab-posts-link-bg"] {
    background: var(--seopp-ab-posts-link-bg) !important;
}

/* ==========================================
   TABLE OF CONTENTS (isolated scope)
   ========================================== */
.seopp-toc {
    --seopp-toc-bg: #0f0f10;
    --seopp-toc-panel: #17171a;
    --seopp-toc-border: #000;
    --seopp-toc-text: #f4f4f5;
    --seopp-toc-accent: #ff6b6b;
    --seopp-toc-link: #e2e2e5;
    --seopp-toc-link-hover: #ff6b6b;
    --seopp-toc-shadow: #000;
    margin: 30px 0;
    padding: 24px;
    background: var(--seopp-toc-bg);
    border: 3px solid var(--seopp-toc-border);
    box-shadow: 10px 10px 0 var(--seopp-toc-shadow);
    color: var(--seopp-toc-text);
    box-sizing: border-box;
    clear: both;
}

.seopp-toc,
.seopp-toc * {
    box-sizing: border-box;
}

/* --- Header: icon + title + toggle --- */
.seopp-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--seopp-toc-border);
    gap: 12px;
}

.seopp-toc__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.seopp-toc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--seopp-toc-accent);
}

.seopp-toc__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.seopp-toc__title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--seopp-toc-text);
    letter-spacing: -0.02em;
    text-transform: none;
}

/* --- Toggle button --- */
.seopp-toc__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 2px solid var(--seopp-toc-border);
    background: var(--seopp-toc-panel);
    color: var(--seopp-toc-link);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.seopp-toc__toggle:hover {
    color: var(--seopp-toc-link-hover);
    background: var(--seopp-toc-panel);
}

.seopp-toc__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.2s ease;
}

.seopp-toc__toggle-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Collapsed state */
.seopp-toc--collapsed .seopp-toc__toggle-icon {
    transform: rotate(180deg);
}

.seopp-toc--collapsed .seopp-toc__body {
    display: none;
}

/* --- Body / list --- */
.seopp-toc__body {
    transition: opacity 0.2s ease;
}

.seopp-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seopp-toc__item {
    margin: 0;
    padding: 0;
    position: relative;
}

.seopp-toc__item + .seopp-toc__item {
    margin-top: 8px;
}

/* --- Number --- */
.seopp-toc__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 22px;
    font-size: 12px;
    font-weight: 900;
    color: var(--seopp-toc-accent);
    line-height: 1;
}

.seopp-toc__link {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 10px;
    color: var(--seopp-toc-link);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.seopp-toc__link:hover {
    color: var(--seopp-toc-link-hover);
    background: var(--seopp-toc-panel);
    border-color: var(--seopp-toc-border);
    transform: translateX(4px);
}

.seopp-toc__link:focus-visible {
    outline: 2px solid var(--seopp-toc-accent);
    outline-offset: 2px;
}

/* Level indentation */
.seopp-toc__item--level-3 .seopp-toc__link {
    margin-left: 20px;
    font-size: 14px;
}

.seopp-toc__item--level-4 .seopp-toc__link {
    margin-left: 40px;
    font-size: 14px;
}

.seopp-toc__item--level-5 .seopp-toc__link {
    margin-left: 60px;
    font-size: 13px;
}

.seopp-toc__item--level-6 .seopp-toc__link {
    margin-left: 80px;
    font-size: 13px;
}

.seopp-toc__item--level-7 .seopp-toc__link {
    margin-left: 96px;
    font-size: 13px;
}

.seopp-toc__item--level-8 .seopp-toc__link {
    margin-left: 108px;
    font-size: 12px;
}

.seopp-toc__item--level-9 .seopp-toc__link {
    margin-left: 116px;
    font-size: 12px;
}

/* --- TOC style: light --- */
.seopp-toc--style-light {
    --seopp-toc-bg: #f5f5f5;
    --seopp-toc-panel: #ffffff;
    --seopp-toc-border: #111111;
    --seopp-toc-text: #111111;
    --seopp-toc-accent: #ff6b6b;
    --seopp-toc-link: #333333;
    --seopp-toc-link-hover: #ff6b6b;
    --seopp-toc-shadow: #111111;
}

.seopp-toc--style-light .seopp-toc__toggle {
    background: #ffffff;
}

/* ==========================================
   RELATED POSTS (isolated scope)
   ========================================== */
.seopp-related-posts {
    --seopp-rp-bg: #0f0f10;
    --seopp-rp-panel: #17171a;
    --seopp-rp-panel-2: #1f1f24;
    --seopp-rp-border: #000;
    --seopp-rp-text: #f4f4f5;
    --seopp-rp-muted: #a1a1aa;
    --seopp-rp-accent: #8b5cf6;
    --seopp-rp-columns: 2;
    --seopp-rp-max-width: 100%;
    margin: 40px auto;
    padding: 24px;
    width: 100%;
    max-width: var(--seopp-rp-max-width);
    box-sizing: border-box;
    background: var(--seopp-rp-bg);
    border: 3px solid var(--seopp-rp-border);
    box-shadow: 10px 10px 0 var(--seopp-rp-border);
    color: var(--seopp-rp-text);
}

.seopp-related-posts__inner {
    max-width: 100%;
}

.seopp-related-posts__title {
    margin: 0 0 18px 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--seopp-rp-text);
    letter-spacing: -0.02em;
    text-transform: none;
}

.seopp-related-posts__title--h2 {
    font-size: 32px;
}

.seopp-related-posts__title--h3 {
    font-size: 26px;
}

.seopp-related-posts__title--h4 {
    font-size: 20px;
}

.seopp-related-posts__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(var(--seopp-rp-columns, 2), minmax(0, 1fr));
}

.seopp-related-posts--columns-1 .seopp-related-posts__grid {
    grid-template-columns: 1fr;
}

.seopp-related-posts--columns-3 .seopp-related-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seopp-related-posts--columns-4 .seopp-related-posts__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seopp-related-posts--layout-list .seopp-related-posts__grid {
    grid-template-columns: 1fr;
}

.seopp-related-posts--layout-masonry .seopp-related-posts__grid {
    column-count: var(--seopp-rp-columns, 2);
    column-gap: 22px;
    display: block;
}

.seopp-related-posts--layout-masonry .seopp-related-posts__card {
    display: inline-block;
    width: 100%;
    margin: 0 0 22px;
    break-inside: avoid;
}

.seopp-related-posts__card {
    background: var(--seopp-rp-panel);
    border: 3px solid var(--seopp-rp-border);
    box-shadow: 7px 7px 0 var(--seopp-rp-border);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seopp-related-posts__card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--seopp-rp-border);
}

.seopp-related-posts__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #23232a;
    text-decoration: none;
}

.seopp-related-posts__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.04)),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.06) 0,
            rgba(255, 255, 255, 0.06) 14px,
            rgba(0, 0, 0, 0.12) 14px,
            rgba(0, 0, 0, 0.12) 28px
        );
}

.seopp-related-posts__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.seopp-related-posts__card:hover .seopp-related-posts__image {
    transform: scale(1.04);
}

.seopp-related-posts__content {
    padding: 16px 16px 18px;
}

.seopp-related-posts__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.seopp-related-posts__category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 2px solid var(--seopp-rp-border);
    background: #2a2a31;
    color: var(--seopp-rp-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seopp-related-posts__category:hover {
    background: var(--seopp-rp-accent);
    color: #fff;
}

.seopp-related-posts__post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}

.seopp-related-posts__post-title a {
    color: var(--seopp-rp-accent);
    text-decoration: none;
}

.seopp-related-posts__post-title a:hover {
    text-decoration: underline;
}

.seopp-related-posts__meta {
    margin-bottom: 10px;
    color: var(--seopp-rp-muted);
    font-size: 13px;
    font-weight: 600;
}

.seopp-related-posts__excerpt {
    margin-bottom: 14px;
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.6;
}

.seopp-related-posts__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 2px solid var(--seopp-rp-border);
    background: var(--seopp-rp-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--seopp-rp-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seopp-related-posts__read-more:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--seopp-rp-border);
}

/* --- RP style: light --- */
.seopp-related-posts--style-light {
    --seopp-rp-bg: #f3f4f6;
    --seopp-rp-panel: #ffffff;
    --seopp-rp-panel-2: #ffffff;
    --seopp-rp-text: #111827;
    --seopp-rp-muted: #6b7280;
    --seopp-rp-accent: #6d28d9;
}

.seopp-related-posts--style-light .seopp-related-posts__category {
    background: #ffffff;
}

.seopp-related-posts--style-light .seopp-related-posts__excerpt {
    color: #374151;
}

/* --- RP style: bordered --- */
.seopp-related-posts--style-bordered {
    --seopp-rp-bg: #ffffff;
    --seopp-rp-panel: #ffffff;
    --seopp-rp-panel-2: #ffffff;
    --seopp-rp-text: #111827;
    --seopp-rp-muted: #6b7280;
    --seopp-rp-accent: #8b5cf6;
    border-style: dashed;
    box-shadow: 12px 12px 0 var(--seopp-rp-border);
}

/* --- RP width variants --- */
.seopp-related-posts--width-boxed {
    max-width: 920px;
}

.seopp-related-posts--width-wide {
    max-width: 1180px;
}

.seopp-related-posts--width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* --- RP list layout --- */
.seopp-related-posts--layout-list .seopp-related-posts__card {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
}

.seopp-related-posts--layout-list .seopp-related-posts__thumb {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
}

.seopp-related-posts--layout-list .seopp-related-posts__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================
   SOCIAL SHARE (isolated scope)
   ========================================== */
.seopp-social-share {
    --seopp-ss-bg: #0f0f10;
    --seopp-ss-panel: #17171a;
    --seopp-ss-text: #f4f4f5;
    --seopp-ss-muted: #a1a1aa;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
    margin: 30px 0;
    padding: 24px;
    background: var(--seopp-ss-bg);
    border: 3px solid var(--seopp-ss-border);
    box-shadow: 10px 10px 0 var(--seopp-ss-shadow);
    box-sizing: border-box;
    text-align: left;
    color: var(--seopp-ss-text);
}

.seopp-social-share .social-share-title {
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--seopp-ss-text);
    letter-spacing: -0.02em;
}

.seopp-social-share .social-share-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.social-share-button {
    --social-share-accent: #333333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: var(--social-share-accent);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    will-change: transform;
    max-width: 100%;
}

.social-share-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
    opacity: 0.98;
}

.social-share-button:focus,
.social-share-button:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

.social-share-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    line-height: 0;
}

.social-share-button-icon svg {
    display: block;
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 auto;
}

.social-share-button-label {
    font-size: 13px;
    white-space: nowrap;
}

/* --- SS size variants --- */
.seopp-social-share--size-sm .social-share-button {
    min-height: 34px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 10px;
}

.seopp-social-share--size-sm .social-share-button-icon {
    font-size: 16px;
}

.seopp-social-share--size-sm .social-share-button-label {
    font-size: 12px;
}

.seopp-social-share--size-lg .social-share-button {
    min-height: 46px;
    padding: 0 18px;
    gap: 10px;
    border-radius: 14px;
}

.seopp-social-share--size-lg .social-share-button-icon {
    font-size: 20px;
}

.seopp-social-share--size-lg .social-share-button-label {
    font-size: 14px;
}

/* --- SS layout variants --- */
.seopp-social-share--layout-angled .social-share-button {
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    padding-left: 18px;
    padding-right: 20px;
    border-radius: 0;
}

.seopp-social-share--layout-pill .social-share-button {
    border-radius: 999px;
}

.seopp-social-share--layout-square .social-share-button {
    border-radius: 0;
}

/* --- SS style variants --- */
.seopp-social-share--style-brand .social-share-button {
    color: #ffffff !important;
}

.seopp-social-share--style-solid .social-share-button {
    background: #111111 !important;
}

.seopp-social-share--style-light {
    --seopp-ss-bg: #f8fafc;
    --seopp-ss-text: #111111;
    --seopp-ss-border: rgba(17, 17, 17, 0.08);
    --seopp-ss-shadow: rgba(17, 17, 17, 0.08);
}

.seopp-social-share--style-light .social-share-button {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: 0 5px 0 rgba(17, 17, 17, 0.08);
}

.seopp-social-share--style-light .social-share-button:hover {
    opacity: 1;
}

.seopp-social-share--style-light .social-share-button .social-share-button-icon svg {
    fill: currentColor;
}

.seopp-social-share--style-outline .social-share-button {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: currentColor;
    box-shadow: 0 4px 0 rgba(17, 17, 17, 0.08);
}

.seopp-social-share--style-outline .social-share-button:hover {
    background: var(--social-share-accent) !important;
    color: #ffffff !important;
}

/* --- SS block style variants --- */
.seopp-social-share--block-light {
    --seopp-ss-bg: #f3f4f6;
    --seopp-ss-text: #111827;
    --seopp-ss-muted: #6b7280;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
}

.seopp-social-share--block-light .social-share-button {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.15);
}

.seopp-social-share--block-light .social-share-button:hover {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.15);
}

.seopp-social-share--block-bordered {
    --seopp-ss-bg: #ffffff;
    --seopp-ss-text: #111827;
    --seopp-ss-muted: #6b7280;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
    border-style: dashed;
}

.seopp-social-share--block-bordered .social-share-button {
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
    color: #111111 !important;
}

.seopp-social-share--block-bordered .social-share-button:hover {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.18);
}

/* --- SS Network accent colours --- */
.social-facebook       { --social-share-accent: #1877f2; }
.social-twitter        { --social-share-accent: #111111; }
.social-vk             { --social-share-accent: #0077ff; }
.social-telegram       { --social-share-accent: #0088cc; }
.social-whatsapp       { --social-share-accent: #25d366; }
.social-viber          { --social-share-accent: #665cac; }
.social-odnoklassniki  { --social-share-accent: #ee8208; }
.social-linkedin       { --social-share-accent: #0a66c2; }
.social-pinterest      { --social-share-accent: #e60023; }
.social-reddit         { --social-share-accent: #ff4500; }
.social-email          { --social-share-accent: #6b7280; }
.social-max            { --social-share-accent: #6c3dd0; }
.social-tiktok         { --social-share-accent: #000000; }
.social-kakaotalk      { --social-share-accent: #d4c100; }
.social-bluesky        { --social-share-accent: #0285ff; }
.social-threads        { --social-share-accent: #000000; }

/* --- SS Neve theme adaptation --- */
.theme-neve .seopp-social-share {
    --seopp-ss-bg: var(--nv-site-bg, #ffffff);
    --seopp-ss-text: var(--nv-text-color, #111111);
    --seopp-ss-border: rgba(17, 17, 17, 0.08);
    --seopp-ss-shadow: rgba(17, 17, 17, 0.08);
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.theme-neve .seopp-social-share .social-share-title {
    font-size: 15px;
    font-weight: 700;
}

.theme-neve .social-share-button {
    border-radius: 11px;
    box-shadow: 0 5px 0 rgba(17, 17, 17, 0.12);
}

.theme-neve .social-share-button:hover {
    box-shadow: 0 7px 0 rgba(17, 17, 17, 0.12);
}

.theme-neve .seopp-social-share--layout-angled .social-share-button {
    clip-path: none;
}

/* ==========================================
   SOCIAL SUBSCRIBE (isolated scope)
   ========================================== */
.seopp-social-subscribe {
    --seopp-ss-bg: #0f0f10;
    --seopp-ss-panel: #17171a;
    --seopp-ss-text: #f4f4f5;
    --seopp-ss-muted: #a1a1aa;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
    --seopp-ss-accent: #0088cc;
    margin: 30px 0;
    padding: 24px;
    background: var(--seopp-ss-bg);
    border: 3px solid var(--seopp-ss-border);
    box-shadow: 10px 10px 0 var(--seopp-ss-shadow);
    box-sizing: border-box;
    text-align: left;
    color: var(--seopp-ss-text);
}

.seopp-social-subscribe .social-subscribe-title {
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--seopp-ss-text);
    letter-spacing: -0.02em;
}

.social-subscribe-channels {
    display: flex;
    gap: 12px;
}

.social-subscribe-channels--vertical {
    flex-direction: column;
}

.social-subscribe-channels--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.social-subscribe-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    background: var(--seopp-ss-panel);
    color: var(--seopp-ss-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    box-shadow: 5px 5px 0 var(--seopp-ss-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    will-change: transform;
    max-width: 100%;
    box-sizing: border-box;
}

.social-subscribe-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--seopp-ss-shadow);
    background: var(--social-subscribe-accent, var(--seopp-ss-accent));
    border-color: var(--social-subscribe-accent, var(--seopp-ss-accent));
}

.social-subscribe-button:focus,
.social-subscribe-button:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

.social-subscribe-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 0;
}

.social-subscribe-button-icon svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 auto;
}

.social-subscribe-button-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.social-subscribe-button-name {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--seopp-ss-text);
}

.social-subscribe-button-description {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--seopp-ss-muted);
}

.social-subscribe-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--social-subscribe-accent, var(--seopp-ss-accent));
    transition: transform 0.15s ease;
}

.social-subscribe-button:hover .social-subscribe-button-arrow {
    transform: translateX(3px);
    color: #ffffff;
}

/* --- SS size variants --- */
.seopp-social-subscribe--size-sm .social-subscribe-button {
    min-height: 40px;
    padding: 8px 14px;
    gap: 10px;
}

.seopp-social-subscribe--size-sm .social-subscribe-button-icon {
    width: 20px;
    height: 20px;
}

.seopp-social-subscribe--size-sm .social-subscribe-button-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.seopp-social-subscribe--size-sm .social-subscribe-button-name {
    font-size: 13px;
}

.seopp-social-subscribe--size-sm .social-subscribe-button-description {
    font-size: 11px;
}

.seopp-social-subscribe--size-sm .social-subscribe-button-arrow {
    font-size: 16px;
}

.seopp-social-subscribe--size-lg .social-subscribe-button {
    min-height: 56px;
    padding: 14px 20px;
    gap: 14px;
}

.seopp-social-subscribe--size-lg .social-subscribe-button-icon {
    width: 28px;
    height: 28px;
}

.seopp-social-subscribe--size-lg .social-subscribe-button-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.seopp-social-subscribe--size-lg .social-subscribe-button-name {
    font-size: 16px;
}

.seopp-social-subscribe--size-lg .social-subscribe-button-description {
    font-size: 13px;
}

.seopp-social-subscribe--size-lg .social-subscribe-button-arrow {
    font-size: 20px;
}

/* --- SS layout: horizontal --- */
.seopp-social-subscribe--layout-horizontal .social-subscribe-button {
    flex: 1;
    min-width: 220px;
}

/* --- SS style: light --- */
.seopp-social-subscribe--style-light {
    --seopp-ss-bg: #f3f4f6;
    --seopp-ss-panel: #ffffff;
    --seopp-ss-text: #111827;
    --seopp-ss-muted: #6b7280;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
}

.seopp-social-subscribe--style-light .social-subscribe-button {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.15);
}

.seopp-social-subscribe--style-light .social-subscribe-button:hover {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.seopp-social-subscribe--style-light .social-subscribe-button:hover .social-subscribe-button-name,
.seopp-social-subscribe--style-light .social-subscribe-button:hover .social-subscribe-button-description {
    color: #ffffff;
}

/* --- SS style: bordered --- */
.seopp-social-subscribe--style-bordered {
    --seopp-ss-bg: #ffffff;
    --seopp-ss-panel: #ffffff;
    --seopp-ss-text: #111827;
    --seopp-ss-muted: #6b7280;
    --seopp-ss-border: #000;
    --seopp-ss-shadow: #000;
    border-style: dashed;
    box-shadow: 12px 12px 0 var(--seopp-ss-shadow);
}

.seopp-social-subscribe--style-bordered .social-subscribe-button {
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
    color: #111111 !important;
}

.seopp-social-subscribe--style-bordered .social-subscribe-button:hover {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
}

.seopp-social-subscribe--style-bordered .social-subscribe-button:hover .social-subscribe-button-name,
.seopp-social-subscribe--style-bordered .social-subscribe-button:hover .social-subscribe-button-description {
    color: #ffffff;
}

/* --- SS Neve theme adaptation --- */
.theme-neve .seopp-social-subscribe {
    --seopp-ss-bg: var(--nv-site-bg, #ffffff);
    --seopp-ss-text: var(--nv-text-color, #111111);
    --seopp-ss-border: rgba(17, 17, 17, 0.08);
    --seopp-ss-shadow: rgba(17, 17, 17, 0.08);
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.theme-neve .seopp-social-subscribe .social-subscribe-title {
    font-size: 15px;
    font-weight: 700;
}

.theme-neve .social-subscribe-button {
    border-radius: 11px;
    box-shadow: 0 5px 0 rgba(17, 17, 17, 0.12);
}

.theme-neve .social-subscribe-button:hover {
    box-shadow: 0 7px 0 rgba(17, 17, 17, 0.12);
}

/* --- SS Network accent colours --- */
.social-subscribe-button--telegram { --social-subscribe-accent: #0088cc; }
.social-subscribe-button--vk { --social-subscribe-accent: #0077ff; }
.social-subscribe-button--facebook { --social-subscribe-accent: #1877f2; }
.social-subscribe-button--twitter { --social-subscribe-accent: #000000; }
.social-subscribe-button--instagram { --social-subscribe-accent: #e4405f; }
.social-subscribe-button--whatsapp { --social-subscribe-accent: #25d366; }
.social-subscribe-button--youtube { --social-subscribe-accent: #ff0000; }
.social-subscribe-button--tiktok { --social-subscribe-accent: #000000; }
.social-subscribe-button--pinterest { --social-subscribe-accent: #e60023; }
.social-subscribe-button--soundcloud { --social-subscribe-accent: #ff7700; }
.social-subscribe-button--reddit { --social-subscribe-accent: #ff4500; }
.social-subscribe-button--bluesky { --social-subscribe-accent: #0285ff; }
.social-subscribe-button--threads { --social-subscribe-accent: #000000; }
.social-subscribe-button--max { --social-subscribe-accent: #6c3dd0; }
.social-subscribe-button--snapchat { --social-subscribe-accent: #fffc00; }


/* ==========================================
   NEVE OVERRIDES (scoped)
   ========================================== */
.theme-neve .seopp-author-bio {
    background: var(--nv-site-bg, #111111);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.35);
    padding: 28px;
}

.theme-neve .seopp-author-bio__item {
    align-items: center;
    gap: 20px;
}

.theme-neve .seopp-author-bio__content {
    min-width: 0;
}

.theme-neve .seopp-author-bio__header {
    margin-bottom: 12px;
}

.theme-neve .seopp-author-bio__name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.theme-neve .seopp-author-bio__description {
    font-size: 16px;
    line-height: 1.7;
}

.theme-neve .seopp-author-bio__posts-link {
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.theme-neve .seopp-author-bio__social-link {
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* ==========================================
   YOUTUBE LAZY LOAD (isolated scope)
   ========================================== */
.seopp-youtube-lazy {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.seopp-youtube-lazy__aspect {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.seopp-youtube-lazy__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

.seopp-youtube-lazy__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.25s ease;
    z-index: 2;
    outline: none;
}

.seopp-youtube-lazy__overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.seopp-youtube-lazy__overlay:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.seopp-youtube-lazy__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}

.seopp-youtube-lazy__overlay:hover .seopp-youtube-lazy__play {
    transform: scale(1.08);
    background: #ff0000;
}

.seopp-youtube-lazy__play svg {
    display: block;
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.seopp-youtube-lazy__hint {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    line-height: 1.3;
    padding: 0 16px;
}

/* Loaded state — iframe fills the container */
.seopp-youtube-lazy--loaded {
    position: relative;
    width: 100%;
    padding: 0;
    height: auto;
    aspect-ratio: 16 / 9;
}

.seopp-youtube-lazy--loaded iframe {
    display: block;
    border: none;
}

/* ==========================================
   LEGACY CLEANUP
   ========================================== */
.seopp-reading-time,
.author-bio-item,
.author-avatar,
.author-info,
.author-name,
.author-job-title,
.author-description,
.author-social,
.author-social-link,
.author-posts-link,
.related-posts-title,
.related-posts-grid,
.related-post-item,
.related-post-thumbnail,
.related-post-content,
.related-post-title,
.related-post-meta {
    all: unset;
}

/* ==========================================
   GUEST POST FORM
   ========================================== */
.seopp-guest-post-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.seopp-guest-post-form .form-group {
    margin-bottom: 20px;
}

.seopp-guest-post-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.seopp-guest-post-form input[type="text"],
.seopp-guest-post-form input[type="email"],
.seopp-guest-post-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.seopp-guest-post-form textarea {
    resize: vertical;
}

.seopp-guest-post-form .button {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.seopp-guest-post-form .button:hover {
    background: #0056b3;
}

#seopp-guest-post-message {
    margin-top: 15px;
}

#seopp-guest-post-message .success {
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

#seopp-guest-post-message .error {
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* ==========================================
   SOCIAL SHARE TOAST NOTIFICATION
   ========================================== */
.seopp-social-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111111;
    color: #f4f4f5;
    padding: 12px 24px;
    border: 3px solid #000000;
    box-shadow: 8px 8px 0 #000000;
    font-size: 15px;
    font-weight: 800;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.seopp-social-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .seopp-author-bio__item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .seopp-author-bio__avatar {
        justify-self: center;
    }

    .seopp-related-posts__grid {
        grid-template-columns: 1fr !important;
    }

    .seopp-related-posts--layout-list .seopp-related-posts__card {
        grid-template-columns: 1fr;
    }
}
