/*
Theme Name: Nexowear
Version:           5.0
Text Domain: nexowear
Description: A clean, fast magazine theme for fashion and wearable tech.
*/

/* =====================================================
   DESIGN TOKENS — Light mode defaults
   All colours/sizes live here. Dark mode overrides below.
===================================================== */

:root {
    /* Colours */
    --bg:              #ffffff;
    --bg-soft:         #f6f6f6;
    --bg-card:         #ffffff;
    --surface:         #f0f0f0;
    --border:          #eeeeee;
    --border-strong:   #d0d0d0;
    --text:            #111111;
    --text-secondary:  #555555;
    --text-muted:      #888888;
    --text-inverse:    #ffffff;
    --accent:          #111111;
    --accent-hover:    #333333;
    --link:            #111111;
    --link-hover:      #555555;
    --tag-bg:          #111111;
    --tag-text:        #ffffff;
    --menu-hover-bg:   #111111;
    --menu-hover-text: #ffffff;
    --progress-color:  #111111;
    --fallback-bg:     #e8e8e8;

    /* Spacing */
    --gap:    40px;
    --gap-sm: 20px;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-pill: 100px;

    /* Typography */
    --font-base:  'Instrument Sans', sans-serif; /* overridden by dynamic CSS */
    --text-xs:    11px;
    --text-sm:    13px;
    --text-base:  15px;
    --text-md:    17px;
    --text-lg:    20px;
    --text-xl:    24px;
    --text-2xl:   32px;
    --text-3xl:   42px;

    /* Transitions */
    --transition: .25s ease;
    --transition-slow: .4s ease;
}



    background: linear-gradient(to bottom, #000 0%, #111 100%);
}


/* Dark mode — footer */
/* Footer dark mode handled by dynamic CSS var */


/* =====================================================
   GLOBAL RESET & BASE
===================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

.site-container {
    width: 100%;
    background: var(--bg);
    min-height: 100vh;
    transition: background var(--transition);
}

/* Inner wrapper: centers content with max-width on large screens */
.site-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) { .site-wrapper { padding: 0 20px; } }

.site-main { padding-top: 40px; }


/* =====================================================
   SKIP LINK
===================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--text);
    color: var(--bg);
    padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; }


/* =====================================================
   READING PROGRESS BAR
===================================================== */

#reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

#reading-progress {
    height: 100%;
    width: 0%;
    background: var(--progress-color);
    transition: width .1s linear;
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {
    width: 100%;
    background: #000;
    color: #fff;
    font-size: var(--text-sm);
}

