/**
 * 👑 BINARY WIN Logo Component
 * Coroa + IA - Reutilizável em todo o projeto
 */

/* Logo Container */
.topwin-logo-header {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   CROWN (Coroa Real)
   ========================================== */

.crown-container-header {
    position: absolute;
    width: 60px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.crown-base-header {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                0 0 40px rgba(255, 215, 0, 0.4);
    animation: crownGlow 3s ease-in-out infinite;
}

.crown-spikes-header {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.spike-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: spikeRise 2s ease-in-out infinite;
}

.spike-header.spike-1 {
    width: 6px;
    height: 15px;
    animation-delay: 0s;
}

.spike-header.spike-2 {
    width: 8px;
    height: 20px;
    animation-delay: 0.2s;
}

.spike-header.spike-3 {
    width: 10px;
    height: 28px;
    animation-delay: 0.4s;
}

.spike-header.spike-4 {
    width: 8px;
    height: 20px;
    animation-delay: 0.6s;
}

.spike-header.spike-5 {
    width: 6px;
    height: 15px;
    animation-delay: 0.8s;
}

/* Crown Gems */
.crown-gems-header {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.gem-header {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: gemTwinkle 1.5s ease-in-out infinite;
}

.gem-header.gem-1 {
    background: #ff00ff;
    animation-delay: 0s;
}

.gem-header.gem-2 {
    background: #00d4ff;
    animation-delay: 0.3s;
}

.gem-header.gem-3 {
    background: #00ff9f;
    animation-delay: 0.6s;
}

.gem-header.gem-4 {
    background: #00d4ff;
    animation-delay: 0.9s;
}

.gem-header.gem-5 {
    background: #ff00ff;
    animation-delay: 1.2s;
}

/* ==========================================
   AI ORBIT (Órbitas da I.A)
   ========================================== */

.ai-orbit-header {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-header {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    border-style: dashed;
    opacity: 0.7;
}

.orbit-ring-header.ring-1 {
    width: 100px;
    height: 100px;
    border-color: #9333ea;
    animation: orbitRotate 8s linear infinite;
}

.orbit-ring-header.ring-2 {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
    border-color: #00d4ff;
    animation: orbitRotate 6s linear infinite reverse;
}

.orbit-ring-header.ring-3 {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    border-color: #00ff9f;
    animation: orbitRotate 4s linear infinite;
}

/* AI Core */
.ai-core-header {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 35px;
    left: 35px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8),
                0 0 40px rgba(124, 58, 237, 0.6);
    animation: aiCorePulse 2s ease-in-out infinite;
}

.neural-pulse-header {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: neuralExpand 2s ease-in-out infinite;
}

.neural-dots-header {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-header {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotFloat 2s ease-in-out infinite;
}

.dot-header.dot-1 {
    transform: translate(-8px, -8px);
    animation-delay: 0s;
}

.dot-header.dot-2 {
    transform: translate(8px, -8px);
    animation-delay: 0.6s;
}

.dot-header.dot-3 {
    transform: translate(0px, 10px);
    animation-delay: 1.2s;
}

/* ==========================================
   POWER RAYS (Raios de Poder)
   ========================================== */

.power-rays-header {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ray-header {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, #FFD700, transparent);
    border-radius: 2px;
    opacity: 0.8;
    animation: rayShine 3s ease-in-out infinite;
}

.ray-header.ray-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation-delay: 0s;
}

.ray-header.ray-2 {
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: 0.3s;
}

.ray-header.ray-3 {
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(90deg);
    animation-delay: 0.6s;
}

.ray-header.ray-4 {
    bottom: 15%;
    right: 15%;
    transform: rotate(135deg);
    animation-delay: 0.9s;
}

.ray-header.ray-5 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    animation-delay: 1.2s;
}

.ray-header.ray-6 {
    bottom: 15%;
    left: 15%;
    transform: rotate(225deg);
    animation-delay: 1.5s;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes crownGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                    0 0 60px rgba(255, 215, 0, 0.6);
    }
}

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

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

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

@keyframes aiCorePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8),
                    0 0 40px rgba(124, 58, 237, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(0, 212, 255, 1),
                    0 0 60px rgba(124, 58, 237, 0.8);
    }
}

