/*
Theme Name: Velshi Theme
Theme URI: https://thevelshiexchange.com
Author: The Velshi Exchange Dev Team
Author URI: https://thevelshiexchange.com
Description: A premium, video-first WordPress theme for The Velshi Exchange — Ali Velshi's independent media platform. Features a modern dark navy + gold design system with full support for VX custom post types.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velshi-theme
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================
   DESIGN SYSTEM — CSS Custom Properties
   ============================ */
:root {
    /* Color palette */
    --vx-navy:         #0a0e1a;
    --vx-navy-light:   #141829;
    --vx-navy-medium:  #1c2136;
    --vx-navy-soft:    #252a42;
    --vx-gold:         #d4af37;
    --vx-gold-light:   #f0d060;
    --vx-gold-hover:   #e8c547;
    --vx-white:        #ffffff;
    --vx-light:        #0a0e1a;
    --vx-gray-100:     #141829;
    --vx-gray-200:     #1c2136;
    --vx-gray-300:     #252a42;
    --vx-gray-400:     #475569;
    --vx-gray-500:     #64748b;
    --vx-gray-600:     #94a3b8;
    --vx-text:         #ffffff;
    --vx-text-light:   #cbd5e1;
    --vx-text-muted:   #94a3b8;
    --vx-success:      #22c55e;
    --vx-error:        #ef4444;
    --vx-warning:      #f59e0b;
    --vx-info:         #3b82f6;

    /* Typography */
    --vx-font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vx-font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --vx-font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Spacing */
    --vx-space-xs:     4px;
    --vx-space-sm:     8px;
    --vx-space-md:     16px;
    --vx-space-lg:     24px;
    --vx-space-xl:     32px;
    --vx-space-2xl:    48px;
    --vx-space-3xl:    64px;
    --vx-space-4xl:    96px;

    /* Border radius */
    --vx-radius-sm:    6px;
    --vx-radius-md:    12px;
    --vx-radius-lg:    16px;
    --vx-radius-xl:    24px;
    --vx-radius-full:  9999px;

    /* Shadows */
    --vx-shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
    --vx-shadow-md:    0 4px 12px rgba(0,0,0,0.08);
    --vx-shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
    --vx-shadow-xl:    0 16px 48px rgba(0,0,0,0.16);
    --vx-shadow-gold:  0 4px 20px rgba(212,175,55,0.3);

    /* Transitions */
    --vx-transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --vx-container:    1280px;
    --vx-container-sm: 960px;
    --vx-header-height: 72px;
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--vx-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vx-text);
    background: var(--vx-light);
    overflow-x: hidden;
}

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

a {
    color: var(--vx-gold);
    text-decoration: none;
    transition: var(--vx-transition);
}

a:hover {
    color: var(--vx-gold-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vx-font-serif);
    line-height: 1.25;
    color: var(--vx-text);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

/* ============================
   LAYOUT UTILITIES
   ============================ */
.vx-container {
    width: 100%;
    max-width: var(--vx-container);
    margin: 0 auto;
    padding: 0 var(--vx-space-lg);
}

.vx-container-sm {
    max-width: var(--vx-container-sm);
}

.vx-section {
    padding: var(--vx-space-3xl) 0;
}

.vx-section-dark {
    background: var(--vx-navy);
    color: var(--vx-white);
}

.vx-section-dark h2,
.vx-section-dark h3 {
    color: var(--vx-white);
}

.vx-grid {
    display: grid;
    gap: var(--vx-space-lg);
}

.vx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.vx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vx-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================
   HEADER
   ============================ */
.vx-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: var(--vx-header-height);
}

.vx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--vx-container);
    margin: 0 auto;
    padding: 0 var(--vx-space-lg);
}

.vx-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--vx-white);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    flex-shrink: 0 !important;
}

.vx-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--vx-gold), var(--vx-gold-light));
    color: var(--vx-navy);
    font-weight: 900;
    font-size: 18px;
    border-radius: var(--vx-radius-sm);
    letter-spacing: 1px;
    flex-shrink: 0 !important;
}

.vx-logo-text {
    font-family: var(--vx-font-sans);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0 !important;
}

/* Image Logo constraints for Elementor or Customizer logos */
.vx-logo img,
.custom-logo-link img,
.elementor-widget-theme-site-logo img,
.vx-header-inner img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* Navigation */
.vx-nav {
    display: flex;
    align-items: center;
    gap: var(--vx-space-sm);
}

.vx-nav a {
    color: var(--vx-gray-300);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--vx-radius-sm);
    transition: var(--vx-transition);
}

.vx-nav a:hover,
.vx-nav a.current-menu-item > a {
    color: var(--vx-white);
    background: rgba(255,255,255,0.06);
}

