/* ============================================
   CELEBRATION.CSS - Challenge Completion Toast
   ============================================ */

/* ============================================
   CELEBRATION TOAST - EXACT SPECIFICATION
   ============================================ */
#celebrationToast {
    /* Position - absolute within editor container */
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 9500;

    /* Size - auto-fit content, no scrolling */
    max-width: 340px;
    width: auto;

    /* Glassmorphism background */
    background: rgba(20, 20, 40, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    /* Layout */
    padding: 20px;
    text-align: center;

    /* Shadow */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Animation */
    animation: celebrationSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Initial state */
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Fade out on hide */
#celebrationToast.hiding {
    opacity: 0;
}

/* Slide up + fade in animation */
@keyframes celebrationSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* ============================================
   CELEBRATION ELEMENTS - COMPACT
   ============================================ */
.celebration-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: celebrationPulse 1.5s ease-in-out infinite;
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.celebration-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.celebration-message {
    font-size: 14px;
    color: #c4b5fd;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ============================================
   CELEBRATION BUTTONS - COMPACT
   ============================================ */
.celebration-btn {
    background: white;
    color: #7c3aed;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-standard);
    margin: 4px;
    width: calc(50% - 8px);
    display: inline-block;
}

.celebration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.celebration-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.celebration-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