@keyframes neuralExpand {
    0%, 100% {
        opacity: 1;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes dotFloat {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes rayShine {
    0%, 100% {
        opacity: 0.3;
        height: 15px;
    }
    50% {
        opacity: 0.9;
        height: 20px;
    }
}

/* ==========================================
   RESPONSIVE SIZES
   ========================================== */

/* Compact logo (50px) - Para navegação/header */
.topwin-logo-header.size-compact {
    width: 50px;
    height: 50px;
}

.topwin-logo-header.size-compact .crown-container-header {
    width: 30px;
    height: 20px;
}

.topwin-logo-header.size-compact .crown-base-header {
    height: 6px;
    border-radius: 3px;
}

.topwin-logo-header.size-compact .crown-spikes-header {
    bottom: 5px;
    height: 15px;
}

.topwin-logo-header.size-compact .spike-header.spike-1,
.topwin-logo-header.size-compact .spike-header.spike-5 {
    width: 3px;
    height: 8px;
}

.topwin-logo-header.size-compact .spike-header.spike-2,
.topwin-logo-header.size-compact .spike-header.spike-4 {
    width: 4px;
    height: 10px;
}

.topwin-logo-header.size-compact .spike-header.spike-3 {
    width: 5px;
    height: 14px;
}

.topwin-logo-header.size-compact .crown-gems-header {
    bottom: 8px;
    height: 10px;
}

.topwin-logo-header.size-compact .gem-header {
    width: 3px;
    height: 3px;
}

.topwin-logo-header.size-compact .ai-orbit-header {
    width: 50px;
    height: 50px;
}

.topwin-logo-header.size-compact .orbit-ring-header.ring-1 {
    width: 50px;
    height: 50px;
    border-width: 1px;
}

.topwin-logo-header.size-compact .orbit-ring-header.ring-2 {
    width: 40px;
    height: 40px;
    top: 5px;
    left: 5px;
    border-width: 1px;
}

.topwin-logo-header.size-compact .orbit-ring-header.ring-3 {
    width: 30px;
    height: 30px;
    top: 10px;
    left: 10px;
    border-width: 1px;
}

.topwin-logo-header.size-compact .ai-core-header {
    width: 15px;
    height: 15px;
    top: 17.5px;
    left: 17.5px;
}

.topwin-logo-header.size-compact .neural-pulse-header {
    border-width: 1px;
}

.topwin-logo-header.size-compact .dot-header {
    width: 2px;
    height: 2px;
}

.topwin-logo-header.size-compact .dot-header.dot-1 {
    transform: translate(-4px, -4px);
}

.topwin-logo-header.size-compact .dot-header.dot-2 {
    transform: translate(4px, -4px);
}

.topwin-logo-header.size-compact .dot-header.dot-3 {
    transform: translate(0px, 5px);
}

.topwin-logo-header.size-compact .power-rays-header {
    width: 60px;
    height: 60px;
}

.topwin-logo-header.size-compact .ray-header {
    width: 1px;
    height: 8px;
}

/* Small logo (60px) */
.topwin-logo-header.size-sm {
    width: 60px;
    height: 60px;
}

.topwin-logo-header.size-sm .crown-container-header {
    width: 45px;
    height: 30px;
}

.topwin-logo-header.size-sm .ai-orbit-header {
    width: 70px;
    height: 70px;
}

.topwin-logo-header.size-sm .power-rays-header {
    width: 85px;
    height: 85px;
}

/* Large logo (120px) */
.topwin-logo-header.size-lg {
    width: 120px;
    height: 120px;
}

.topwin-logo-header.size-lg .crown-container-header {
    width: 80px;
    height: 55px;
}

.topwin-logo-header.size-lg .ai-orbit-header {
    width: 140px;
    height: 140px;
}

.topwin-logo-header.size-lg .power-rays-header {
    width: 160px;
    height: 160px;
}
