/**
 * BotMe - Main Stylesheet
 * 
 * Custom styles for the BotMe landing page
 * Includes animations, buttons, and theme-specific styles
 */

.jumping-bubble {
    width: 40px;
    height: 40px;
    display: inline-block;
    animation: jump 2s infinite;
    transform-origin: bottom center;
    /* important for squash/stretch */
    will-change: transform;

    /* animation: jump 2s infinite ease-in-out; */
}

@keyframes jump {

    /* idle */
    0%,
    60%,
    100% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }

    /* squat / squash before takeoff */
    10% {
        transform: translateY(0) scaleX(1.15) scaleY(0.85);
    }

    /* takeoff (stretch) */
    15% {
        transform: translateY(-24px) scaleX(0.9) scaleY(1.1);
    }

    /* peak: a touch more stretch */
    20% {
        transform: translateY(-28px) scaleX(0.95) scaleY(1.05);
    }

    /* landing: squash */
    30% {
        transform: translateY(0) scaleX(1.2) scaleY(0.8);
    }

    /* small rebound */
    40% {
        transform: translateY(-8px) scaleX(0.98) scaleY(1.02);
    }

    /* settle back */
    50% {
        transform: translateY(0) scaleX(1) scaleY(1);
    }
}

.logo {
    width: 50px;
}

.nav-blend {
    position: relative;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.nav-spacer {
    flex: 0 1 500px;
    max-width: 500px;
    min-width: 0;
    height: 1px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Deep Background */
.bg-deep-space {
    background-color: #000000;
    background-image:
        radial-gradient(circle at 10% 20%, #0f172a 0%, #000000 50%),
        radial-gradient(circle at 90% 50%, #1e1b4b 0%, #000000 50%);
}

html {
    background-color: #000000;
    background-image:
        radial-gradient(circle at 10% 20%, #0f172a 0%, #000000 50%),
        radial-gradient(circle at 90% 50%, #1e1b4b 0%, #000000 50%);
    height: 100%;
    scroll-behavior: smooth;
}

/* Glowing Text */
.text-neon {
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

/* Radioactive Button */
.btn-radioactive {
    background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 100%);
    box-shadow:
        0 0 10px rgba(56, 189, 248, 0.5),
        0 0 40px rgba(139, 92, 246, 0.6);
    transition: all 0.3s ease;
}

.btn-radioactive:hover {
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.8),
        0 0 60px rgba(139, 92, 246, 0.8);
    transform: scale(1.05);
}

/* Brain Blend Mode */
.blend-mode-screen {
    mix-blend-mode: screen;
}

.faded-edges {
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent),
        linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.fade-borders {
    opacity: 70%;
    /* Use -webkit-mask-image for broader browser compatibility */
    -webkit-mask-image: radial-gradient(circle at center,
            black 80%,
            transparent 100%);
    mask-image: radial-gradient(circle at center,
            black 80%,
            transparent 100%);
}


/* --- Builder page styles (scoped) --- */
/* Force the font family on everything */
#builder,
#builder input,
#builder select,
#builder button {
    font-family: 'Inter', sans-serif;
}

/* Custom Input Styles - The "Comfortable" Look */
.mad-input {
    background: transparent;
    border-bottom: 2px solid #374151;
    /* Softer Gray */
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    color: white;
    font-weight: 700;
    padding-bottom: 4px;
    /* Breathing room above the line */
}

.mad-input:focus {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    /* Very subtle tint */
    border-radius: 4px 4px 0 0;
}

.mad-input::placeholder {
    color: #6b7280;
    font-weight: 400;
    opacity: 0.7;
}

select.mad-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Reveal Animation for URL */
.reveal-enter {
    animation: expandField 0.4s ease-out forwards;
    transform-origin: top;
}

@keyframes expandField {
    from {
        opacity: 0;
        transform: scaleY(0.8) translateY(-10px);
        height: 0;
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
        height: auto;
    }
}

/* The "Light Sign" Footer Glow */
.light-sign {
    box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.1);
}

.light-sign:hover {
    box-shadow: 0 -4px 30px rgba(139, 92, 246, 0.3);
    border-top-color: rgba(139, 92, 246, 0.5);
}

/* Disabled button state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Ghost Button Animation */
.ghost-btn {
    position: fixed;
    z-index: 9999;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    transition: top 1.2s cubic-bezier(0.25, 1, 0.5, 1),
        left 1.2s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.6s ease 0.2s,
        height 0.6s ease 0.2s,
        background-color 0.4s ease,
        opacity 0.5s ease;
    pointer-events: none;
}

.ghost-btn.flying {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    width: 60px !important;
    height: 60px !important;
    color: transparent;
}