.top-bar .site-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.top-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.top-menu li { list-style: none; }
.top-menu a  { color: #ccc; text-decoration: none; transition: color var(--transition); }
.top-menu a:hover { color: #fff; }

.top-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-social {
    color: #ccc;
    display: flex;
    align-items: center;
    transition: color var(--transition), transform var(--transition);
}
.top-social svg { width: 16px; height: 16px; }
.top-social:hover { transform: translateY(-2px); }
.top-facebook:hover  { color: #1877f2; }
.top-x:hover         { color: #fff; }
.top-instagram:hover { color: #e1306c; }
.top-whatsapp:hover  { color: #25d366; }
.top-telegram:hover  { color: #229ed9; }

@media (max-width: 768px) { .top-left { display: none; } }


/* =====================================================
   HEADER
===================================================== */

.site-header {
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 16px;
}

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-logo img { max-height: 42px; width: auto; }
.site-title {
    font-size: var(--text-xl);
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -.5px;
}

/* Right controls group */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Dark mode toggle */


/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
    line-height: 1;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-navigation li { display: inline-block; }
.main-navigation a {
    text-transform: uppercase;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text);
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    transition: background var(--transition), color var(--transition);
    display: block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
    background: var(--menu-hover-bg);
    color: var(--menu-hover-text);
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg);
        border-top: none;
        border-bottom: none;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 30px;
        z-index: 999;
        box-shadow: none;
    }
    .main-navigation.active { display: flex; }
    .main-navigation ul { flex-direction: column; gap: 8px; text-align: center; }
    .main-navigation a { padding: 14px 24px; font-size: 16px; letter-spacing: 1.5px; }
    /* Close X inside the fullscreen overlay */
    .main-navigation.active::before {
        content: '✕';
        position: absolute;
        top: 24px;
        right: 28px;
        font-size: 22px;
        color: var(--text);
        cursor: pointer;
        pointer-events: none; /* toggle button handles this */
    }
}


/* =====================================================
   BREADCRUMBS
===================================================== */

.breadcrumbs {
    font-size: var(--text-sm);
    margin: 28px 0 36px;
    padding: 12px 18px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    transition: background var(--transition);
}
.breadcrumbs a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-sep    { color: var(--border-strong); }
.breadcrumb-current { color: var(--text-secondary); }


/* =====================================================
   FEATURED SECTION
===================================================== */

.featured-section {
    width: 100%;
    background: linear-gradient(to bottom, #000 0%, #0d0d0d 100%);
    padding: clamp(40px,6vw,100px) 0 clamp(50px,7vw,120px);
    overflow: hidden;
}

.featured-editorial {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: start;
}
@media (max-width: 1024px) {
    .featured-editorial { grid-template-columns: 1fr; }
}

/* Main hero */
.featured-main { display: flex; flex-direction: column; }

.featured-main-thumb {
    position: relative;
    display: block;
    height: 580px;
    overflow: hidden;
}
.featured-main-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.featured-main-thumb:hover img { transform: scale(1.04); }

/* Hero height: controlled by clamp() in dynamic CSS */

/* Fallback when no image */
.featured-main-thumb-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.35), transparent);
}

.featured-content {
    position: absolute;
    bottom: 36px;
    left: 36px;
    right: 36px;
    color: #fff;
}
@media (max-width: 768px) {
    .featured-content { left: 20px; right: 20px; bottom: 24px; }
}

.featured-categories {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    opacity: .8;
}
.featured-cat { margin-right: 10px; }

.featured-main-title {
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 16px;
}
.featured-main-title span {
    background: #000;
    padding: 5px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.featured-meta { font-size: var(--text-sm); opacity: .7; }

/* Side cards */
.featured-side { display: flex; flex-direction: column; gap: 18px; }

.featured-small-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.featured-small-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.featured-small-thumb:hover img { transform: scale(1.04); }

.featured-category-pill {
    position: absolute;
    top: 12px; left: 12px;
    background: #fff;
    color: #000;
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

.featured-small-title {
    margin-top: 12px;
    font-size: var(--text-md);
    line-height: 1.3;
}
.featured-small-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
}
.featured-small-title a:hover { opacity: .75; }


/* =====================================================
   LATEST SECTION — post grid
===================================================== */

.latest-section { margin-top: 70px; }

.section-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* ── Post grid — responde al body class inyectado por PHP ── */

/* Default: 3 columnas */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* 2 columnas cuando el customizer lo selecciona */
.grid-cols-2 .post-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet: siempre 2 columnas sin importar la elección */
@media (max-width: 1024px) {
    .post-grid,
    .grid-cols-2 .post-grid,
    .grid-cols-3 .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil: siempre 1 columna */
@media (max-width: 600px) {
    .post-grid,
    .grid-cols-2 .post-grid,
    .grid-cols-3 .post-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
    }
}


/* =====================================================
   POST CARD
===================================================== */

.post-card {
    background: var(--bg-card);
    transition: background var(--transition);
    list-style: none;
}

/* Entrance animation — set by JS via IntersectionObserver */
.post-card.will-animate {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.post-card.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.post-card-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--fallback-bg);
    border-radius: var(--radius-sm);
}
.post-card-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.post-card-thumbnail:hover img { transform: scale(1.05); }

/* Fallback when no featured image */
.post-card-thumb-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--surface), var(--fallback-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-category-pill {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--text);
    color: var(--bg);
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--transition);
}
.post-card-category-pill:hover { opacity: .8; }

.post-card-body { padding: 14px 0 0; }

.post-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    letter-spacing: -.1px;
}
.post-card-title a {
    text-decoration: none;
    color: var(--text);
    transition: opacity var(--transition);
}
.post-card-title a:hover { opacity: .65; }

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: .3px;
}


