/**
 * Wrap Studio 3D Pro — Hero Edit Cinematic Styles
 * [ws3d_hero_edit] shortcode
 */

/* === HERO CONTAINER === */
.ws3d-hero-edit {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.ws3d-hero-edit canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* === LOADER === */
.ws3d-hero-loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 0.6s ease;
}

.ws3d-hero-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.ws3d-hero-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(196, 163, 90, 0.15);
    border-top-color: #c4a35a;
    border-radius: 50%;
    animation: ws3d-hero-spin 0.7s linear infinite;
}

@keyframes ws3d-hero-spin {
    to { transform: rotate(360deg); }
}

/* === OVERLAY CONTENT === */
.ws3d-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.ws3d-hero-overlay-inner {
    width: 100%;
    padding: 0 2rem 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.ws3d-hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.ws3d-hero-title .accent {
    color: #c4a35a;
}

.ws3d-hero-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.ws3d-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 163, 90, 0.12);
    border: 1px solid rgba(196, 163, 90, 0.25);
    color: #c4a35a;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.4rem 1rem;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.ws3d-hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4a35a;
    animation: ws3d-hero-pulse 2s ease-in-out infinite;
}

@keyframes ws3d-hero-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* === VIGNETTE EFFECT === */
.ws3d-hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.5);
}

/* === FILM GRAIN OVERLAY === */
.ws3d-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
}

/* === CINEMATIC BARS (letterbox) === */
.ws3d-hero-letterbox-top,
.ws3d-hero-letterbox-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 6%;
    background: #000;
    z-index: 8;
    pointer-events: none;
}
.ws3d-hero-letterbox-top { top: 0; }
.ws3d-hero-letterbox-bottom { bottom: 0; }

/* === SCROLL HINT === */
.ws3d-hero-scroll-hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    pointer-events: none;
}

.ws3d-hero-scroll-hint .chevron {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(196,163,90,0.4);
    border-bottom: 2px solid rgba(196,163,90,0.4);
    transform: rotate(45deg);
    animation: ws3d-hero-chevron 2s ease-in-out infinite;
}

@keyframes ws3d-hero-chevron {
    0%, 100% { transform: rotate(45deg) translateY(-4px); opacity: 0.3; }
    50% { transform: rotate(45deg) translateY(4px); opacity: 0.8; }
}

/* === POWERED BADGE === */
.ws3d-hero-powered {
    position: absolute;
    bottom: 7%;
    right: 2rem;
    z-index: 12;
    color: rgba(255,255,255,0.12);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ws3d-hero-overlay-inner {
        padding: 0 1.25rem 2rem;
    }
    .ws3d-hero-letterbox-top,
    .ws3d-hero-letterbox-bottom {
        height: 4%;
    }
}
