/* ViralHub Frontend CSS — v1.0.0 */

/* ================================================================
   1. TOKENS & RESET
   ================================================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.08);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --bg:        #f8fafc;
    --bg-card:   #ffffff;
    --bg-sidebar: #f1f5f9;
    --border:    #e2e8f0;
    --text:      #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --header-h: 64px;
    --radius:   12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg:        #0f172a;
    --bg-card:   #1e293b;
    --bg-sidebar: #162032;
    --border:    #334155;
    --text:      #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary-bg: rgba(99, 102, 241, 0.15);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   2. LAYOUT UTILITIES
   ================================================================ */
.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-xl { padding: 0 1.5rem; }
}

@media (min-width: 1280px) {
    .container-xl { padding: 0 2rem; }
}

.vh-layout {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.vh-layout--sidebar {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .vh-layout--sidebar {
        grid-template-columns: 1fr 320px;
    }
}

.vh-layout__main {}
.vh-layout__sidebar {}

/* ================================================================
   3. PRELOADER
   ================================================================ */
.vh-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.vh-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.vh-preloader__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   4. HEADER
   ================================================================ */
.vh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: box-shadow var(--transition), background var(--transition);
}

.vh-header.is-scrolled {
    box-shadow: var(--shadow);
}

.vh-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vh-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.vh-header__logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    letter-spacing: -0.03em;
}

.vh-header__logo-text i {
    font-size: 1.4rem;
}

.vh-header__logo img {
    height: 36px;
    width: auto;
}

/* Nav */
.vh-header__nav {
    flex: 1;
    display: none;
}

/* Mobile nav close header — hidden on desktop */
.vh-nav-close {
    display: none;
}

@media (min-width: 1024px) {
    .vh-header__nav {
        display: flex;
        align-items: center;
    }
}

.vh-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.vh-nav__item {
    position: relative;
}

.vh-nav__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.vh-nav__link:hover,
.vh-nav__link.is-active {
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-nav__link i {
    font-size: 0.95rem;
}

/* Dropdown */
.vh-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.vh-nav__item--has-dropdown:hover .vh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-dropdown__inner {
    padding: 0.5rem;
}

.vh-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}

.vh-dropdown__item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Header Actions */
.vh-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.vh-btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.vh-btn-icon:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* User Menu */
.vh-user-menu {
    position: relative;
}

.vh-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--bg-sidebar);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Allow clicks to pass through children to the button */
.vh-user-menu__trigger > * {
    pointer-events: none;
}

.vh-user-menu__trigger:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-user-menu__name {
    display: none;
}

@media (min-width: 768px) {
    .vh-user-menu__name { display: block; }
}

.vh-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 500;
}

.vh-user-menu.is-open .vh-user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-user-menu__item,
.vh-user-menu__item button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    transition: all var(--transition);
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.vh-user-menu__item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-user-menu__item--admin {
    color: var(--primary);
    font-weight: 600;
}

.vh-user-menu__item--logout {
    color: var(--danger);
}

.vh-user-menu__item--logout:hover {
    background: rgba(239,68,68,.08);
    color: var(--danger);
}

.vh-user-menu__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.25rem 0;
}

/* Search Bar */
.vh-search-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.vh-search-bar.is-open {
    transform: scaleY(1);
    opacity: 1;
    max-height: 80px;
}

.vh-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    padding: 0 1rem;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.vh-search-form:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
}

.vh-search-form__icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.vh-search-form__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text);
    font-family: var(--font);
}

.vh-search-form__input::placeholder {
    color: var(--text-light);
}

/* Hamburger */
.vh-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.vh-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

@media (min-width: 1024px) {
    .vh-hamburger { display: none; }
}

