/* ============================================================
   Welcome Mascot - Corner Launcher Styles
   Small fixed corner button for internal pages
   ============================================================ */

/* ─── Corner Launcher Container ─── */
.mascot-corner-launcher {
    position: fixed;
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    padding: 0;
    outline: none;
}

/* Position variants */
.mascot-corner-launcher[data-position="bottom-right"] {
    bottom: 24px;
    right: 24px;
}

.mascot-corner-launcher[data-position="bottom-left"] {
    bottom: 24px;
    left: 24px;
}

.mascot-corner-launcher[data-position="top-right"] {
    top: 24px;
    right: 24px;
}

.mascot-corner-launcher[data-position="top-left"] {
    top: 24px;
    left: 24px;
}

/* ─── Launcher Icon ─── */
.mascot-corner-launcher .launcher-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mascot-corner-launcher .launcher-icon svg,
.mascot-corner-launcher .launcher-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* Hover state */
.mascot-corner-launcher:hover .launcher-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Active/click state */
.mascot-corner-launcher:active .launcher-icon {
    transform: scale(0.95);
}

/* Focus visible */
.mascot-corner-launcher:focus-visible .launcher-icon {
    outline: 3px solid var(--mascot-primary, #4a90d9);
    outline-offset: 3px;
}

/* ─── Active State (modal open) ─── */
.mascot-corner-launcher.active .launcher-icon {
    background: var(--mascot-primary, #4a90d9);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.4);
}

/* ─── Idle Animation ─── */
.mascot-corner-launcher .launcher-icon {
    animation: corner-idle-breathe 3s ease-in-out infinite;
}

@keyframes corner-idle-breathe {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
}

/* ─── Notification Badge ─── */
.mascot-corner-launcher .corner-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4444;
    border: 2px solid #ffffff;
    font-size: 0;
    animation: corner-badge-pulse 2s infinite;
}

@keyframes corner-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ─── Entry Animation ─── */
.mascot-corner-launcher.entering {
    animation: corner-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes corner-enter {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ─── Hide when scrolling (optional) ─── */
.mascot-corner-launcher.scroll-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* ─── Tooltip ─── */
.mascot-corner-launcher .corner-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #333;
    color: white;
    font-family: var(--mascot-font, 'Poppins', sans-serif);
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.mascot-corner-launcher:hover .corner-tooltip {
    opacity: 1;
    visibility: visible;
}

.mascot-corner-launcher .corner-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: #333;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .mascot-corner-launcher[data-position="bottom-right"] {
        bottom: 16px;
        right: 16px;
    }

    .mascot-corner-launcher .launcher-icon {
        width: 48px;
        height: 48px;
    }

    .mascot-corner-launcher .launcher-icon svg,
    .mascot-corner-launcher .launcher-icon img {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mascot-corner-launcher .launcher-icon {
        animation: none;
    }
    
    .mascot-corner-launcher .corner-badge {
        animation: none;
    }
}
