/* ========================================
   ALANDYS MAIN STYLESHEET
   Import de tous les modules CSS
   ======================================== */

/* Base et variables */
@import url('./base.css');

/* Composants */
@import url('./header.css');
@import url('./hero.css');
@import url('./monsters.css');
@import url('./eggs.css');
@import url('./game.css');
@import url('./marga.css');
@import url('./marga-rpg-unified.css');
@import url('./marga-welcome-fix.css');
@import url('./monster-modal.css');
@import url('./modals.css');
@import url('./wallet.css');
@import url('./fixes.css');
@import url('./mobile-optimized.css');
@import url('./mobile-monster-card.css');
@import url('./desktop-monster-display.css');
@import url('./dialogue-override.css');
@import url('./marga-enhanced-styles.css');
@import url('./marga-button-fix.css');

/* ========================================
   STYLES ADDITIONNELS
   ======================================== */

/* Background animé */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a0826 50%, #0a0a0b 100%);
    z-index: -2;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(147, 51, 234, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Section de connexion */
.connect-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.connect-content {
    max-width: 600px;
}

.connect-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.connect-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.connect-button:hover::before {
    width: 300px;
    height: 300px;
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

/* Notifications */
.notification {
    position: fixed;
    top: calc(var(--header-height) + 2rem);
    right: 2rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.5);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.notification.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    background: var(--darker-bg);
}

.footer-content {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(147, 51, 234, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* État vide générique */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 1rem;
}

/* Responsive global */
@media (max-width: 768px) {
    .notification {
        top: calc(var(--mobile-header-height) + 1rem);
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Print styles */
@media print {
    .app-header,
    .marga-floating,
    .connect-button,
    .open-egg-btn,
    .action-button {
        display: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(20, 20, 30, 0.9);
    }
}