/* ============================================
   TuYaMo.com - Styles personnalisés
   ============================================ */

/* Base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b02a37;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-once {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-pulse-once {
    animation: pulse-once 0.6s ease-in-out;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Modal transitions */
.modal-backdrop {
    transition: opacity 0.3s ease;
}

/* Love gradient backgrounds */
.bg-love-gradient {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(40, 167, 69, 0.05) 50%, rgba(255, 193, 7, 0.05) 100%);
}

.dark .bg-love-gradient {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(40, 167, 69, 0.1) 50%, rgba(255, 193, 7, 0.1) 100%);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease;
}

/* Input placeholder */
input::placeholder {
    color: #9ca3af;
}

.dark input::placeholder {
    color: #6b7280;
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.spinner-dark {
    border: 3px solid rgba(220, 53, 69, 0.3);
    border-top: 3px solid #dc3545;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Card hover */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-weak { background: #dc3545; width: 33%; }
.password-medium { background: #ffc107; width: 66%; }
.password-strong { background: #28a745; width: 100%; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .animate-marquee {
        animation-duration: 20s;
    }
}

/* Print styles */
@media print {
    nav, footer, .fixed {
        display: none !important;
    }
}