/* Aria's Magical Universe - Companion Teaser Styles */

.companion-teaser {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Comic Neue', 'Arial', sans-serif;
    pointer-events: none;
    
    /* Initially hidden */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.companion-teaser.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.companion-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 15px;
    margin-left: auto;
    
    /* Floating animation */
    animation: companionFloat 3s ease-in-out infinite;
}

@keyframes companionFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-4px) rotate(-1deg); }
    75% { transform: translateY(-12px) rotate(0.5deg); }
}

.companion-orb::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    animation: magicalGlow 4s ease-in-out infinite;
}

@keyframes magicalGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.6; }
    25% { background-position: 100% 50%; opacity: 0.8; }
    50% { background-position: 50% 0%; opacity: 0.7; }
    75% { background-position: 50% 100%; opacity: 0.9; }
}

.companion-orb .companion-emoji {
    font-size: 32px;
    animation: companionPulse 2s ease-in-out infinite;
}

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

.companion-orb:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.4),
        0 0 0 6px rgba(255, 255, 255, 0.15),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.companion-bubble {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 16px 20px;
    max-width: 280px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(102, 126, 234, 0.1);
    position: relative;
    margin-bottom: 10px;
    transform: translateX(10px);
    
    /* Speech bubble tail */
}

.companion-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

.companion-bubble.hidden {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s ease;
}

.companion-message {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 500;
}

.companion-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.companion-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Evolution showcase modal */
.companion-evolution-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.companion-evolution-modal.show {
    opacity: 1;
    pointer-events: all;
}

.evolution-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.companion-evolution-modal.show .evolution-showcase {
    transform: scale(1);
}

.evolution-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.evolution-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.evolution-stage {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.evolution-stage:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stage-emoji {
    font-size: 24px;
    margin-right: 12px;
}

.stage-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.stage-age {
    font-size: 12px;
    opacity: 0.8;
    margin-left: auto;
}

.stage-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stage-greeting {
    font-style: italic;
    font-size: 13px;
    opacity: 0.8;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 10px;
}

.early-access-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.early-access-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.early-access-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .companion-teaser {
        bottom: 15px;
        right: 15px;
    }
    
    .companion-orb {
        width: 70px;
        height: 70px;
    }
    
    .companion-orb .companion-emoji {
        font-size: 28px;
    }
    
    .companion-bubble {
        max-width: 250px;
        padding: 14px 16px;
    }
    
    .evolution-showcase {
        margin: 20px;
        padding: 25px 20px;
        max-height: 90vh;
    }
}