/* Nav Backdrop — starts below header so header stacking context stays on top */
.vh-nav-backdrop {
    display: none;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.vh-nav-backdrop.is-open {
    display: block;
}
body.nav-open {
    overflow: hidden;
}

/* Mobile-only / desktop-only visibility helpers */
.vh-show-mobile { display: none !important; }
.vh-mobile-auth { display: none; }
.vh-mobile-nav-search { display: none; }

@media (max-width: 1023px) {
    /* Center logo absolutely on mobile */
    .vh-header__inner {
        position: relative;
    }
    .vh-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }
    .vh-header__logo a,
    .vh-header__logo .vh-header__logo-text {
        pointer-events: auto;
    }

    .vh-hide-mobile { display: none !important; }
    .vh-show-mobile { display: flex !important; }

    /* Submit button — icon only on mobile */
    .vh-header__actions .vh-btn--primary span {
        display: none;
    }
    .vh-header__actions .vh-btn--primary {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Hide search & theme toggles from header on mobile — too many icons */
    #searchToggle,
    #themeToggle {
        display: none !important;
    }

    /* Reduce header actions gap on mobile */
    .vh-header__actions {
        gap: 0.25rem;
    }

    .vh-mobile-auth {
        display: block;
        position: relative;
    }
    .vh-mobile-auth__menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        min-width: 160px;
        z-index: 500;
        overflow: hidden;
    }
    .vh-mobile-auth__menu.is-open {
        display: block;
    }
    .vh-mobile-auth__item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        color: var(--text);
        font-size: 0.9rem;
        text-decoration: none;
    }
    .vh-mobile-auth__item:hover {
        background: var(--bg-hover);
    }

    /* User menu dropdown — fixed position on mobile so stacking context never clips it */
    .vh-user-menu__dropdown {
        position: fixed;
        top: calc(var(--header-h) + 4px);
        right: 0.5rem;
        left: auto;
        z-index: 9999;
    }

    /* Push main content up so bottom bar doesn't cover it */
    .vh-main {
        padding-bottom: 72px;
    }

    /* Hide submit button from header — bottom bar has it */
    .vh-header__actions .vh-btn--primary {
        display: none !important;
    }
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ================================================================ */
.vh-bottom-bar {
    display: none;
}

@media (max-width: 1023px) {
    .vh-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--bg-card);
        border-top: 1.5px solid var(--border);
        height: 60px;
        align-items: center;
        justify-content: space-around;
        padding: 0 0.25rem;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    }

    .vh-bottom-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        color: var(--text-muted);
        font-size: 0.6rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .vh-bottom-bar__item i {
        font-size: 1.35rem;
        line-height: 1;
        display: block;
    }

    .vh-bottom-bar__item.is-active {
        color: var(--primary);
    }

    .vh-bottom-bar__item.is-active i {
        color: var(--primary);
    }

    /* Center "+" post button — elevated pill */
    .vh-bottom-bar__item--post {
        background: var(--primary);
        color: #fff !important;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        flex: none;
        box-shadow: 0 4px 16px rgba(99,102,241,.45);
        margin-bottom: 8px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .vh-bottom-bar__item--post i {
        font-size: 1.5rem;
        color: #fff;
    }

    .vh-bottom-bar__item--post:active {
        transform: scale(0.92);
        box-shadow: 0 2px 8px rgba(99,102,241,.3);
    }

    /* Avatar in bottom bar */
    .vh-bottom-bar__avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border);
        display: block;
    }

    .vh-bottom-bar__item.is-active .vh-bottom-bar__avatar {
        border-color: var(--primary);
    }

    /* Footer needs bottom padding too */
    .vh-footer {
        padding-bottom: 72px;
    }
}

/* ================================================================
   5. AD ZONES
   ================================================================ */
.vh-ad-zone {
    text-align: center;
    padding: 0.5rem 0;
}

.vh-ad-zone--header {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.vh-ad-zone--sidebar {
    padding: 0;
}

.vh-ad-zone--infeed {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px dashed var(--border);
}

/* ================================================================
   6. HERO SECTION
   ================================================================ */
.vh-hero {
    padding: 1.5rem 0;
    background: var(--bg);
}

.vh-hero__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .vh-hero__grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (min-width: 1024px) {
    .vh-hero__grid {
        grid-template-columns: 1fr 400px;
    }
}

.vh-hero__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    min-height: 320px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .vh-hero__main {
        min-height: 400px;
    }
}

.vh-hero__media {
    position: absolute;
    inset: 0;
}

.vh-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vh-hero__main:hover .vh-hero__media img {
    transform: scale(1.04);
}

.vh-hero__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.4);
}

.vh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}

.vh-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 1;
}

.vh-hero__title {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    line-height: 1.3;
    margin: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (min-width: 768px) {
    .vh-hero__title { font-size: 1.75rem; }
}

.vh-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,.8);
    font-size: 0.85rem;
}

.vh-hero__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-hero__type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.vh-hero__secondary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vh-hero__item {
    display: flex;
    gap: 0.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.vh-hero__item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.vh-hero__item-media {
    width: 110px;
    flex-shrink: 0;
    overflow: hidden;
}

.vh-hero__item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-hero__item:hover .vh-hero__item-media img {
    transform: scale(1.05);
}

.vh-hero__item-placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,.5);
}

.vh-hero__item-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
}

.vh-hero__item-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   7. CATEGORY BAR
   ================================================================ */
.vh-category-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 99;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: background var(--transition);
}