.vx-header-actions {
    display: flex;
    align-items: center;
    gap: var(--vx-space-md);
}

/* Search in header */
.vx-header-search {
    position: relative;
}

.vx-header-search input {
    width: 200px;
    padding: 8px 36px 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--vx-radius-full);
    color: var(--vx-white);
    font-size: 13px;
    transition: var(--vx-transition);
}

.vx-header-search input::placeholder {
    color: var(--vx-gray-400);
}

.vx-header-search input:focus {
    width: 280px;
    border-color: var(--vx-gold);
    outline: none;
    background: rgba(255,255,255,0.1);
}

.vx-header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--vx-gray-400);
    cursor: pointer;
}

/* CTA button in header */
.vx-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--vx-gold), var(--vx-gold-light));
    color: var(--vx-navy) !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--vx-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--vx-transition);
}

.vx-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--vx-shadow-gold);
    color: var(--vx-navy) !important;
}

/* Mobile Menu Toggle */
.vx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vx-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ============================
   HERO / NEWSLETTER CTA
   ============================ */
.vx-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0d1b33 100%);
    padding: var(--vx-space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vx-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59,130,246,0.03) 0%, transparent 50%);
    animation: vx-hero-glow 15s ease-in-out infinite;
}

@keyframes vx-hero-glow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.vx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.vx-hero h1 {
    color: var(--vx-white);
    margin-bottom: var(--vx-space-md);
}

.vx-hero h1 span {
    color: var(--vx-gold);
}

.vx-hero p {
    color: var(--vx-gray-300);
    font-size: 18px;
    margin-bottom: var(--vx-space-xl);
}

/* ============================
   CONTENT CARDS
   ============================ */
.vx-card {
    background: var(--vx-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--vx-radius-lg);
    overflow: hidden;
    box-shadow: var(--vx-shadow-md);
    transition: var(--vx-transition);
    display: flex;
    flex-direction: column;
}

.vx-card:hover {
    box-shadow: var(--vx-shadow-lg);
    transform: translateY(-4px);
}

.vx-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--vx-navy);
}

.vx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vx-card:hover .vx-card-media img {
    transform: scale(1.05);
}

.vx-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vx-navy);
    font-size: 20px;
    transition: var(--vx-transition);
    opacity: 0.9;
}

.vx-card:hover .vx-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.vx-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--vx-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vx-badge-video { background: #ef4444; color: #fff; }
.vx-badge-newsletter { background: #3b82f6; color: #fff; }
.vx-badge-msnow { background: #8b5cf6; color: #fff; }
.vx-badge-bookclub { background: #10b981; color: #fff; }
.vx-badge-podcast { background: #f59e0b; color: #000; }

.vx-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.vx-card-body {
    padding: var(--vx-space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vx-card-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--vx-gold);
    margin-bottom: var(--vx-space-sm);
}

.vx-card-title {
    font-family: var(--vx-font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--vx-space-sm);
    color: var(--vx-white);
}

.vx-card-title a {
    color: inherit;
    text-decoration: none;
}

.vx-card-title a:hover {
    color: var(--vx-gold);
}

.vx-card-excerpt {
    font-size: 14px;
    color: var(--vx-text-light);
    line-height: 1.6;
    flex: 1;
}

.vx-card-meta {
    display: flex;
    align-items: center;
    gap: var(--vx-space-md);
    margin-top: var(--vx-space-md);
    padding-top: var(--vx-space-md);
    border-top: 1px solid var(--vx-gray-100);
    font-size: 13px;
    color: var(--vx-text-muted);
}

.vx-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vx-card-topics {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.vx-topic-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--vx-navy-medium);
    border-radius: var(--vx-radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--vx-gray-600);
    text-decoration: none;
    transition: var(--vx-transition);
}

.vx-topic-tag:hover {
    background: var(--vx-gold);
    color: var(--vx-navy);
}

/* ============================
   FEATURED VIDEO PLAYER
   ============================ */
.vx-featured-video {
    position: relative;
    border-radius: var(--vx-radius-xl);
    overflow: hidden;
    background: var(--vx-navy);
    box-shadow: var(--vx-shadow-xl);
}

.vx-featured-video video,
.vx-featured-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.vx-featured-video-info {
    padding: var(--vx-space-xl);
    background: var(--vx-navy-light);
    color: var(--vx-white);
}

.vx-featured-video-info h2 {
    color: var(--vx-white);
    margin-bottom: var(--vx-space-sm);
}

.vx-featured-video-info p {
    color: var(--vx-gray-300);
}

/* ============================
   SECTION HEADERS
   ============================ */
.vx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--vx-space-xl);
}

.vx-section-header h2 {
    position: relative;
    padding-left: 20px;
}

.vx-section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--vx-gold);
    border-radius: 2px;
}