/* =====================================================
   SCROLL LOADER
===================================================== */

.scroll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 48px 0 24px;
}
.scroll-loader-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--text);
    animation: nexo-bounce .9s infinite ease-in-out;
}
.scroll-loader-dot:nth-child(2) { animation-delay: .15s; }
.scroll-loader-dot:nth-child(3) { animation-delay: .30s; }

@keyframes nexo-bounce {
    0%, 80%, 100% { transform: scale(.55); opacity: .35; }
    40%            { transform: scale(1);   opacity: 1;   }
}
.scroll-loader-end { font-size: 20px; color: var(--border-strong); letter-spacing: 6px; }


/* =====================================================
   PAGINATION
===================================================== */

.pagination-wrap {
    margin: 60px 0 20px;
    display: flex;
    justify-content: center;
}
.pagination-wrap .nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--bg-card);
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.pagination-wrap .page-numbers.dots { border: none; background: none; }
.pagination-wrap .prev,
.pagination-wrap .next {
    min-width: auto;
    width: auto;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    letter-spacing: .5px;
}


/* =====================================================
   SINGLE POST
===================================================== */

.single-main { padding-bottom: 60px; }

.single-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1200px) { .single-container { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } }
@media (max-width: 1024px) { .single-container { grid-template-columns: 1fr; } }

.single-content { width: 100%; }

/* Category label */
.single-cat-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--text);
    padding-bottom: 2px;
    margin-bottom: 16px;
    transition: opacity var(--transition);
}
.single-cat-label:hover { opacity: .55; }

/* Title */
.single-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--text);
    margin: 0 0 16px;
}

/* Excerpt / deck */
.single-excerpt {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 100%;
}

/* Meta — date + read time, no author */
.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 28px;
}
.single-meta-sep { color: var(--border-strong); }

/* Featured image */
.single-featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.single-featured-image img { width: 100%; height: auto; display: block; }

/* Fallback when no image */
.single-featured-fallback {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--surface), var(--fallback-bg));
    border-radius: var(--radius);
    margin-bottom: 32px;
}

/* Body content */
.single-body {
    font-size: var(--text-md);
    line-height: 1.75;
    color: var(--text);
    max-width: 100%;
}

.single-body p { margin-bottom: 1.4em; }

.single-body a {
    color: var(--link);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1.5px;
    transition: background-size var(--transition), color var(--transition);
}
.single-body a:hover {
    color: var(--link-hover);
    background-size: 100% 2px;
}

.single-body h2 { font-size: 22px; font-weight: 700; margin: 2em 0 .6em; }
.single-body h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 .5em; }
.single-body h4 { font-size: 16px; font-weight: 600; margin: 1.4em 0 .4em; }

.single-body img {
    border-radius: var(--radius);
    margin: 32px 0;
    max-width: 100%;
}

.single-body figure { margin: 40px 0; }
.single-body figcaption {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.single-body blockquote {
    position: relative;
    margin: 48px 0;
    padding: 28px 36px;
    font-size: 19px;
    line-height: 1.65;
    font-weight: 500;
    background: var(--bg-soft);
    border-left: 4px solid var(--text);
    color: var(--text);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background var(--transition);
}
.single-body blockquote p  { margin: 0; }
.single-body blockquote::before {
    content: "\201C";
    position: absolute;
    top: -16px;
    left: 12px;
    font-size: 72px;
    color: var(--text);
    opacity: .06;
    font-family: serif;
    line-height: 1;
}
@media (max-width: 768px) {
    .single-body blockquote { font-size: 17px; padding: 20px 22px; }
}

.single-body ul,
.single-body ol { margin: 24px 0 24px 22px; }
.single-body li { margin-bottom: 10px; }

/* Code */
.single-body pre {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    margin: 28px 0;
    transition: background var(--transition), border-color var(--transition);
}
.single-body code {
    font-size: 13px;
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
}
.single-body pre code {
    background: none;
    padding: 0;
}

/* Copy code button */
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: all var(--transition);
    opacity: 0;
}
.single-body pre:hover .copy-code-btn { opacity: 1; }
.copy-code-btn:hover { background: var(--surface); color: var(--text); }
.copy-code-btn.copied { color: #16a34a; border-color: #16a34a; }


/* ── Tags ──────────────────────────────────────── */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
}

