/* ==========================================================================
   VaperBG — Homepage Visual Effects
   Source: extracted from inline <style> in Main Page.txt
   DO NOT add CDN imports here — all dependencies are enqueued via functions.php.
   ========================================================================== */

/* ── Base wrapper ─────────────────────────────────────────────────────────── */
#vape-homepage-wrapper {
    background-color: #050505;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* ── WebGL hero canvas ────────────────────────────────────────────────────── */
#vape-hero-complex       { position: relative; overflow: hidden; }
#webgl-vapor-canvas      { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: auto; }
.content-layer           { position: relative; z-index: 10; pointer-events: none; }
.content-layer a,
.content-layer button    { pointer-events: auto; }

/* ── GLITCH EFFECT ────────────────────────────────────────────────────────── */
.glitch-text             { position: relative; display: inline-block; color: #fff; }
.glitch-text::before,
.glitch-text::after      { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; pointer-events: none; opacity: 0; }
.glitch-text:hover::before { left: 3px;  text-shadow: -2px 0 #e11d48; animation: glitch-anim-1 2s infinite linear alternate-reverse; opacity: 1; z-index: -1; }
.glitch-text:hover::after  { left: -3px; text-shadow: -2px 0 #00ffff; animation: glitch-anim-2 3s infinite linear alternate-reverse; opacity: 1; z-index: -2; }

@keyframes glitch-anim-1 {
    0%   { clip-path: inset(20% 0 80% 0); }
    20%  { clip-path: inset(60% 0 10% 0); }
    40%  { clip-path: inset(40% 0 50% 0); }
    60%  { clip-path: inset(80% 0  5% 0); }
    80%  { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
    0%   { clip-path: inset(10% 0 60% 0); }
    20%  { clip-path: inset(30% 0 20% 0); }
    40%  { clip-path: inset(70% 0 10% 0); }
    60%  { clip-path: inset(20% 0 50% 0); }
    80%  { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset( 5% 0 80% 0); }
}

/* ── NEON PULSE BUTTON ────────────────────────────────────────────────────── */
.btn-neon-pulse {
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4), 0 0 30px rgba(225, 29, 72, 0.2);
    animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
    0%   { box-shadow: 0 0 15px rgba(225, 29, 72, 0.4), 0 0 30px rgba(225, 29, 72, 0.2); }
    50%  { box-shadow: 0 0 25px rgba(225, 29, 72, 0.7), 0 0 50px rgba(225, 29, 72, 0.4); }
    100% { box-shadow: 0 0 15px rgba(225, 29, 72, 0.4), 0 0 30px rgba(225, 29, 72, 0.2); }
}

/* ── MAGNETIC 3D GLASS CARDS ──────────────────────────────────────────────── */
.glass-card {
    background: rgba(17, 17, 17, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    position: relative;
    transform: perspective(1000px);
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(225, 29, 72, 0.2),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.glass-card:hover::before { opacity: 1; }

.pop-out-3d {
    transform: translateZ(50px);
    position: relative;
    z-index: 20;
    transition: transform 0.3s ease;
}
.card-shadow-layer { transform: translateZ(10px); }

/* ── TRUST SIGNAL SHIMMER ─────────────────────────────────────────────────── */
@keyframes shimmer-sweep {
    0%   { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(200%)  skewX(-20deg); }
}
.shine-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(225, 29, 72, 0.08), transparent);
    transform: translateX(-150%) skewX(-20deg);
}
.trust-card:hover .shine-layer { animation: shimmer-sweep 1.5s infinite; }

/* ── About Us page layout (works without Tailwind utilities) ─────────────── */
#vape-about-wrapper {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

#vape-about-wrapper #vape-hero-complex {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    height: 60vh;
    padding: 4rem 1rem;
    background-color: #050505;
    color: #ffffff;
    border-bottom: 1px solid #222222;
}

@media (min-width: 768px) {
    #vape-about-wrapper #vape-hero-complex {
        min-height: 560px;
    }
}

#vape-about-wrapper .vg-about-section {
    padding: 4rem 1rem;
    background-color: #050505;
}

#vape-about-wrapper .vg-about-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

#vape-about-wrapper .vg-about-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}

#vape-about-wrapper .vg-about-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    #vape-about-wrapper .vg-about-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    #vape-about-wrapper .vg-about-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#vape-about-wrapper .vg-about-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #e11d48;
    margin-bottom: 1.5rem;
}

#vape-about-wrapper .vg-about-lead {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.75;
    color: #888888;
    margin-bottom: 1rem;
}

#vape-about-wrapper .vg-about-hero-title {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

#vape-about-wrapper .vg-about-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: #888888;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

#vape-about-wrapper .vg-about-card {
    border-radius: 1rem;
    border: 1px solid #222222;
    padding: 2.5rem;
}

#vape-about-wrapper .vg-about-card--accent {
    border-bottom: 2px solid #e11d48;
}

#vape-about-wrapper .vg-about-media-card {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px -10px rgba(225, 29, 72, 0.3);
}

#vape-about-wrapper .vg-about-cta {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    #vape-about-wrapper .vg-about-cta {
        padding: 4rem;
    }
}

#vape-about-wrapper .vg-about-cta-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

#vape-about-wrapper .vg-about-btn {
    display: inline-block;
    background-color: #e11d48;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

#vape-about-wrapper .vg-about-btn:hover {
    background-color: #be123c;
    transform: scale(1.05);
    color: #ffffff !important;
}

/* Flatsome: allow full-bleed hero on inner pages */
.vaperbg-effects-page .page-title,
.vaperbg-effects-page .is-divider {
    display: none !important;
}

.vaperbg-effects-page #vape-about-wrapper,
.vaperbg-effects-page #vape-homepage-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