.vx-section-header a {
    font-size: 14px;
    font-weight: 600;
    color: var(--vx-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================
   EDITORS PICKS
   ============================ */
.vx-editors-picks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vx-space-lg);
}

/* ============================
   BOOK SECTION
   ============================ */
.vx-books-section {
    background: linear-gradient(135deg, var(--vx-navy), #1a1040);
    padding: var(--vx-space-3xl) 0;
    color: var(--vx-white);
}

.vx-book-showcase {
    display: flex;
    align-items: center;
    gap: var(--vx-space-3xl);
}

.vx-book-cover {
    flex-shrink: 0;
    width: 240px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    transition: var(--vx-transition);
}

.vx-book-cover:hover {
    transform: rotate(-2deg) translateY(-8px);
}

.vx-book-cover img {
    border-radius: var(--vx-radius-md);
}

.vx-book-info h2 {
    color: var(--vx-white);
    margin-bottom: var(--vx-space-md);
}

.vx-book-info p {
    color: var(--vx-gray-300);
    max-width: 500px;
}

/* ============================
   TRANSCRIPT
   ============================ */
.vx-transcript {
    margin-top: var(--vx-space-xl);
    border: 1px solid var(--vx-gray-200);
    border-radius: var(--vx-radius-lg);
    overflow: hidden;
}

.vx-transcript-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--vx-space-md) var(--vx-space-lg);
    background: var(--vx-gray-100);
    cursor: pointer;
    font-weight: 600;
    color: var(--vx-text);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

.vx-transcript-content {
    padding: var(--vx-space-lg);
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    display: none;
}

.vx-transcript-content.open {
    display: block;
}

/* ============================
   ARCHIVE / FILTERS
   ============================ */
.vx-archive-header {
    background: var(--vx-navy);
    padding: var(--vx-space-3xl) 0 var(--vx-space-xl);
    color: var(--vx-white);
}

.vx-archive-header h1 {
    color: var(--vx-white);
}

.vx-archive-filters {
    display: flex;
    gap: var(--vx-space-md);
    flex-wrap: wrap;
    padding: var(--vx-space-lg) 0;
    border-bottom: 1px solid var(--vx-gray-200);
    margin-bottom: var(--vx-space-xl);
}

.vx-filter-select {
    padding: 10px 16px;
    border: 2px solid var(--vx-navy-medium);
    border-radius: var(--vx-radius-md);
    font-size: 14px;
    color: var(--vx-text);
    background: var(--vx-navy-light);
    cursor: pointer;
    transition: var(--vx-transition);
}

.vx-filter-select:focus {
    border-color: var(--vx-gold);
    outline: none;
}

.vx-view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.vx-view-toggle button {
    padding: 8px 12px;
    background: var(--vx-gray-100);
    border: none;
    border-radius: var(--vx-radius-sm);
    cursor: pointer;
    color: var(--vx-gray-500);
    transition: var(--vx-transition);
}

.vx-view-toggle button.active {
    background: var(--vx-navy);
    color: var(--vx-white);
}

.vx-sort-select {
    padding: 10px 16px;
    border: 2px solid var(--vx-gray-200);
    border-radius: var(--vx-radius-md);
    font-size: 14px;
}

/* ============================
   SEARCH
   ============================ */
.vx-search-page {
    padding: var(--vx-space-3xl) 0;
}

.vx-search-box {
    max-width: 700px;
    margin: 0 auto var(--vx-space-2xl);
    position: relative;
}

.vx-search-box input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border: 2px solid var(--vx-navy-medium);
    background: var(--vx-navy-light);
    color: var(--vx-white);
    border-radius: var(--vx-radius-xl);
    font-size: 18px;
    transition: var(--vx-transition);
}

.vx-search-box input:focus {
    border-color: var(--vx-gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}

.vx-search-results-count {
    text-align: center;
    color: var(--vx-text-light);
    margin-bottom: var(--vx-space-xl);
}

/* ============================
   FOOTER
   ============================ */
.vx-footer {
    background: var(--vx-navy);
    color: var(--vx-gray-300);
    padding: var(--vx-space-3xl) 0 var(--vx-space-xl);
}

.vx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--vx-space-2xl);
    padding-bottom: var(--vx-space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vx-footer-brand {
    max-width: 300px;
}

.vx-footer-brand p {
    color: var(--vx-gray-400);
    font-size: 14px;
    margin-top: var(--vx-space-md);
}

.vx-footer h4 {
    color: var(--vx-white);
    font-family: var(--vx-font-sans);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--vx-space-lg);
}

.vx-footer-links {
    list-style: none;
}

.vx-footer-links li {
    margin-bottom: var(--vx-space-sm);
}

