/* Animated Logo Styles */

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.animated-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-svg {
    width: 44px;
    height: 44px;
    color: #667eea;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon {
    transform-origin: 100px 100px;
}

.cap {
    animation: capBounce 2s ease-in-out infinite;
    stroke: url(#capGradient);
}

.swoosh {
    animation: swooshGlow 2.5s ease-in-out infinite;
    stroke: #764ba2;
    filter: drop-shadow(0 0 4px rgba(118, 75, 162, 0.6));
}

/* Logo animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes capBounce {
    0%, 100% {
        transform: scaleY(1) rotateZ(0deg);
    }
    50% {
        transform: scaleY(1.1) rotateZ(2deg);
    }
}

@keyframes swooshGlow {
    0%, 100% {
        stroke-width: 4;
        filter: drop-shadow(0 0 4px rgba(118, 75, 162, 0.6));
    }
    50% {
        stroke-width: 5;
        filter: drop-shadow(0 0 12px rgba(118, 75, 162, 1));
    }
}

/* Logo text animation */
.logo-text {
    animation: logoTextPulse 2s ease-in-out infinite;
    color: #667eea;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@keyframes logoTextPulse {
    0%, 100% {
        opacity: 1;
        letter-spacing: 0.5px;
    }
    50% {
        opacity: 0.95;
        letter-spacing: 1px;
    }
}

/* Footer logo styling */
.footer-logo-container {
    margin-bottom: 16px;
}

.animated-logo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.logo-svg-footer {
    width: 50px;
    height: 50px;
    color: #667eea;
    animation: logoFloatLarge 4s ease-in-out infinite;
}

.logo-icon-footer {
    transform-origin: 100px 100px;
}

.cap-footer {
    animation: capBounceLarge 2.5s ease-in-out infinite;
    stroke: url(#capGradientFooter);
}

.swoosh-footer {
    animation: swooshGlowLarge 3s ease-in-out infinite;
    stroke: #764ba2;
    filter: drop-shadow(0 0 6px rgba(118, 75, 162, 0.6));
}

.logo-text-footer {
    animation: logoTextPulseLarge 2.5s ease-in-out infinite;
    color: #667eea;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Footer logo animations */
@keyframes logoFloatLarge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes capBounceLarge {
    0%, 100% {
        transform: scaleY(1) rotateZ(0deg);
    }
    50% {
        transform: scaleY(1.15) rotateZ(3deg);
    }
}

@keyframes swooshGlowLarge {
    0%, 100% {
        stroke-width: 4;
        filter: drop-shadow(0 0 6px rgba(118, 75, 162, 0.6));
    }
    50% {
        stroke-width: 5;
        filter: drop-shadow(0 0 16px rgba(118, 75, 162, 1));
    }
}

@keyframes logoTextPulseLarge {
    0%, 100% {
        opacity: 1;
        letter-spacing: 0.5px;
    }
    50% {
        opacity: 0.95;
        letter-spacing: 1px;
    }
}

/* PWA Logo animation when app loads */
.pwa-loading-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: logoLoadPulse 1.5s ease-out forwards;
}

.pwa-loading-logo .logo-svg {
    width: 120px;
    height: 120px;
    animation: logoLoadBounce 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes logoLoadBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logoLoadPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Notification icon animation */
.notification-bell {
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    color: #667eea;
    transform: scale(1.1);
}

.notification-bell.has-unread {
    animation: bellRing 0.5s ease-in-out;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotateZ(0deg);
    }
    15% {
        transform: rotateZ(15deg);
    }
    30% {
        transform: rotateZ(-15deg);
    }
    45% {
        transform: rotateZ(15deg);
    }
    60% {
        transform: rotateZ(-5deg);
    }
}

/* Badge animation for new notifications */
.badge {
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .animated-logo {
        font-size: 20px;
    }

    .logo-svg {
        width: 36px;
        height: 36px;
    }

    .animated-logo-footer {
        font-size: 24px;
    }

    .logo-svg-footer {
        width: 42px;
        height: 42px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .animated-logo,
    .animated-logo-footer {
        color: #a78bfa;
    }

    .logo-svg,
    .logo-svg-footer {
        color: #a78bfa;
    }
}

/* Gradient definitions for SVG */
svg {
    --color-primary: #667eea;
    --color-secondary: #764ba2;
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animated-logo,
    .animated-logo-footer,
    .logo-svg,
    .logo-svg-footer,
    .cap,
    .cap-footer,
    .swoosh,
    .swoosh-footer,
    .logo-text,
    .logo-text-footer,
    .notification-bell,
    .badge {
        animation: none !important;
    }
}
