/* ===================================
   ALTITUDO CUSTOM STYLES FOR MUDBLAZOR
   Contains custom animations and MudBlazor overrides
   =================================== */

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Staggered animation delays */
.animate-delay-1 {
    animation-delay: 0.1s;
    animation-fill-mode: backwards;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    animation-fill-mode: backwards;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.animate-delay-5 {
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

/* ===================================
   MUDBLAZOR OVERRIDES
   =================================== */

/* Smooth transitions for MudBlazor components */
.mud-paper,
.mud-card,
.mud-button-root,
.mud-input,
.mud-chip {
    transition: all 0.3s ease;
}

/* Custom button hover effects */
.mud-button-root:hover {
    transform: translateY(-2px);
}

.mud-button-root:active {
    transform: translateY(0);
}

/* Card hover effect */
.mud-card:hover {
    transform: translateY(-4px);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.section-spacing {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 2rem 0;
    }
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

/* Feature icon styling */
.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Store button styling */
.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.store-button:hover {
    transform: translateY(-4px) !important;
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */

.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block;
    }
}

/* ===================================
   CUSTOM GRADIENTS & EFFECTS
   =================================== */

.gradient-text {
    background: linear-gradient(135deg, #E9C780 0%, #35B7C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   LOADING STATES
   =================================== */

.skeleton-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus visible for keyboard navigation */
.mud-button-root:focus-visible,
.mud-input:focus-visible,
.mud-select:focus-visible {
    outline: 2px solid #E9C780;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
