/**
 * Styles pour le logo manyO.dev
 * Utilisé dans le splash screen et potentiellement ailleurs
 */

/* Container pour positionner et scaler le logo */
.manyo-logo-container {
    transform: scale(0.4);
    transform-origin: bottom right;
}

/* Logo principal */
.manyo-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 40px 18px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid #0d6efd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Background animé */
.manyo-logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
    z-index: 0;
    border-radius: 30px;
}

/* Label "développé par" */
.manyo-logo::after {
    content: 'développé par';
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 1.4rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Content wrapper */
.logo-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Texte principal */
.logo-text {
    font-size: 3.5rem;
    font-weight: 600;
    color: #333333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
    font-family: 'Audiowide', cursive;
}

/* Le "O" stylisé */
.logo-text span:first-of-type {
    background: none;
    color: #0d6efd;
    -webkit-text-fill-color: #0d6efd;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(13,110,253,0.5);
    animation: gradientFlow 2s ease-in-out infinite;
}

/* Badge .dev */
.logo-text .dev-badge {
    margin-left: 0.3em;
    align-self: flex-end;
    padding: 4px 12px;
    font-size: 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d6efd 0%, #003366 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 11;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Formes géométriques décoratives */
.geometric-shapes {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.shape {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #f06292 100%);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(2) {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%);
    animation-delay: 2s;
}

.shape:nth-child(3) {
    background: linear-gradient(135deg, #f7b731 0%, #feca57 100%);
    animation-delay: 4s;
}

/* Particules animées */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4ecdc4;
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 80%; left: 40%; animation-delay: 4s; }
.particle:nth-child(4) { top: 40%; left: 60%; animation-delay: 6s; }

/* Brackets décoratifs */
.code-brackets {
    position: absolute;
    top: calc(50% + 30px);
    left: 15px;
    right: auto;
    transform: translateY(-50%) rotate(-25deg);
    font-size: 2rem;
    color: #0d6efd;
    font-family: 'Courier New', monospace;
    animation: bracketPulse 2s ease-in-out infinite;
    z-index: 2;
    opacity: 0.6;
}

/* Animations */
@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes particleFloat {
    0% { transform: translateY(0px) scale(0); opacity: 0; }
    50% { transform: translateY(-50px) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

@keyframes bracketPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .manyo-logo-container {
        transform: scale(0.3);
    }
    
    .manyo-logo {
        padding: 16px 8px 8px 8px;
    }
    
    .manyo-logo::after {
        top: 4px;
        left: 8px;
        font-size: 0.6rem;
    }
}