/* Stick Yogi Master - Cosmic Wisdom Assistant */
.stick-yogi-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
}

.stick-yogi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.stick-yogi-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.stick-yogi-avatar.active {
    transform: scale(0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Stick Figure Yogi Master SVG */
.stick-figure-yogi {
    width: 50px;
    height: 50px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Cosmic pulse animation */
.stick-yogi-avatar::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ffdd59 0%, #ff6b6b 100%);
    border-radius: 50%;
    border: 2px solid white;
    animation: cosmic-pulse 2s infinite;
}

@keyframes cosmic-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Chat Dialog */
.stick-yogi-dialog {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stick-yogi-dialog.active {
    display: block;
    animation: slide-up 0.3s ease-out;
}

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

.stick-yogi-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stick-yogi-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stick-yogi-title h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.stick-yogi-title .mini-stick-figure {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.stick-yogi-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 2px;
}

.stick-yogi-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.stick-yogi-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stick-yogi-messages {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
}

.stick-yogi-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: message-appear 0.3s ease-out;
}

@keyframes message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stick-yogi-message.user {
    flex-direction: row-reverse;
}

.stick-yogi-message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stick-yogi-message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 15px;
    color: white;
    max-width: 70%;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stick-yogi-message.user .stick-yogi-message-content {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.stick-yogi-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stick-yogi-quick-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stick-yogi-quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.stick-yogi-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.stick-yogi-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.stick-yogi-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.stick-yogi-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.stick-yogi-send {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.stick-yogi-send:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .stick-yogi-container {
        bottom: 15px;
        right: 15px;
    }
    
    .stick-yogi-avatar {
        width: 60px;
        height: 60px;
    }
    
    .stick-figure-yogi {
        width: 35px;
        height: 35px;
    }
    
    .stick-yogi-dialog {
        width: 300px;
        max-height: 400px;
        bottom: 75px;
    }
}

/* Scrollbar styling */
.stick-yogi-messages::-webkit-scrollbar {
    width: 4px;
}

.stick-yogi-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.stick-yogi-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.stick-yogi-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}