.vh-category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vh-category-scroll::-webkit-scrollbar { display: none; }

.vh-category-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    flex-shrink: 0;
}

.vh-category-chip:hover {
    border-color: var(--cat-color, var(--primary));
    color: var(--cat-color, var(--primary));
    background: rgba(var(--cat-color, 99, 102, 241), 0.05);
}

.vh-category-chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-category-chip__count {
    background: rgba(0,0,0,.15);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
}

/* ── Category Page Header ────────────────────────────────────── */
.vh-category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    border-left: 5px solid var(--cat-color, var(--primary));
}

.vh-category-header__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color, var(--primary)) 40%, transparent);
}

.vh-category-header__info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    color: var(--text);
}

.vh-category-header__info p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 .5rem;
}

.vh-category-header__info span {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--cat-color, var(--primary));
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, transparent);
    padding: .2rem .65rem;
    border-radius: 99px;
}

@media (max-width: 600px) {
    .vh-category-header {
        padding: 1.25rem;
        gap: 1rem;
    }
    .vh-category-header__icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
    .vh-category-header__info h1 {
        font-size: 1.2rem;
    }
}

/* ================================================================
   8. TABS
   ================================================================ */
.vh-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.vh-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.vh-tab:hover {
    color: var(--primary);
}

.vh-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ================================================================
   9. POST CARDS
   ================================================================ */
.vh-posts-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .vh-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .vh-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vh-post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.vh-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.vh-post-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: block;
    background: var(--bg-sidebar);
}

.vh-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vh-post-card:hover .vh-post-card__media img {
    transform: scale(1.05);
}

.vh-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,.4);
}

.vh-post-card__type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(8px);
}

.vh-post-card__featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-post-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-post-card__category {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vh-post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-display);
}

.vh-post-card__title a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vh-post-card__title a:hover {
    color: var(--primary);
}

.vh-post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.vh-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.vh-post-card__author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    min-width: 0;
}