.tag-pill {
    display: inline-block;
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--tag-bg);
    color: var(--tag-text);
    text-decoration: none;
    transition: opacity var(--transition);
}
.tag-pill:hover { opacity: .75; }


/* ── Share buttons ─────────────────────────────── */

.share-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}
.share-left { font-weight: 600; font-size: var(--text-base); color: var(--text); }
.share-section { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    color: #fff;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: opacity var(--transition), transform var(--transition);
}
.share-btn:hover { opacity: .88; transform: translateY(-2px); }
.share-btn.facebook  { background: #1877f2; }
.share-btn.x         { background: #000; }
.share-btn.whatsapp  { background: #25d366; }
.share-btn.pinterest { background: #e60023; }
.share-btn.reddit    { background: #ff4500; }


/* ── Sidebar ──────────────────────────────────── */

.single-sidebar {
    min-width: 0;
    align-self: start;
    /* sticky controlled by .is-sticky class via customizer */
}
@media (max-width: 1024px) {
    .single-sidebar { margin-top: 60px; }
}

.single-sidebar .widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    transition: background var(--transition), border-color var(--transition);
}
.single-sidebar .widget-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text);
    display: inline-block;
}
.single-sidebar ul { list-style: none; margin: 0; padding: 0; }
.single-sidebar ul li { margin-bottom: 12px; font-size: var(--text-sm); }
.single-sidebar ul li a {
    text-decoration: none;
    color: var(--text);
    transition: opacity var(--transition);
}
.single-sidebar ul li a:hover { opacity: .6; }
.single-sidebar img { border-radius: var(--radius-sm); }


/* ── Related posts ─────────────────────────────── */

.related-full {
    width: 100%;
    margin-top: 24px;
    padding: 50px 0;
    background: var(--bg);
    transition: background var(--transition);
}
.related-title {
    text-align: center;
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0 0 36px;
    color: var(--text);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .related-grid { grid-template-columns: 1fr; } }


/* ── Comments ──────────────────────────────────── */

.comments-area {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
    max-width: 100%;
}

.comments-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 36px;
    color: var(--text);
}
.comments-title span { font-weight: 800; }

/* Comment list */
.comment-list {
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
}
.comment-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }

/* Nested replies */
.comment-item .children {
    list-style: none;
    margin: 20px 0 0 28px;
    padding: 0;
    border-left: 2px solid var(--border);
    padding-left: 20px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: var(--text-sm);
    flex-wrap: wrap;
}
.comment-author-name { font-weight: 700; color: var(--text); }
.comment-sep         { color: var(--border-strong); }
.comment-date        { color: var(--text-muted); }
.comment-edit a      { color: var(--text-muted); font-size: var(--text-xs); text-decoration: none; }
.comment-awaiting    { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; }
.comment-text        { font-size: var(--text-base); color: var(--text); line-height: 1.65; }
.comment-text p      { margin: 0 0 .8em; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply       { margin-top: 10px; }
.comment-reply-link  {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .8px;
    transition: color var(--transition);
}
.comment-reply-link:hover { color: var(--text); }

/* Comment form */
.comment-form { margin-top: 10px; }
.comment-form-field { margin-bottom: 20px; }
.comment-form-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.comment-form-field .required { color: #e11d48; }
.email-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 400;
}
.comment-form-field input,
.comment-form-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-base);
    font-size: var(--text-base);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    resize: vertical;
}
.comment-form-field input:focus,
.comment-form-field textarea:focus { border-color: var(--text); }

.comment-submit-btn {
    padding: 12px 28px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    transition: opacity var(--transition), transform var(--transition);
}
.comment-submit-btn:hover { opacity: .8; transform: translateY(-1px); }
.no-comments {
    color: var(--text-muted);
    font-size: var(--text-base);
    padding: 20px 0;
}


