/**
 * Skye Chat Bubble - Embedding Styles
 * YPG of Ocala - Young People's Group
 */

/* Chat Bubble Button */
#skye-bubble {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid #5AA6E8;
    box-shadow: 0 4px 12px rgba(90, 166, 232, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding: 3px;
    overflow: hidden;
    animation: skye-pulse 2s infinite;
}

#skye-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#skye-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 166, 232, 0.6);
    animation: none;
}

#skye-bubble:active {
    transform: scale(0.95);
}

/* Pulse animation for attention */
@keyframes skye-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(90, 166, 232, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(90, 166, 232, 0.7);
    }
}

/* Chat Window Overlay */
#skye-window {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 400px;
    height: 600px;
    max-width: calc(100vw - 3rem);
    max-height: calc(100vh - 3rem);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    animation: skye-slide-up 0.3s ease-out;
}

#skye-window iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}

/* Close button on window */
#skye-window-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #2D3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

#skye-window-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

#skye-window-close:active {
    transform: scale(0.9);
}

/* Slide up animation */
@keyframes skye-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    #skye-bubble {
        width: 56px;
        height: 56px;
        right: 1rem;
        bottom: 1rem;
        font-size: 24px;
    }

    #skye-window {
        right: 0;
        bottom: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    #skye-window iframe {
        border-radius: 0;
    }

    #skye-window-close {
        top: 8px;
        right: 8px;
    }
}

/* Hidden state */
.skye-hidden {
    display: none !important;
}