.vh-post-card__author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.vh-post-card__stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.vh-post-card__stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-post-card__time {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================================================
   10. TYPE BADGES
   ================================================================ */
.badge-video    { background: rgba(239,68,68,.9);  color: #fff; }
.badge-image    { background: rgba(16,185,129,.9); color: #fff; }
.badge-gif      { background: rgba(245,158,11,.9); color: #fff; }
.badge-poll     { background: rgba(99,102,241,.9); color: #fff; }
.badge-list     { background: rgba(59,130,246,.9); color: #fff; }
.badge-article  { background: rgba(100,116,139,.8); color: #fff; }

/* ================================================================
   11. BADGES
   ================================================================ */
.vh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.vh-badge--sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.vh-badge--trending {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

/* ================================================================
   12. AVATAR
   ================================================================ */
.vh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.vh-avatar--sm {
    width: 32px;
    height: 32px;
}

.vh-avatar--xs {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.vh-verified-icon {
    color: var(--primary);
    font-size: 0.9em;
    vertical-align: middle;
}

.vh-verified-icon--sm {
    font-size: 0.75em;
    flex-shrink: 0;
}

/* ================================================================
   13. BUTTONS
   ================================================================ */
.vh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: var(--font);
    text-decoration: none;
}

.vh-btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.vh-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.vh-btn--ghost:hover {
    background: var(--bg-sidebar);
    color: var(--primary);
    border-color: var(--primary);
}

.vh-btn--sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.85rem;
}

.vh-btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.vh-btn--full {
    width: 100%;
}

/* ================================================================
   14. WIDGETS (Sidebar)
   ================================================================ */
.vh-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.vh-widget__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.vh-widget__title i {
    color: var(--primary);
}

.vh-widget--newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    text-align: center;
    color: #fff;
}

.vh-widget--newsletter .vh-widget__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.vh-widget--newsletter h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vh-widget--newsletter p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Tags Cloud */
.vh-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vh-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-chip:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.vh-tag-chip span {
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 99px;
}

/* Authors List */
.vh-authors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vh-author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.vh-author-item:hover {
    background: var(--bg-sidebar);
}

.vh-author-item__info {
    flex: 1;
    min-width: 0;
}

.vh-author-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh-author-item__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-author-item__score {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

/* Newsletter Forms */
.vh-newsletter-form,
.vh-newsletter-widget-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vh-newsletter-form__input,
.vh-newsletter-widget-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}

.vh-newsletter-form__input::placeholder,
.vh-newsletter-widget-form input::placeholder {
    color: rgba(255,255,255,.6);
}

.vh-newsletter-form__input:focus,
.vh-newsletter-widget-form input:focus {
    border-color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.2);
}

/* Footer newsletter form (not on gradient bg) */
.vh-footer__col .vh-newsletter-form input {
    background: var(--bg-sidebar);
    border-color: var(--border);
    color: var(--text);
}

.vh-footer__col .vh-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.vh-newsletter-msg,
.vh-success-msg {
    color: rgba(255,255,255,.9);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================================================
   15. PAGINATION
   ================================================================ */
.vh-pagination {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.vh-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vh-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}

.vh-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-page-btn--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-page-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vh-page-btn--dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ================================================================
   16. POST DETAIL PAGE
   ================================================================ */
.vh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vh-breadcrumb a:hover {
    color: var(--primary);
}

.vh-breadcrumb i {
    font-size: 0.7rem;
}

.vh-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vh-post__header {
    padding: 2rem 2rem 0;
}

@media (max-width: 768px) {
    .vh-post__header { padding: 1.25rem 1.25rem 0; }
}

.vh-post__meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vh-post__title {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .vh-post__title { font-size: 2.25rem; }
}

.vh-post__author-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.vh-post__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vh-post__author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-post__author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-post__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: auto;
}

.vh-post__stats span {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vh-post__featured-image {
    margin: 1.5rem 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .vh-post__featured-image { margin: 1rem; }
}

.vh-post__featured-image img {
    width: 100%;
    height: auto;
}

.vh-post__video {
    margin: 1.5rem 2rem;
}

@media (max-width: 768px) {
    .vh-post__video { margin: 1rem; }
}

.vh-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.vh-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vh-post__content {
    padding: 0 2rem 1.5rem;
}

@media (max-width: 768px) {
    .vh-post__content { padding: 0 1.25rem 1.25rem; }
}

/* Prose styles */
.vh-prose {
    max-width: 100%;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text);
}

.vh-prose h2, .vh-prose h3, .vh-prose h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.75em 0 0.75em;
    color: var(--text);
}

.vh-prose h2 { font-size: 1.5rem; }
.vh-prose h3 { font-size: 1.25rem; }
.vh-prose h4 { font-size: 1.1rem; }

.vh-prose p { margin-bottom: 1.25em; }

.vh-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vh-prose ul, .vh-prose ol {
    padding-left: 1.75em;
    margin-bottom: 1.25em;
}

.vh-prose li { margin-bottom: 0.4em; }

.vh-prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.vh-prose code {
    background: var(--bg-sidebar);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--danger);
    font-family: monospace;
}

.vh-prose pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.vh-prose img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.vh-post__source {
    margin: 0 2rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh-post__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-post__tags i {
    font-size: 1rem;
}

/* Vote + Actions */
.vh-post__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .vh-post__actions { padding: 1rem 1.25rem; }
}

.vh-vote-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    overflow: hidden;
    flex-shrink: 0;
}

.vh-vote-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
    background: none;
}

.vh-vote-btn:hover,
.vh-vote-btn.is-active {
    color: #fff;
}

.vh-vote-btn--up:hover,
.vh-vote-btn--up.is-active {
    background: var(--success);
    color: #fff;
}

.vh-vote-btn--down:hover,
.vh-vote-btn--down.is-active {
    background: var(--danger);
    color: #fff;
}

.vh-vote-bar__score {
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.vh-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    background: none;
    cursor: pointer;
    font-family: var(--font);
}

.vh-action-btn:hover,
.vh-action-btn.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-share-menu {
    position: relative;
}

.vh-share-count {
    background: var(--bg-sidebar);
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vh-share-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 10;
}

.vh-share-menu.is-open .vh-share-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    color: var(--text);
}

.vh-share-btn:hover { background: var(--bg-sidebar); }
.vh-share-btn--facebook:hover { background: rgba(24,119,242,.1); color: #1877F2; }
.vh-share-btn--twitter:hover  { background: rgba(0,0,0,.05); color: #000; }
.vh-share-btn--whatsapp:hover { background: rgba(37,211,102,.1); color: #25D366; }

/* Author Box */
.vh-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .vh-author-box { padding: 1.25rem; flex-wrap: wrap; }
}

.vh-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.vh-author-box__info {
    flex: 1;
    min-width: 0;
}

.vh-author-box__info h4 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.vh-author-box__info h4 a:hover {
    color: var(--primary);
}

.vh-author-box__info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.vh-author-box__stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-author-box__stats strong {
    color: var(--text);
    font-weight: 700;
}

/* Comments */
.vh-comments {
    padding: 2rem;
}

@media (max-width: 768px) {
    .vh-comments { padding: 1.25rem; }
}

.vh-comments__title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.vh-comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vh-comment-form__input-wrap {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.vh-comment-form__input-wrap:focus-within {
    border-color: var(--primary);
}

.vh-comment-form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    outline: none;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}

.vh-comment-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
}

.vh-comment-form__count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-comments__login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.vh-comments__login-prompt i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}

