/* Logo CSS - Animiertes Astro-App Logo mit Wow-Effekt */

/* ============================================================================ */
/* LOGO CONTAINER */
/* ============================================================================ */

.layout-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-astro-app {
    height: 60px;
    width: auto;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* ============================================================================ */
/* HOVER EFFECTS - Mystische Animationen */
/* ============================================================================ */

.logo-astro-app:hover {
    transform: scale(1.1) translateY(-5px);
    filter: 
        drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
        drop-shadow(0 0 30px rgba(157, 78, 221, 0.6))
        drop-shadow(0 0 40px rgba(0, 245, 255, 0.4));
    animation: logo-pulse 1s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1.1) translateY(-5px);
    }
    50% {
        transform: scale(1.15) translateY(-8px);
    }
}

/* ============================================================================ */
/* LOGO TEXT ANIMATION - Buchstaben einzeln animieren */
/* ============================================================================ */

.logo-astro-app:hover .letter {
    animation: letter-bounce 0.6s ease-in-out;
}

.logo-astro-app:hover .letter:nth-child(1) { animation-delay: 0s; }
.logo-astro-app:hover .letter:nth-child(2) { animation-delay: 0.05s; }
.logo-astro-app:hover .letter:nth-child(3) { animation-delay: 0.1s; }
.logo-astro-app:hover .letter:nth-child(4) { animation-delay: 0.15s; }
.logo-astro-app:hover .letter:nth-child(5) { animation-delay: 0.2s; }
.logo-astro-app:hover .letter:nth-child(6) { animation-delay: 0.25s; }
.logo-astro-app:hover .letter:nth-child(7) { animation-delay: 0.3s; }
.logo-astro-app:hover .letter:nth-child(8) { animation-delay: 0.35s; }

@keyframes letter-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ============================================================================ */
/* MYSTICAL STAR ROTATION */
/* ============================================================================ */

.logo-astro-app:hover #mysticStar {
    animation: star-spin-fast 4s linear infinite;
}

@keyframes star-spin-fast {
    0% { transform: translate(40px, 40px) rotate(0deg); }
    100% { transform: translate(40px, 40px) rotate(360deg); }
}

/* ============================================================================ */
/* SPARKLES ANIMATION beim Hover */
/* ============================================================================ */

.logo-astro-app:hover #sparkles circle {
    animation: sparkle-burst 1s ease-in-out infinite !important;
}

@keyframes sparkle-burst {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ============================================================================ */
/* LEGACY: Widget-Headline-Logo (falls noch verwendet) */
/* ============================================================================ */

.widget-headline-logo {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: logo-text-shimmer 3s linear infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.widget-headline-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.6));
}

@keyframes logo-text-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

@media (max-width: 768px) {
    .logo-astro-app {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .logo-astro-app {
        height: 45px;
    }
}
