/* /app/static/css/style.css - Custom styling for Hosting.Discount with vibrant color scheme */

/* Custom Font Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* Glass Navigation Effects */
.glass-nav {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

/* Glass Card Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Menu Hover Effects */
.menu-item button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #7C3AED, #D946EF);
    transition: width 0.3s ease;
}

.menu-item:hover button::after {
    width: 80%;
}

/* Gradient Animations */
.animated-gradient-bg {
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.1), 0 8px 10px -6px rgba(124, 58, 237, 0.1);
}

/* Card Animations */
.card-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.1);
}

/* Button Pulse Effect */
.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 70, 239, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 70, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 70, 239, 0);
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.ripple:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Star Rating Animation */
.star-rating i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.star-rating:hover i {
    color: #FACC15;
}

.star-rating:hover i:nth-child(1) {
    transform: rotate(-10deg) scale(1.2);
    transition-delay: 0s;
}

.star-rating:hover i:nth-child(2) {
    transform: rotate(5deg) scale(1.2);
    transition-delay: 0.05s;
}

.star-rating:hover i:nth-child(3) {
    transform: rotate(-5deg) scale(1.2);
    transition-delay: 0.1s;
}

.star-rating:hover i:nth-child(4) {
    transform: rotate(10deg) scale(1.2);
    transition-delay: 0.15s;
}

.star-rating:hover i:nth-child(5) {
    transform: rotate(-10deg) scale(1.2);
    transition-delay: 0.2s;
}

/* Price Tag Animation */
.price-tag {
    transition: all 0.3s ease;
}

.price-tag:hover {
    transform: scale(1.1) rotate(-3deg);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

/* Badge Pop Animation */
.animated-badge {
    animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7C3AED, #D946EF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6D28D9, #C026D3);
}

/* Slide-in Animation */
.animate-slide-in {
    animation: slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide-out Animation */
.animate-slide-out {
    animation: slide-out 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-out {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-10px);
        opacity: 0;
    }
}

/* Fade-in Animation */
.animate-fade-in {
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Fade-out Animation */
.animate-fade-out {
    animation: fade-out 0.5s ease forwards;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Scale-in Animation */
.animate-scale-in {
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scale-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notification Badge Ping */
.badge-ping::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: currentColor;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Rotating Icons */
.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon:hover {
    transform: rotate(20deg);
}

/* Pulse Animation for UI Elements */
.pulse-animation {
    animation: pulse-once 0.5s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-once {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.pulse-once {
    animation: pulse-once 0.5s cubic-bezier(0.4, 0, 0.6, 1);
}

/* Shake Animation */
.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Blob Animation for Background Elements */
.blob-shape {
    border-radius: 71% 29% 41% 59% / 31% 43% 57% 69%;
    animation: blob-animation 20s infinite alternate;
}

@keyframes blob-animation {
    0% {
        border-radius: 71% 29% 41% 59% / 31% 43% 57% 69%;
    }
    25% {
        border-radius: 58% 42% 57% 43% / 48% 52% 48% 52%;
    }
    50% {
        border-radius: 69% 31% 66% 34% / 45% 39% 61% 55%;
    }
    75% {
        border-radius: 41% 59% 36% 64% / 56% 37% 63% 44%;
    }
    100% {
        border-radius: 71% 29% 41% 59% / 31% 43% 57% 69%;
    }
}

/* Number Flip Animation for Countdown Timer */
.countdown-timer span.animated {
    animation: numberFlip 0.5s;
}

@keyframes numberFlip {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
        opacity: 0;
    }
    51% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Coupon Card Styles */
.coupon-card {
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #7C3AED, #D946EF);
    z-index: 1;
}

.coupon-code {
    font-family: 'DM Mono', monospace;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.coupon-code:hover {
    background-color: rgba(124, 58, 237, 0.1);
}

.coupon-code::before {
    content: 'Click to Copy';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.coupon-code:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Reveal On Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Reveal Animation */
.card-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Items Animation */
.staggered-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.staggered-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Filter Items Transition */
.filter-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Code Button Sweep Effect */
.show-code-btn {
    position: relative;
    overflow: hidden;
}

.show-code-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
    transition: all 0.6s;
}

.show-code-btn:hover::before {
    left: 100%;
}

/* Expandable Content Transition */
[id^="expand-content-"] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}