.vh-comments__login-prompt a {
    color: var(--primary);
    font-weight: 600;
}

.vh-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-comment {
    display: flex;
    gap: 0.75rem;
}

.vh-comment--reply {
    padding-left: 2.5rem;
    margin-top: 1rem;
}

.vh-comment__body {
    flex: 1;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
}

.vh-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.vh-comment__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh-comment__author:hover { color: var(--primary); }

.vh-comment__time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.vh-comment__content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.vh-comment__actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
}

.vh-comment-reply-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition);
}

.vh-comment-reply-btn:hover { color: var(--primary); }

.vh-reply-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-reply-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
}

.vh-reply-form textarea:focus {
    border-color: var(--primary);
}

.vh-comment-replies {
    margin-top: 0.75rem;
}

/* Related Posts */
.vh-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.vh-related-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all var(--transition);
}

.vh-related-item:hover {
    color: var(--primary);
}

.vh-related-item__thumb {
    width: 72px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-sidebar);
}

.vh-related-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-related-item:hover .vh-related-item__thumb img {
    transform: scale(1.05);
}

.vh-related-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255,255,255,.4);
}

.vh-related-item__info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vh-related-item:hover .vh-related-item__info h5 {
    color: var(--primary);
}

.vh-related-item__info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ================================================================
   17. AUTH PAGES
   ================================================================ */
.vh-auth-page {
    min-height: calc(100vh - var(--header-h) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.vh-auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.vh-auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.vh-auth-card__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1rem;
}

.vh-auth-card__header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.vh-auth-card__header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vh-form-label__link {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.8rem;
}

.vh-input-wrap {
    position: relative;
}

.vh-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.vh-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.vh-input--icon {
    padding-left: 2.75rem;
}

.vh-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.vh-input--error {
    border-color: var(--danger);
}

.vh-input--lg {
    padding: .875rem 1.1rem;
    font-size: 1rem;
}

/* Textarea */
.vh-textarea {
    width: 100%;
    padding: .875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    line-height: 1.65;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 120px;
}

.vh-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.vh-textarea::placeholder { color: var(--text-muted); }

/* Custom select */
.vh-select {
    width: 100%;
    padding: .8rem 2.5rem .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
}

.vh-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

[data-theme="dark"] .vh-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Select with icon prefix */
.vh-select-wrap {
    position: relative;
}

.vh-select-icon {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: .9rem;
    pointer-events: none;
    z-index: 1;
}

.vh-select--icon {
    padding-left: 2.5rem;
}

.vh-input-toggle-pw {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vh-input--icon-right {
    padding-right: 2.75rem;
}

.vh-input-icon-btn {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    z-index: 2;
}

.vh-input-icon-btn:hover {
    color: var(--primary);
}

.vh-form-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text);
}

.vh-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.vh-auth-form__terms {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.vh-auth-form__terms a {
    color: var(--primary);
    font-weight: 500;
}

.vh-auth-card__footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-auth-card__footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ================================================================
   18. ALERTS
   ================================================================ */
.vh-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.75rem auto;
    max-width: 800px;
    position: relative;
}

.vh-alert--success {
    background: rgba(16,185,129,.1);
    color: var(--success);
    border: 1px solid rgba(16,185,129,.2);
}

.vh-alert--error {
    background: rgba(239,68,68,.1);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,.2);
}

.vh-alert__close {
    margin-left: auto;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}

/* ================================================================
   19. FOOTER
   ================================================================ */
.vh-footer {
    background: #0f172a;
    border-top: none;
    margin-top: 4rem;
}

.vh-footer__top {
    padding: 3.5rem 0 2.5rem;
}

.vh-footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .vh-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.vh-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.375rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 0.875rem;
    text-decoration: none;
}

.vh-footer__logo i {
    color: #6366f1;
}

.vh-footer__brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    max-width: 260px;
}

.vh-footer__social {
    display: flex;
    gap: 0.625rem;
}

.vh-footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: all var(--transition);
    text-decoration: none;
}

.vh-footer__social a:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

.vh-footer__col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vh-footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.vh-footer__col li a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color var(--transition);
    text-decoration: none;
}

.vh-footer__col li a:hover {
    color: #fff;
}