/* =====================================================
   PROS & CONS SHORTCODE
===================================================== */

.nexowear-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin: 48px 0;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 32px;
    transition: background var(--transition);
}
@media (max-width: 640px) { .nexowear-pros-cons { grid-template-columns: 1fr; } }

.nexowear-pros-cons h3 {
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
    color: var(--text);
}

.pros-list, .cons-list {
    list-style: none;
    margin: 0; padding: 0;
}
.pros-list li, .cons-list li {
    position: relative;
    padding: 8px 0 8px 34px;
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}
.pros-list li:last-child,
.cons-list li:last-child { border-bottom: none; }
.pros-list li::before, .cons-list li::before {
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pros-list li::before { content: "+"; background: #16a34a; color: #fff; }
.cons-list li::before { content: "–"; background: #e11d48; color: #fff; }


/* =====================================================
   SPECS SHORTCODE
===================================================== */

.nexowear-specs {
    margin: 40px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.specs-header {
    background: var(--text);
    color: var(--bg);
    padding: 14px 20px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:nth-child(even) { background: var(--bg-soft); }
.specs-table th {
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    width: 40%;
}
.specs-table td {
    padding: 12px 18px;
    color: var(--text-secondary);
}


/* =====================================================
   TRENDING WIDGET
===================================================== */

.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.trending-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--border-strong);
    line-height: 1;
    min-width: 36px;
    letter-spacing: -1px;
}
.trending-title {
    text-decoration: none;
    color: var(--text);
    font-size: var(--text-sm);
    line-height: 1.45;
    font-weight: 500;
    transition: opacity var(--transition);
}
.trending-title:hover { opacity: .6; }


/* =====================================================
   CATEGORY / ARCHIVE / SEARCH HEADER
===================================================== */

.category-main, .archive-main, .search-main { padding-bottom: 60px; }

.category-header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}
.category-header-inner { max-width: 640px; }
.category-kicker {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.category-title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.5px;
    color: var(--text);
    margin: 0 0 14px;
}
.category-description { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.6; }

.search-header { padding: 48px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.search-count  { font-size: var(--text-base); color: var(--text-muted); margin: 8px 0 0; }

.no-posts, .search-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: var(--text-base);
}
.search-no-results form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}


/* =====================================================
   404 PAGE
===================================================== */

.error404-main { padding: 80px 0 60px; }
.error404-wrap { text-align: center; max-width: 540px; margin: 0 auto 70px; }
.error404-code {
    font-size: clamp(90px, 18vw, 160px);
    font-weight: 800;
    line-height: 1;
    color: var(--surface);
    letter-spacing: -8px;
    margin-bottom: -16px;
    user-select: none;
    transition: color var(--transition);
}
.error404-title   { font-size: clamp(22px,4vw,32px); font-weight: 700; margin: 0 0 14px; color: var(--text); }
.error404-message { font-size: var(--text-base); color: var(--text-secondary); margin: 0 0 30px; line-height: 1.6; }
.error404-search  { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.error404-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-family: var(--font-base);
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.error404-search-input:focus   { border-color: var(--text); }
.error404-search-btn {
    padding: 11px 22px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-base);
    transition: opacity var(--transition);
}
.error404-search-btn:hover   { opacity: .75; }
.error404-home-btn {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 1px;
    transition: opacity var(--transition);
}
.error404-home-btn:hover     { opacity: .55; }
.error404-recent-title {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
}


/* =====================================================
   STATIC PAGE
===================================================== */

.page-main { padding: 40px 0 80px; }
.page-container { max-width: 860px; }
.page-title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    margin: 0 0 28px;
    letter-spacing: -.5px;
    line-height: 1.12;
    color: var(--text);
}
.page-featured-image { margin-bottom: 36px; overflow: hidden; border-radius: var(--radius); }
.page-featured-image img { width: 100%; height: auto; display: block; }


/* =====================================================
   FOOTER
===================================================== */

