/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * AURALOVE - Estilos Premium Personalizados
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ━━━━━━━━━━━━━━━ */
/* FUENTES */
/* ━━━━━━━━━━━━━━━ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0014;
    color: #ffffff;
    overflow-x: hidden;
}

/* ━━━━━━━━━━━━━━━ */
/* GRADIENTES */
/* ━━━━━━━━━━━━━━━ */
.gradient-bg {
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
}

/* ━━━━━━━━━━━━━━━ */
/* COMPANION CARDS */
/* ━━━━━━━━━━━━━━━ */
.companion-card {
    transition: all 0.3s ease;
}

.companion-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 110, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.15);
}

/* ━━━━━━━━━━━━━━━ */
/* GLASSMORPHISM */
/* ━━━━━━━━━━━━━━━ */
.glass {
    background: rgba(26, 11, 46, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ━━━━━━━━━━━━━━━ */
/* SCROLL SUAVE */
/* ━━━━━━━━━━━━━━━ */
html {
    scroll-behavior: smooth;
}

/* ━━━━━━━━━━━━━━━ */
/* ANIMACIONES */
/* ━━━━━━━━━━━━━━━ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 110, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ━━━━━━━━━━━━━━━ */
/* CHAT */
/* ━━━━━━━━━━━━━━━ */
.chat-container {
    max-height: 600px;
    overflow-y: auto;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 110, 0.5);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 110, 0.7);
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message-user {
    background: linear-gradient(135deg, #ff006e, #ff66c4);
    margin-left: auto;
}

.message-assistant {
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ━━━━━━━━━━━━━━━ */
/* MODAL */
/* ━━━━━━━━━━━━━━━ */
.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a0b2e 0%, #0a0014 100%);
    border: 1px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 60px rgba(255, 0, 110, 0.2);
}

/* ━━━━━━━━━━━━━━━ */
/* BOTONES */
/* ━━━━━━━━━━━━━━━ */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ━━━━━━━━━━━━━━━ */
/* INPUTS */
/* ━━━━━━━━━━━━━━━ */
input, textarea {
    background: rgba(26, 11, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ━━━━━━━━━━━━━━━ */
/* LOADING */
/* ━━━━━━━━━━━━━━━ */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #ff006e;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ━━━━━━━━━━━━━━━ */
/* RESPONSIVE */
/* ━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
    }
}

/* ━━━━━━━━━━━━━━━ */
/* VOICE WAVE */
/* ━━━━━━━━━━━━━━━ */
.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.voice-wave span {
    width: 4px;
    height: 20px;
    background: #ff006e;
    border-radius: 4px;
    animation: voice-pulse 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; }
.voice-wave span:nth-child(5) { animation-delay: 0.8s; }

@keyframes voice-pulse {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}