/* Newsletter in footer */
.vh-newsletter-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.vh-newsletter-form__input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: .6rem .875rem;
    font-size: .875rem;
    color: #fff;
    outline: none;
    transition: border-color var(--transition);
}

.vh-newsletter-form__input::placeholder {
    color: #64748b;
}

.vh-newsletter-form__input:focus {
    border-color: #6366f1;
}

.vh-newsletter-msg {
    font-size: .8125rem;
    color: #34d399;
    margin-top: .5rem;
}

.vh-footer__col p {
    font-size: .875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.vh-footer__bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.vh-footer__bottom .container-xl {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.vh-footer__bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}

.vh-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
}

.vh-footer__links a {
    font-size: 0.8125rem;
    color: #64748b;
    transition: color var(--transition);
    text-decoration: none;
}

.vh-footer__links a:hover {
    color: #fff;
}

/* Footer newsletter button override */
.vh-footer .vh-btn--primary {
    padding: .6rem 1rem;
    font-size: .875rem;
    white-space: nowrap;
}

/* ================================================================
   20. EMPTY STATE
   ================================================================ */
.vh-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.vh-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.vh-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.vh-empty p {
    margin-bottom: 1.5rem;
}

/* ================================================================
   21. CATEGORIES PAGE
   ================================================================ */
.vh-categories-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .vh-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .vh-categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.vh-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.vh-category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-color, var(--primary));
}

.vh-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--cat-color, var(--primary));
}

.vh-category-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cat-color, var(--primary));
    background: rgba(var(--cat-rgb, 99,102,241),.1);
    margin: 0 auto 1rem;
}

.vh-category-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.vh-category-card__count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-category-card__body {
    flex: 1;
}

.vh-category-card__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.5rem;
    line-height: 1.5;
}

.vh-category-card__arrow {
    color: var(--cat-color, var(--primary));
    font-size: 1.125rem;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.vh-category-card:hover .vh-category-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ================================================================
   22. PAGE HEADER
   ================================================================ */
.vh-page-head {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.vh-page-head__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}

.vh-page-head__sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ================================================================
   23. USER PROFILE PAGE
   ================================================================ */
.vh-profile-page { min-height: 100vh; }

.vh-profile-cover {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    padding: 2rem 0 0;
    position: relative;
}

.vh-profile-cover--default {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.vh-profile-cover--default .vh-profile-name,
.vh-profile-cover--default .vh-profile-username,
.vh-profile-cover--default .vh-profile-bio {
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.vh-profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vh-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    flex-shrink: 0;
}

.vh-profile-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 0.5rem;
}

.vh-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.vh-profile-cover--default .vh-profile-name {
    color: #fff;
}

.vh-profile-username {
    font-size: 0.9375rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.375rem;
}

.vh-profile-cover--default .vh-profile-username {
    color: rgba(255,255,255,.85);
}

.vh-profile-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.5;
}

.vh-profile-cover--default .vh-profile-bio {
    color: rgba(255,255,255,.9);
}

.vh-profile-actions {
    padding-bottom: 0.5rem;
}

.vh-verified-icon {
    color: var(--primary);
    font-size: 1rem;
}

.vh-profile-stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.vh-profile-stats {
    display: flex;
    gap: 0;
}

.vh-profile-stat {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border);
    min-width: 100px;
}

.vh-profile-stat__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.vh-profile-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}

.vh-profile-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.375rem 0;
}

.vh-profile-detail a { color: var(--primary); }

/* ================================================================
   24. SUBMIT POST PAGE
   ================================================================ */
/* ================================================================
   SUBMIT POST PAGE
   ================================================================ */

/* Hero banner */
.vh-submit-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #ec4899 100%);
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.vh-submit-hero__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.vh-submit-hero__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    color: #fff;
    flex-shrink: 0;
}

.vh-submit-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .25rem;
    font-family: var(--font-display);
}

.vh-submit-hero__sub {
    color: rgba(255,255,255,.8);
    font-size: .9375rem;
    margin: 0;
}

/* Page wrapper */
.vh-submit-wrap {
    padding: 2rem 0 3rem;
}

/* Two-column layout */
.vh-submit-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.75rem;
    align-items: start;
}

.vh-submit-main,
.vh-submit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Card */
.vh-scard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.vh-scard__header {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1.25rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}

.vh-scard__header i {
    font-size: 1rem;
    color: var(--primary);
}

.vh-scard__header h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Publish card */
.vh-scard--publish {
    background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.06) 100%);
    border-color: rgba(99,102,241,.2);
    text-align: center;
}

