/* ===== Wenoso logo (vanilla port of motion/react + ThemeContext) ===== */

.wenoso-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    perspective: 1000px;
}

a.wenoso-brand.wenoso-brand--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Sizes: sm md lg xl — match Tailwind from React */
.wenoso-brand--sm {
    --wenoso-cube: 48px;
    --wenoso-letter: 1.25rem;
    --wenoso-word: 1.125rem;
    --wenoso-r-outer: 24px;
    --wenoso-r-inner: 16px;
    --wenoso-pad: 8px;
}

.wenoso-brand--md {
    --wenoso-cube: 46px;
    --wenoso-letter: 1.1rem;
    --wenoso-word: 1.25rem;
    --wenoso-r-outer: 24px;
    --wenoso-r-inner: 16px;
    --wenoso-pad: 8px;
}

.wenoso-brand--lg {
    --wenoso-cube: 80px;
    --wenoso-letter: 2.25rem;
    --wenoso-word: 1.875rem;
    --wenoso-r-outer: 24px;
    --wenoso-r-inner: 16px;
    --wenoso-pad: 8px;
}

.wenoso-brand--xl {
    --wenoso-cube: 112px;
    --wenoso-letter: 3.75rem;
    --wenoso-word: 2.25rem;
    --wenoso-r-outer: 24px;
    --wenoso-r-inner: 16px;
    --wenoso-pad: 8px;
}

.wenoso-brand__cube {
    position: relative;
    width: var(--wenoso-cube);
    height: var(--wenoso-cube);
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
}

.wenoso-brand:hover .wenoso-brand__cube {
    transform: scale(1.08) rotateY(15deg) rotateX(5deg);
}

.wenoso-brand__glow {
    position: absolute;
    inset: 0;
    border-radius: var(--wenoso-r-outer);
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    filter: blur(24px);
    animation: wenosoLogoGlow 3s ease-in-out infinite;
}

@keyframes wenosoLogoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

.wenoso-brand__plate {
    position: absolute;
    inset: 0;
    border-radius: var(--wenoso-r-outer);
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.95), rgba(25, 25, 50, 0.98));
    border: 3px solid rgba(139, 92, 246, 0.6);
    box-shadow:
        0 15px 50px rgba(99, 102, 241, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3);
        border-radius: 99999999999px;
}

.wenoso-brand__inner-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--wenoso-pad);
    transform-style: preserve-3d;
}

.wenoso-brand__face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--wenoso-r-inner);
    overflow: hidden;
    background: linear-gradient(145deg, #5b52e5 0%, #8945ed 40%, #a945ea 100%);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.4),
        inset 0 -6px 12px rgba(0, 0, 0, 0.3);
    transform: translateZ(10px);
    border-radius: 99999999999px;
}

.wenoso-brand__reflection-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.wenoso-brand__letter-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wenoso-brand__w-shadow,
.wenoso-brand__w-main {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: var(--wenoso-letter);
    font-weight: 900;
    line-height: 1;
}

.wenoso-brand__w-shadow--3 {
    color: rgba(0, 0, 0, 0.25);
    transform: translate(3px, 3px);
    filter: blur(3px);
}

.wenoso-brand__w-shadow--2 {
    color: rgba(0, 0, 0, 0.4);
    transform: translate(2px, 2px);
    filter: blur(2px);
}

.wenoso-brand__w-shadow--1 {
    color: rgba(0, 0, 0, 0.5);
    transform: translate(1px, 1px);
    filter: blur(1px);
}

.wenoso-brand__w-main {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 40%, #dde4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transform: translateZ(20px);
    animation: wenosoLogoWPulse 2s ease-in-out infinite;
}

@keyframes wenosoLogoWPulse {
    0%, 100% {
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    }
}

.wenoso-brand__reflection-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.wenoso-brand__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    animation: wenosoLogoShimmer 4s linear 2s infinite;
    pointer-events: none;
}

@keyframes wenosoLogoShimmer {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(200%);
    }
}

.wenoso-brand__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.wenoso-brand__edge {
    position: absolute;
    inset: 0;
    border-radius: var(--wenoso-r-inner);
    pointer-events: none;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

.wenoso-brand__floor {
    position: absolute;
    inset: 0;
    border-radius: var(--wenoso-r-outer);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(147, 51, 234, 0.7));
    filter: blur(6px);
    transform: translateY(4px) translateZ(-10px) scale(0.96);
    z-index: -1;
}

.wenoso-brand__word {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--wenoso-word);
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: lowercase;
    animation: wenosoLogoWordIn 0.5s ease forwards;
}

@keyframes wenosoLogoWordIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.theme-dark .wenoso-brand__word {
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(99, 102, 241, 0.8),
        0 2px 8px rgba(99, 102, 241, 0.6),
        0 4px 12px rgba(139, 92, 246, 0.4);
}

.theme-light .wenoso-brand__word {
    color: #0f172a;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .wenoso-brand__cube {
        transition: none;
    }

    .wenoso-brand:hover .wenoso-brand__cube {
        transform: none;
    }

    .wenoso-brand__glow,
    .wenoso-brand__w-main,
    .wenoso-brand__shimmer,
    .wenoso-brand__word {
        animation: none;
    }

    .wenoso-brand__word {
        opacity: 1;
        transform: none;
    }
}