.site-footer { width: 100%; background: #000; margin-top: 100px; }

.footer-widgets {
    background: #0d0d0d;
    padding: 58px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
@media (max-width: 768px) {
    .footer-widgets-inner { grid-template-columns: 1fr; gap: 28px; }
}

.footer-widget-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-widget { color: #999; font-size: var(--text-sm); line-height: 1.7; }
.footer-widget a { color: #999; text-decoration: none; transition: color var(--transition); }
.footer-widget a:hover { color: #fff; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.footer-widget ul li:last-child { border-bottom: none; }

.footer-bottom { background: #000; padding: 20px 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { color: #555; font-size: var(--text-sm); margin: 0; }
.footer-copy a { color: #777; text-decoration: none; transition: color var(--transition); }
.footer-copy a:hover { color: #fff; }
.footer-nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav li { list-style: none; }
.footer-nav a { font-size: var(--text-sm); color: #555; text-decoration: none; transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }

@media (max-width: 600px) {
    .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
}


/* =====================================================
   SCROLL TO TOP
===================================================== */

#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: var(--bg);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all .35s ease;
    z-index: 999;
    backdrop-filter: blur(6px);
}
#scrollTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopBtn:hover { transform: translateY(-3px); opacity: .85; }


/* =====================================================
   CLASSIC LAYOUT — Hero + List + Sidebar
===================================================== */

/* ── Hero ─────────────────────────────────────── */

.classic-hero {
    position: relative;
    width: 100%;
    height: clamp(380px, 55vw, 680px);
    background: #111 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.classic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.45) 50%,
        rgba(0,0,0,.15) 100%
    );
}

.classic-hero .site-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: clamp(28px, 5vw, 60px);
}

.classic-hero-content { max-width: 780px; }

.classic-hero-cat {
    display: inline-block;
    background: #fff;
    color: #000;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    margin-bottom: 18px;
    transition: opacity var(--transition);
}
.classic-hero-cat:hover { opacity: .8; }

.classic-hero-title {
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 0 0 16px;
    color: #fff;
}
.classic-hero-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}
.classic-hero-title a:hover { opacity: .8; }

.classic-hero-meta {
    font-size: var(--text-sm);
    color: rgba(255,255,255,.65);
}


/* ── Sub-hero strip — 3 posts below hero ──────── */

.hero-sub-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 3px solid var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.hero-sub-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border-right: 1px solid var(--border);
    transition: background var(--transition);
}
.hero-sub-item:last-child { border-right: none; }
.hero-sub-item:hover { background: var(--bg-card); }

.hero-sub-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--fallback-bg);
    flex-shrink: 0;
}
.hero-sub-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.hero-sub-thumb:hover img { transform: scale(1.06); }

.hero-sub-thumb-fallback {
    width: 100%; height: 100%;
    background: var(--surface);
}

.hero-sub-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hero-sub-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text);
    text-decoration: none;
    opacity: .5;
    transition: opacity var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-sub-cat:hover { opacity: 1; }

.hero-sub-title {
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.hero-sub-title a {
    color: var(--text);
    text-decoration: none;
    transition: opacity var(--transition);
}
.hero-sub-title a:hover { opacity: .6; }

.hero-sub-date {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-sub-strip {
        grid-template-columns: 1fr 1fr;
    }
    .hero-sub-item:nth-child(2) { border-right: none; }
    .hero-sub-item:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--border);
    }
}
@media (max-width: 600px) {
    .hero-sub-strip { grid-template-columns: 1fr; }
    .hero-sub-item {
        border-right: none;
        border-top: 1px solid var(--border);
        grid-column: auto;
    }
    .hero-sub-item:nth-child(2) { border-right: none; }
    .hero-sub-item:nth-child(3) { grid-column: auto; }
}


/* ── Body: main list + sidebar ─────────────────── */

.classic-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    /* NO align-items:start — columns must stretch to full height for sticky to work */
    padding-top: 48px;
    padding-bottom: 60px;
}

/* Main content collapses to its own height */
.classic-main {
    align-self: start;
}

@media (max-width: 1100px) {
    .classic-body { grid-template-columns: 1fr 280px; gap: 32px; }
}
@media (max-width: 900px) {
    .classic-body { grid-template-columns: 1fr; }
}