.vh-publish-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    font-size: .8rem;
    color: var(--text-muted);
    margin: .75rem 0 0;
}

/* Guidelines card */
.vh-scard--guide {
    background: linear-gradient(135deg, rgba(16,185,129,.04) 0%, rgba(59,130,246,.04) 100%);
    border-color: rgba(16,185,129,.15);
}

.vh-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.vh-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.vh-guide-list li i {
    color: #10b981;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* Type tile selector */
.vh-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.vh-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 80px;
    flex: 1;
    background: var(--bg);
}

.vh-type-tile input { display: none; }

.vh-type-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-type-tile__label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.vh-type-tile:hover,
.vh-type-tile.is-active {
    border-color: var(--tc, var(--primary));
    background: var(--bg-card);
}

.vh-type-tile:hover .vh-type-tile__icon,
.vh-type-tile.is-active .vh-type-tile__icon {
    background: var(--tc, var(--primary));
    color: #fff;
}

.vh-type-tile:hover .vh-type-tile__label,
.vh-type-tile.is-active .vh-type-tile__label {
    color: var(--tc, var(--primary));
}

/* Textarea tall */
.vh-textarea--tall {
    min-height: 260px;
}

/* Dropzone */
.vh-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
}

.vh-dropzone:hover,
.vh-dropzone.is-dragging {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.vh-dropzone__icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .875rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}

.vh-dropzone:hover .vh-dropzone__icon,
.vh-dropzone.is-dragging .vh-dropzone__icon {
    background: var(--primary);
    color: #fff;
}

.vh-dropzone__text {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 .25rem;
}

.vh-dropzone__hint {
    font-size: .8125rem;
    color: var(--text-muted);
}

.vh-dropzone__preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    display: block;
}

/* Tag cloud */
.vh-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.vh-tag-pill {
    font-size: .75rem;
    font-weight: 500;
    padding: .3rem .75rem;
    cursor: pointer;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-pill:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Form helpers */
.vh-form-hint {
    font-size: .775rem;
    color: var(--text-muted);
    margin-top: .375rem;
}

.vh-form-label__opt {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 900px) {
    .vh-submit-layout {
        grid-template-columns: 1fr;
    }
    .vh-submit-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .vh-submit-hero { padding: 1.75rem 0; }
    .vh-submit-hero__title { font-size: 1.375rem; }
    .vh-type-grid { gap: .5rem; }
    .vh-type-tile { min-width: 60px; padding: .75rem .875rem; }
    .vh-type-tile__icon { width: 36px; height: 36px; font-size: 1.125rem; }
}

/* Form grid */
.vh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vh-tag-chip--sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-chip--sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 639px) {
    .vh-form-grid { grid-template-columns: 1fr; }
}

.vh-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.vh-sidebar-link:last-child { border-bottom: none; }
.vh-sidebar-link:hover { color: var(--primary); }

.vh-sidebar-link i { width: 1rem; text-align: center; }

/* ================================================================
   25. RESPONSIVE / MOBILE
   ================================================================ */
@media (max-width: 1023px) {
    /* Mobile nav overlay */
    .vh-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        z-index: 500;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .vh-header__nav.is-open {
        display: flex;
        transform: translateX(0);
    }

    .vh-nav-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1.25rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .vh-nav-close__btn {
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--text);
        cursor: pointer;
        padding: 0.25rem;
        line-height: 1;
    }

    /* Mobile nav search form */
    .vh-mobile-nav-search {
        display: flex;
        /* hidden by default rule below, shown only here on mobile */
        align-items: center;
        gap: 0.5rem;
        background: var(--bg-sidebar);
        border-radius: var(--radius-sm);
        padding: 0.6rem 0.875rem;
        margin-bottom: 0.75rem;
    }
    .vh-mobile-nav-search i {
        color: var(--text-muted);
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    .vh-mobile-nav-search input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        font-size: 0.9rem;
        color: var(--text);
        font-family: inherit;
    }
    .vh-mobile-nav-search input::placeholder {
        color: var(--text-muted);
    }

    .vh-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .vh-nav__link {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .vh-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .vh-nav__item--has-dropdown .vh-dropdown {
        display: none;
    }

    .vh-hero__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .vh-post__title { font-size: 1.5rem; }
    .vh-posts-grid { grid-template-columns: 1fr; }
    .vh-hero__main { min-height: 240px; }
    .vh-auth-card { padding: 1.75rem 1.25rem; }
    .vh-footer__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   SETTINGS / EDIT PROFILE PAGE
   ================================================================ */
.vh-settings-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.vh-settings-header {
    margin-bottom: 2rem;
}

.vh-settings-header__title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .375rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vh-settings-header__sub {
    color: var(--text-muted);
    font-size: .9375rem;
    margin: 0;
}

.vh-settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.vh-settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vh-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.vh-settings-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}