.vx-footer-links a {
    color: var(--vx-gray-400);
    font-size: 14px;
    transition: var(--vx-transition);
}

.vx-footer-links a:hover {
    color: var(--vx-gold);
    padding-left: 4px;
}

.vx-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--vx-space-xl);
    font-size: 13px;
    color: var(--vx-gray-500);
}

.vx-footer-social {
    display: flex;
    gap: var(--vx-space-md);
}

.vx-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--vx-radius-sm);
    color: var(--vx-gray-400);
    font-size: 14px;
    transition: var(--vx-transition);
}

.vx-footer-social a:hover {
    background: var(--vx-gold);
    color: var(--vx-navy);
}

/* ============================
   PAGINATION
   ============================ */
.vx-pagination {
    display: flex;
    justify-content: center;
    gap: var(--vx-space-sm);
    margin-top: var(--vx-space-2xl);
}

.vx-pagination a,
.vx-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--vx-radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--vx-transition);
}

.vx-pagination a {
    background: var(--vx-navy-light);
    color: var(--vx-text);
    border: 1px solid var(--vx-navy-medium);
}

.vx-pagination a:hover {
    border-color: var(--vx-gold);
    color: var(--vx-gold);
}

.vx-pagination span.current {
    background: var(--vx-navy);
    color: var(--vx-white);
    border: none;
}

/* ============================
   SINGLE POST
   ============================ */
.vx-single-header {
    background: var(--vx-navy);
    padding: var(--vx-space-2xl) 0;
    color: var(--vx-white);
}

.vx-single-header h1 {
    color: var(--vx-white);
    max-width: 800px;
}

.vx-breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: var(--vx-space-md);
    color: var(--vx-gray-400);
}

.vx-breadcrumbs a {
    color: var(--vx-gray-400);
}

.vx-breadcrumbs a:hover {
    color: var(--vx-gold);
}

.vx-single-content {
    max-width: 800px;
    margin: var(--vx-space-2xl) auto;
    padding: 0 var(--vx-space-lg);
}

.vx-single-content p {
    font-size: 17px;
    line-height: 1.8;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .vx-editors-picks {
        grid-template-columns: repeat(2, 1fr);
    }
    .vx-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .vx-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .vx-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --vx-header-height: 60px;
    }

    .vx-nav { display: none; }
    .vx-mobile-toggle { display: block; }

    .vx-nav.vx-nav-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--vx-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--vx-navy);
        padding: var(--vx-space-lg);
        z-index: 999;
        overflow-y: auto;
    }

    .vx-header-search input { width: 140px; }
    .vx-header-search input:focus { width: 180px; }

    .vx-hero { padding: var(--vx-space-2xl) 0; }

    .vx-editors-picks,
    .vx-grid-2, .vx-grid-3, .vx-grid-4 {
        grid-template-columns: 1fr;
    }

    .vx-footer-grid {
        grid-template-columns: 1fr;
    }

    .vx-book-showcase {
        flex-direction: column;
        text-align: center;
    }

    .vx-book-cover { width: 180px; }

    .vx-footer-bottom {
        flex-direction: column;
        gap: var(--vx-space-md);
        text-align: center;
    }

    .vx-archive-filters {
        flex-direction: column;
    }

    .vx-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--vx-space-sm);
    }
}

@media (max-width: 480px) {
    .vx-container { padding: 0 var(--vx-space-md); }
    .vx-header-cta { display: none; }
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vx-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth loading for cards */
.vx-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.vx-card:nth-child(1) { animation-delay: 0.1s; }
.vx-card:nth-child(2) { animation-delay: 0.2s; }
.vx-card:nth-child(3) { animation-delay: 0.3s; }
.vx-card:nth-child(4) { animation-delay: 0.4s; }
.vx-card:nth-child(5) { animation-delay: 0.5s; }
.vx-card:nth-child(6) { animation-delay: 0.6s; }

/* Skeleton loading */
.vx-skeleton {
    background: linear-gradient(90deg, var(--vx-gray-100) 25%, var(--vx-gray-200) 37%, var(--vx-gray-100) 63%);
    background-size: 400% 100%;
    animation: vx-skeleton-loading 1.4s ease infinite;
    border-radius: var(--vx-radius-sm);
}

@keyframes vx-skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Hide stray text nodes (e.g. letter 't') around user menu, shortcodes, and avatar */
.vx-user-menu-logged-in,
.vx-user-menu-guest,
.vx-user-avatar-toggle,
.elementor-widget-shortcode {
    font-size: 0 !important;
    line-height: 0 !important;
}

.vx-user-menu-logged-in *,
.vx-user-menu-guest *,
.vx-user-avatar-toggle *,
.elementor-widget-shortcode * {
    font-size: 14px !important;
    line-height: normal !important;
}

