/* ============================================================================
   AWARD-WINNING DESIGN ENHANCEMENTS FOR URL STATUS CHECKER

   World-class animations, micro-interactions, and visual effects
   Designed for 60fps performance and delightful user experience
   ============================================================================ */

/* ==================== ADVANCED SCROLL ANIMATIONS ==================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays for list items */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }


/* ==================== MAGNETIC BUTTON EFFECTS ==================== */

.magnetic-button {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.magnetic-button:hover {
    transform: scale(1.02);
}

.magnetic-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #ff006e, #000000);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(12px);
    z-index: -1;
}

.magnetic-button:hover::before {
    opacity: 0.4;
}

.magnetic-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}


/* ==================== RIPPLE EFFECT ==================== */

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* ==================== ENHANCED CARD ANIMATIONS ==================== */

.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow;
}

.card-hover-lift:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3),
                0 10px 30px -10px rgba(255, 0, 110, 0.2);
}

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: scale(1.05) rotateY(5deg);
}


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

.animated-gradient {
    background: linear-gradient(
        270deg,
        #ff006e,
        #000000,
        #ff006e
    );
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;
}

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

.gradient-border {
    position: relative;
    background: white;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #ff006e, #000000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}


/* ==================== SHIMMER LOADING EFFECT ==================== */

.shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    100% { transform: translateX(100%); }
}


/* ==================== PULSE EFFECTS ==================== */

.pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.5),
                    0 0 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(255, 0, 110, 0.7),
                    0 0 60px rgba(0, 0, 0, 0.5);
    }
}

.pulse-scale {
    animation: pulse-scale 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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


/* ==================== SMOOTH ENTRANCE ANIMATIONS ==================== */

.fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fade-in-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-in {
    animation: zoom-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slide-in-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slide-in-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==================== PARTICLE EFFECTS ==================== */

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ff006e, transparent);
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}


/* ==================== STATUS BADGE ENHANCEMENTS ==================== */

.status-badge-enhanced {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.status-badge-enhanced::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.status-badge-enhanced:hover {
    transform: scale(1.1) rotateZ(2deg);
}

.status-badge-enhanced:hover::before {
    opacity: 0.6;
}

.status-badge-enhanced:active {
    transform: scale(0.95);
}


/* ==================== TOOLTIP ENHANCEMENTS ==================== */

.tooltip-modern {
    position: relative;
}

.tooltip-modern::before,
.tooltip-modern::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-modern::before {
    content: attr(data-tooltip);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.tooltip-modern::after {
    content: '';
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}


/* ==================== SMOOTH SCROLLBAR ==================== */

* {
    scrollbar-width: thin;
    scrollbar-color: #ff006e #f5f5dc;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: #f5f5dc;
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff006e, #000000);
    border-radius: 6px;
    border: 2px solid #f5f5dc;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #000000, #ff006e);
}


/* ==================== GLASS MORPHISM ENHANCEMENTS ==================== */

.glass-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}


/* ==================== BUTTON ENHANCEMENTS ==================== */

.button-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
}

.button-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-4px);
    filter: brightness(0.8);
}

.button-3d:hover {
    transform: translateY(-2px) translateZ(4px);
}

.button-3d:active {
    transform: translateY(0) translateZ(0);
}

.button-glow {
    position: relative;
    overflow: hidden;
}

.button-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button-glow:hover::before {
    width: 300px;
    height: 300px;
}


/* ==================== LOADING SPINNER ENHANCEMENT ==================== */

.spinner-modern {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 0, 110, 0.2);
    border-top-color: #ff006e;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.spinner-dots {
    display: flex;
    gap: 8px;
}

.spinner-dots span {
    width: 12px;
    height: 12px;
    background: #ff006e;
    border-radius: 50%;
    animation: spinner-bounce 1.4s ease-in-out infinite;
}

.spinner-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spinner-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

/* Hardware acceleration for smooth animations */
.hw-accelerate {
    transform: translateZ(0);
    will-change: transform;
}

/* 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;
        scroll-behavior: auto !important;
    }
}


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

@media (max-width: 768px) {
    .scroll-reveal {
        transform: translateY(20px);
    }

    .card-hover-lift:hover {
        transform: translateY(-8px);
    }

    .magnetic-button:hover {
        transform: scale(1.01);
    }
}


/* ==================== CUSTOM CURSOR EFFECTS ==================== */

.cursor-pointer-modern {
    cursor: pointer;
    position: relative;
}

.cursor-pointer-modern::after {
    content: '→';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #ff006e;
    font-size: 20px;
}

.cursor-pointer-modern:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* ==================== SUCCESS/ERROR TOAST ANIMATIONS ==================== */

.toast-enter {
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-exit {
    animation: toast-slide-out 0.3s cubic-bezier(0.4, 0, 1, 1);
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-100%) scale(0.8);
    }
}


/* ==================== FLOATING ELEMENTS ==================== */

.float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

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


/* ==================== TEXT EFFECTS ==================== */

.text-gradient-animated {
    background: linear-gradient(
        90deg,
        #ff006e 0%,
        #000000 50%,
        #ff006e 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-shift 3s linear infinite;
}

@keyframes text-gradient-shift {
    to {
        background-position: 200% center;
    }
}

.text-glow-pulse {
    animation: text-glow-pulse 2s ease-in-out infinite;
}

@keyframes text-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 0, 110, 0.5),
                     0 0 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 0, 110, 0.8),
                     0 0 60px rgba(0, 0, 0, 0.5),
                     0 0 80px rgba(0, 0, 0, 0.3);
    }
}
