/* ============================================
   SQUIRREL.CSS — Ooi Solutions (v11)
   "Don't Click" button + Bomb icon + Squirrel animation
   2-COLUMN LAYOUT: Left=text, Right=video+button at BOTTOM
   Animated bomb icon with flickering fuse
   Squirrel throw animation (section-contained)
   ============================================ */

/* ── 2-COLUMN LAYOUT for Don't Click section ── */
.dont-click-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    min-height: 400px;
}

/* LEFT COLUMN: All text content */
.dont-click-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* RIGHT COLUMN: Video on top, button at BOTTOM */
.dont-click-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-bottom: 0;
}

/* ── SQUIRREL VIDEO (above Don't Click button) ── */
.squirrel-mascot-vid {
    width: 200px;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 16px;
    animation: squirrelWiggle 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
    pointer-events: none;
    user-select: none;
    border: none;
    outline: none;
}

@keyframes squirrelWiggle {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    15% { transform: rotate(4deg) scale(1.05); }
    30% { transform: rotate(-2deg) scale(1); }
    45% { transform: rotate(3deg) scale(1.03); }
    60% { transform: rotate(-1deg) scale(1); }
    75% { transform: rotate(2deg) scale(1.02); }
}

/* ── CTA ROW LAYOUT ── */
.flow-cta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}
.flow-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.flow-cta-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

/* ── DANGER BUTTON (Don't Click) — with BOMB icon ── */
.flow-cta-btn--danger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(204, 78, 60, 0.7);
    border-radius: var(--radius-full);
    padding: 14px 28px;
    background: rgba(204, 78, 60, 0.12);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    animation: dangerPulse 2.5s ease-in-out infinite;
    box-shadow:
        0 0 20px rgba(204, 78, 60, 0.15),
        inset 0 0 20px rgba(204, 78, 60, 0.05);
}

/* ── BOMB ICON (animated, replaces warning triangle) ── */
.flow-cta-btn--danger .bomb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    animation: bombWobble 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.4));
}
.flow-cta-btn--danger .bomb-icon svg {
    width: 36px;
    height: 36px;
}

/* Bomb wobble animation - subtle shake like it's about to explode */
@keyframes bombWobble {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-3deg); }
    20% { transform: rotate(3deg); }
    30% { transform: rotate(-2deg); }
    40% { transform: rotate(2deg); }
    50% { transform: rotate(-1deg); }
    60% { transform: rotate(1deg); }
    70% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
    90% { transform: rotate(-1deg); }
}

/* Spark glow effect around the bomb fuse */
.bomb-spark {
    filter: blur(0.5px);
}

.flow-cta-btn--danger .danger-text {
    position: relative;
    z-index: 1;
}

/* Pulsing glow animation */
@keyframes dangerPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(204, 78, 60, 0.15),
            0 0 10px rgba(255, 165, 0, 0.05),
            inset 0 0 20px rgba(204, 78, 60, 0.05);
        border-color: rgba(204, 78, 60, 0.7);
    }
    50% {
        box-shadow:
            0 0 30px rgba(204, 78, 60, 0.3),
            0 0 60px rgba(204, 78, 60, 0.1),
            0 0 15px rgba(255, 165, 0, 0.15),
            inset 0 0 30px rgba(204, 78, 60, 0.08);
        border-color: rgba(204, 78, 60, 0.9);
    }
}

/* Hover: full danger mode */
.flow-cta-btn--danger:hover {
    background: rgba(204, 78, 60, 0.25);
    border-color: #CC4E3C;
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 40px rgba(204, 78, 60, 0.4),
        0 0 20px rgba(255, 165, 0, 0.2),
        0 8px 30px rgba(204, 78, 60, 0.3);
    animation: none;
}
.flow-cta-btn--danger:hover .bomb-icon {
    animation: bombShakeHover 0.15s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.7));
}

/* Faster shake on hover - about to explode! */
@keyframes bombShakeHover {
    0% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
    100% { transform: rotate(-4deg); }
}

.flow-cta-btn--danger:active {
    transform: scale(0.97);
}

/* ── SQUIRREL THROW ANIMATION CONTAINER ── */
.squirrel-throw-container {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.squirrel-throw-container.active {
    opacity: 1;
    visibility: visible;
}

/* ── SQUIRREL PROJECTILE IMAGES (BIG SIZE) ── */
.squirrel-projectile {
    position: absolute;
    width: 340px;
    height: auto;
    max-width: 42vw;
    object-fit: contain;
    pointer-events: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.6));
    opacity: 0;
    user-select: none;
    z-index: 200;
}

.squirrel-proj-1 { width: 380px; height: auto; max-width: 45vw; }
.squirrel-proj-2 { width: 340px; height: auto; max-width: 40vw; }
.squirrel-proj-3 { width: 360px; height: auto; max-width: 43vw; }
.squirrel-proj-4 { width: 350px; height: auto; max-width: 42vw; }

/* ── NUT PARTICLES ── */
.squirrel-nut-particle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--accent-gold);
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(232, 200, 122, 0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .dont-click-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        min-height: auto;
    }
    .dont-click-right {
        align-self: flex-end;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }
    .squirrel-mascot-vid {
        width: 140px;
        height: auto;
        max-height: 240px;
    }
    .flow-cta-btn--danger {
        padding: 10px 18px;
        font-size: 0.72rem;
    }
    .flow-cta-btn--danger .bomb-icon {
        width: 28px;
        height: 28px;
    }
    .flow-cta-btn--danger .bomb-icon svg {
        width: 28px;
        height: 28px;
    }
    .flow-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .squirrel-projectile {
        width: 200px;
        height: auto;
        max-width: 50vw;
    }
    .squirrel-proj-1 { width: 230px; height: auto; max-width: 55vw; }
    .squirrel-proj-2 { width: 200px; height: auto; max-width: 48vw; }
    .squirrel-proj-3 { width: 210px; height: auto; max-width: 50vw; }
    .squirrel-proj-4 { width: 205px; height: auto; max-width: 49vw; }
}

@media (max-width: 480px) {
    .dont-click-layout {
        gap: 16px;
    }
    .dont-click-right {
        align-self: flex-end;
        gap: 8px;
    }
    .squirrel-mascot-vid {
        width: 100px;
        height: auto;
        max-height: 180px;
    }
    .flow-cta-btn--danger .bomb-icon {
        width: 24px;
        height: 24px;
    }
    .flow-cta-btn--danger .bomb-icon svg {
        width: 24px;
        height: 24px;
    }
    .squirrel-projectile {
        width: 160px;
        height: auto;
        max-width: 55vw;
    }
    .squirrel-proj-1 { width: 180px; height: auto; max-width: 60vw; }
    .squirrel-proj-2 { width: 150px; height: auto; max-width: 50vw; }
    .squirrel-proj-3 { width: 165px; height: auto; max-width: 55vw; }
    .squirrel-proj-4 { width: 155px; height: auto; max-width: 52vw; }
}
