/**
 * MY FILMLAB - Logo Négatif 35mm
 * NE JAMAIS MODIFIER LA STRUCTURE - Uniquement les variables CSS du thème
 */

.myfilmlab-logo {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Version compacte pour header/sidebar */
.myfilmlab-logo.small {
    width: 60px;
    height: 60px;
}

.myfilmlab-logo.small .logo-text-ring,
.myfilmlab-logo.small .logo-dotted-ring,
.myfilmlab-logo.small .logo-inner-text-ring,
.myfilmlab-logo.small .logo-stars,
.myfilmlab-logo.small .logo-orbital-dots,
.myfilmlab-logo.small .logo-rays {
    display: none;
}

.myfilmlab-logo.small .logo-main-circle { width: 55px; height: 55px; }
.myfilmlab-logo.small .logo-glow { width: 45px; height: 45px; }
.myfilmlab-logo.small .logo-center-element { width: 40px; height: 40px; }
.myfilmlab-logo.small .logo-negative { width: 35px; height: 24px; }
.myfilmlab-logo.small .logo-negative-strip { width: 35px; height: 24px; }
.myfilmlab-logo.small .logo-negative-perfs { left: 2px; right: 2px; }
.myfilmlab-logo.small .logo-negative-perfs.top { top: 2px; }
.myfilmlab-logo.small .logo-negative-perfs.bottom { bottom: 2px; }
.myfilmlab-logo.small .logo-negative-perf { width: 3px; height: 2px; }
.myfilmlab-logo.small .logo-negative-frame { width: 20px; height: 14px; }
.myfilmlab-logo.small .logo-negative-frame-inner { width: 4px; height: 4px; }

/* Anneau texte extérieur */
.logo-text-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    animation: logoRotateText 60s linear infinite;
}

@keyframes logoRotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text-ring text {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: var(--safelight);
    letter-spacing: 5px;
}

/* Anneau pointillé */
.logo-dotted-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px dashed var(--safelight);
    opacity: 0.25;
    border-radius: 50%;
}

/* Anneau texte intérieur */
.logo-inner-text-ring {
    position: absolute;
    width: 210px;
    height: 210px;
    animation: logoRotateTextReverse 50s linear infinite;
}

@keyframes logoRotateTextReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.logo-inner-text-ring text {
    font-family: 'Poppins', sans-serif;
    font-size: 6px;
    font-weight: 400;
    fill: var(--safelight);
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Étoiles décoratives */
.logo-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.logo-star {
    position: absolute;
    color: var(--safelight);
    font-size: 10px;
    opacity: 0.7;
}

.logo-star:nth-child(1) { top: 25px; left: 50%; transform: translateX(-50%); }
.logo-star:nth-child(2) { bottom: 25px; left: 50%; transform: translateX(-50%); }
.logo-star:nth-child(3) { left: 25px; top: 50%; transform: translateY(-50%); }
.logo-star:nth-child(4) { right: 25px; top: 50%; transform: translateY(-50%); }

/* Points orbitaux */
.logo-orbital-dots {
    position: absolute;
    width: 180px;
    height: 180px;
    animation: logoOrbitRotate 30s linear infinite;
}

@keyframes logoOrbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-orbital-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--safelight);
    border-radius: 50%;
    opacity: 0.5;
}

.logo-orbital-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.logo-orbital-dot:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.logo-orbital-dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.logo-orbital-dot:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

/* Cercle principal */
.logo-main-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%,
        var(--safelight-glow) 0%,
        rgba(212, 165, 116, 0.06) 40%,
        transparent 70%
    );
    border: 1px solid var(--border-subtle);
}

/* Halo lumineux */
.logo-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle,
        var(--safelight-intense) 0%,
        rgba(212, 165, 116, 0.08) 40%,
        transparent 70%
    );
    filter: blur(15px);
    animation: logoGlowPulse 4s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Rayons lumineux */
.logo-rays {
    position: absolute;
    width: 140px;
    height: 140px;
}

.logo-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 25px;
    background: linear-gradient(to top, var(--safelight), transparent);
    transform-origin: bottom center;
    opacity: 0.3;
}

.logo-ray:nth-child(1) { transform: translateX(-50%) rotate(0deg) translateY(-40px); }
.logo-ray:nth-child(2) { transform: translateX(-50%) rotate(45deg) translateY(-40px); }
.logo-ray:nth-child(3) { transform: translateX(-50%) rotate(90deg) translateY(-40px); }
.logo-ray:nth-child(4) { transform: translateX(-50%) rotate(135deg) translateY(-40px); }
.logo-ray:nth-child(5) { transform: translateX(-50%) rotate(180deg) translateY(-40px); }
.logo-ray:nth-child(6) { transform: translateX(-50%) rotate(225deg) translateY(-40px); }
.logo-ray:nth-child(7) { transform: translateX(-50%) rotate(270deg) translateY(-40px); }
.logo-ray:nth-child(8) { transform: translateX(-50%) rotate(315deg) translateY(-40px); }

/* Élément central */
.logo-center-element {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Négatif 35mm */
.logo-negative {
    position: relative;
    width: 90px;
    height: 60px;
}

.logo-negative-strip {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        var(--safelight-dim) 0%,
        var(--safelight) 15%,
        var(--safelight) 85%,
        var(--safelight-dim) 100%
    );
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 20px var(--safelight-intense);
}

/* Perforations */
.logo-negative-perfs {
    position: absolute;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
}

.logo-negative-perfs.top { top: 4px; }
.logo-negative-perfs.bottom { bottom: 4px; }

.logo-negative-perf {
    width: 6px;
    height: 4px;
    background: var(--void);
    border-radius: 1px;
}

/* Cadre central */
.logo-negative-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 35px;
    background: var(--void);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-negative-frame-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--safelight-bright);
    box-shadow: 0 0 10px var(--safelight-bright);
    animation: logoFramePulse 3s ease-in-out infinite;
}

@keyframes logoFramePulse {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 10px var(--safelight-bright); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--safelight-bright), 0 0 25px var(--safelight-intense); }
}

/* Lien logo cliquable */
.logo-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo-link:hover {
    transform: scale(1.05);
}