/* Avatar upload area */
.vh-settings-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
}

.vh-settings-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Input with @ prefix */
.vh-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vh-input-prefix {
    position: absolute;
    left: .875rem;
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.vh-input--prefix {
    padding-left: 2rem;
}

/* Required field asterisk */
.vh-required {
    color: var(--danger);
    font-size: .875rem;
}

/* Form grid: 2-col */
.vh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Input with icon button on right */

.vh-input--icon-right {
    padding-right: 2.75rem;
}

/* Sidebar quick links */
.vh-sidebar-link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    margin-bottom: .25rem;
}

.vh-sidebar-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-sidebar-link i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.vh-sidebar-link:hover i {
    color: var(--primary);
}

/* Responsive settings */
@media (max-width: 900px) {
    .vh-settings-layout {
        grid-template-columns: 1fr;
    }

    .vh-settings-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .vh-settings-sidebar .vh-settings-card {
        flex: 1;
        min-width: 220px;
    }
}

@media (max-width: 640px) {
    .vh-settings-page {
        padding: 1.25rem 0 2rem;
    }

    .vh-form-grid {
        grid-template-columns: 1fr;
    }

    .vh-settings-sidebar {
        flex-direction: column;
    }

    .vh-settings-card {
        padding: 1.25rem;
    }
}

/* ================================================================
   POST SIDEBAR WIDGETS
   ================================================================ */

/* ── Author Bio ── */
.vh-widget--author {}

.vh-author-bio__top {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.vh-author-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.vh-author-bio__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.vh-author-bio__info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.vh-author-bio__name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
}

.vh-author-bio__name:hover { color: var(--primary); }

.vh-author-bio__handle {
    font-size: .78rem;
    color: var(--text-muted);
}

.vh-author-bio__text {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 .75rem;
}

.vh-author-bio__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: .25rem;
    text-align: center;
}

.vh-author-bio__stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.vh-author-bio__stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.vh-author-bio__stat-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Trending Now ── */
.vh-trending-list {
    display: flex;
    flex-direction: column;
}

.vh-trending-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.vh-trending-item:last-child { border-bottom: none; }

.vh-trending-item:hover .vh-trending-item__title { color: var(--primary); }

.vh-trending-item__num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .35;
    min-width: 28px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.vh-trending-item:nth-child(1) .vh-trending-item__num,
.vh-trending-item:nth-child(2) .vh-trending-item__num,
.vh-trending-item:nth-child(3) .vh-trending-item__num {
    opacity: 1;
}

.vh-trending-item__body { flex: 1; min-width: 0; }

.vh-trending-item__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0 0 .3rem;
    transition: color var(--transition);
}

.vh-trending-item__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--text-muted);
}

.vh-badge--xs {
    font-size: .65rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}

/* ── Popular Categories ── */
.vh-cat-widget-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.vh-cat-widget-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #fff;
}

.vh-cat-widget-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.vh-cat-widget-row:hover {
    background: var(--bg);
}

.vh-cat-widget-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vh-cat-widget-name {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.vh-cat-widget-row:hover .vh-cat-widget-name { color: var(--primary); }

.vh-cat-widget-count {
    font-size: .75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* ── Newsletter widget ── */
.vh-widget--newsletter {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
}

.vh-newsletter-widget {
    text-align: center;
    padding: .25rem 0;
}

.vh-newsletter-widget__icon {
    font-size: 2rem;
    color: rgba(255,255,255,.9);
    margin-bottom: .5rem;
}

.vh-newsletter-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .35rem;
}

.vh-newsletter-widget__sub {
    font-size: .8rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 .875rem;
    line-height: 1.5;
}

.vh-newsletter-widget__form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.vh-newsletter-widget__form .vh-input {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
    color: #fff;
    text-align: center;
}

.vh-newsletter-widget__form .vh-input::placeholder { color: rgba(255,255,255,.6); }

.vh-newsletter-widget__form .vh-input:focus {
    background: rgba(255,255,255,.25);
    border-color: #fff;
    box-shadow: none;
}

.vh-newsletter-widget__form .vh-btn--primary {
    background: #fff;
    color: #6366f1;
    border: none;
}

.vh-newsletter-widget__form .vh-btn--primary:hover {
    background: rgba(255,255,255,.9);
}

.vh-newsletter-widget__note {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin: .5rem 0 0;
}