/* Sidebar wrap — sticky applied here, not on child */
.classic-sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
    align-self: start; /* collapse to content height for sticky to work */
}

/* .classic-sidebar-wrap sticky handled by JS (sidebar-top-posts only) */


/* ── Horizontal post list ──────────────────────── */

.classic-list { display: flex; flex-direction: column; gap: 0; }

.card-list-item {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
    list-style: none;
}
.card-list-item:first-child { border-top: 1px solid var(--border); }

@media (max-width: 1100px) {
    .card-list-item {
        grid-template-columns: 380px 1fr;
        gap: 22px;
    }
}
@media (max-width: 900px) {
    .card-list-item {
        grid-template-columns: 280px 1fr;
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .card-list-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 0;
    }
}

.card-list-thumb {
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--fallback-bg);
    flex-shrink: 0;
}
.card-list-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.card-list-thumb:hover img { transform: scale(1.05); }

.card-list-thumb-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--surface), var(--fallback-bg));
}

.card-list-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-list-cat {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    opacity: .55;
    transition: opacity var(--transition);
}
.card-list-cat:hover { opacity: 1; }

.card-list-title {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -.1px;
}
.card-list-title a {
    text-decoration: none;
    color: var(--text);
    transition: opacity var(--transition);
}
.card-list-title a:hover { opacity: .6; }

.card-list-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* ── Classic Sidebar ───────────────────────────── */

.classic-sidebar-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: background var(--transition), border-color var(--transition);
}

.classic-sidebar-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text);
    display: inline-block;
}

.classic-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.classic-top-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.classic-top-item:last-child { border-bottom: none; }

.classic-top-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--border-strong);
    line-height: 1;
    min-width: 32px;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.classic-top-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.classic-top-title {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
    transition: opacity var(--transition);
}
.classic-top-title:hover { opacity: .6; }

.classic-top-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}


/* ── Sticky sidebar (both layouts) ────────────── */

.single-sidebar.is-sticky {
    position: sticky;
    top: 100px;
}

/* Sticky disabled on mobile */
@media (max-width: 1024px) {
    .single-sidebar.is-sticky {
        position: relative;
        top: auto;
    }
}


/* Top posts sticky — driven by JS, not CSS position:sticky on wrap */
#sidebar-top-posts.js-sticky {
    position: fixed;
    width: var(--sidebar-top-width, 320px);
    top: 100px;
    z-index: 10;
}

/* =====================================================
   SIDEBAR — FEATURED POST (sticky post block)
===================================================== */

.sidebar-featured-block {
    margin-bottom: 28px;
}

.sidebar-featured-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--fallback-bg);
    text-decoration: none;
}

.sidebar-featured-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}
.sidebar-featured-thumb:hover img { transform: scale(1.04); }

.sidebar-featured-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--surface), var(--fallback-bg));
}

.sidebar-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    gap: 5px;
}

.sidebar-featured-title {
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-featured-date {
    font-size: 11px;
    color: rgba(255,255,255,.65);
}


/* =====================================================
   FLOATING SHARE BAR (single post, desktop only)
===================================================== */

.float-share {
    position: fixed;
    left: clamp(8px, calc(50vw - 740px), 36px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.float-share.float-share--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide entirely on tablet/mobile */
@media (max-width: 1200px) {
    .float-share { display: none; }
}

/* Progress ring */
.float-share-progress {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    flex-direction: column;
}

.progress-ring-svg {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.progress-ring-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 2.5;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--text);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset .15s linear;
}

.float-read-time {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.float-read-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    line-height: 1;
    margin-top: 1px;
}

/* Share buttons */
.float-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, opacity .2s ease;
    background: var(--text);
}
.float-share-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke: currentColor;
}
.float-share-btn:hover { transform: scale(1.12); opacity: .9; }

.float-facebook  { background: #1877f2; }
.float-x         { background: #000; }
.float-whatsapp  { background: #25d366; }
.float-telegram  { background: #229ed9; }
.float-copy      { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* Copy feedback */
.float-copy.copied { background: #22c55e; color: #fff; border-color: #22c55e; }
