/* Echoheart - Styles personnalisés */

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Classes utilitaires */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.typing-indicator {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid #d633ff;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink 0.75s step-end infinite;
}

/* Styles pour l'interface de chat */
.chat-message {
    transition: all 0.3s ease;
}

.chat-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-bubble {
    position: relative;
    border-radius: 18px;
    padding: 12px 16px;
    max-width: 280px;
    word-wrap: break-word;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.chat-bubble.user::before {
    right: -8px;
    border-left-color: #d633ff;
    border-bottom-color: #d633ff;
}

.chat-bubble.ai::before {
    left: -8px;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Styles pour l'upload de fichiers */
.upload-zone {
    transition: all 0.3s ease;
    border: 2px dashed #d1d5db;
}

.upload-zone:hover {
    border-color: #d633ff;
    background-color: rgba(214, 51, 255, 0.05);
}

.upload-zone.dragover {
    border-color: #d633ff;
    background-color: rgba(214, 51, 255, 0.1);
    transform: scale(1.02);
}

.upload-zone.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* Styles pour le lecteur audio */
.audio-player {
    background: linear-gradient(135deg, #f3e8ff 0%, #fdf2f8 100%);
    border: 1px solid #e9d5ff;
}

.progress-bar {
    background: linear-gradient(90deg, #d633ff 0%, #ed5aff 100%);
    transition: width 0.1s ease;
}

.progress-bar:hover {
    background: linear-gradient(90deg, #b91cff 0%, #d633ff 100%);
}

/* Styles pour les cartes de fonctionnalités */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Styles pour les boutons */
.btn-primary {
    background: linear-gradient(135deg, #d633ff 0%, #ed5aff 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 51, 255, 0.3);
}

/* Styles pour la navigation */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Styles pour les modales */
.modal-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    animation: fadeInUp 0.3s ease-out;
}

/* Styles pour les notifications */
.notification {
    animation: fadeInUp 0.3s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
}

/* Styles pour les badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.premium {
    background: linear-gradient(135deg, #d633ff 0%, #ed5aff 100%);
    color: white;
}

.badge.free {
    background: #e5e7eb;
    color: #374151;
}

/* Styles pour les icônes animées */
.icon-bounce {
    animation: bounce 1s infinite;
}

.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour les gradients de texte */
.text-gradient-primary {
    background: linear-gradient(135deg, #d633ff 0%, #ed5aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #d633ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour les bordures animées */
.border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #d633ff, #ed5aff) border-box;
}

/* Styles pour les effets de glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Styles pour les skeletons de chargement */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Styles pour les responsive */
@media (max-width: 768px) {
    .chat-bubble {
        max-width: 240px;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
    
    .btn-primary:hover {
        transform: translateY(-1px);
    }
}

/* Styles pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Styles pour le mode sombre (futur) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .dark-mode .glass {
        background: rgba(31, 41, 55, 0.25);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Styles pour les focus states */
.focus-visible:focus {
    outline: 2px solid #d633ff;
    outline-offset: 2px;
}

/* Styles pour les états de chargement */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* Styles pour les messages d'erreur */
.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
}

/* Styles pour les messages de succès */
.success-message {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
} 