/* Animations CSS - Micro-interactions and Effects */

/* Hover Effects - DISABLED */
.cta-button:hover,
.btn-primary:hover {
    /* transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px var(--aqua-glow),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
}

.btn-small:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.logout-btn:hover {
    background: var(--border-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.discord-login-btn:hover {
    /* background: linear-gradient(135deg, #4752C4 0%, #3b4399 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(88, 101, 242, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
}

.close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.links-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px var(--shadow-light),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 16px 60px var(--shadow),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Active States */
.cta-button:active,
.btn-primary:active {
    transform: translateY(0);
    animation: wobble 0.3s ease;
}

/* URL Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* URL Demo Animation Classes */
.url-demo {
    transition: opacity 0.5s ease;
}

.url-demo.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.url-demo.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.url-input-demo.animate-in {
    animation: morphInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.transformation-arrow.animate-in {
    animation: particleExplosion 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.url-output-demo.animate-in {
    animation: morphInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.target-info {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
}

.target-info.animate-in {
    animation: rippleGlow 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.target-info strong {
    color: var(--accent);
    font-weight: 600;
}

/* Keyframe Animations */
@keyframes wobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-1deg); }
    75% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes urlSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes urlSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px var(--aqua-glow),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 12px 40px var(--aqua-glow),
            0 0 20px rgba(64, 224, 208, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px var(--shadow),
            0 0 0 1px var(--glass-border),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 12px 40px var(--aqua-glow),
            0 0 0 1px rgba(0, 212, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Modal Animation - DISABLED */
.modal-content {
    /* animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

.modal-content.show {
    transform: scale(1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px var(--aqua-glow);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: #ff4757;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* Glow Effects - DISABLED */
.hero-container {
    /* animation: glow 6s ease-in-out infinite; */
}

.url-short {
    /* animation: pulse 2s ease-in-out infinite; */
}

.logo {
    /* animation: float 3s ease-in-out infinite; */
}

.stat-value {
    animation: pulse 4s ease-in-out infinite;
}

/* Additional Modern Effects - DISABLED */
.cta-button::before,
.btn-primary::before {
    /* content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s; */
}

.cta-button:hover::before,
.btn-primary:hover::before {
    /* left: 100%; */
}

/* Smooth page transitions - DISABLED */
.landing-page,
.dashboard,
.stats-page {
    /* animation: fadeIn 0.5s ease-in-out; */
}

/* Enhanced focus states */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced URL Animation Effects */
@keyframes urlFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes urlFadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

@keyframes tableRowSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollbarGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--aqua-glow);
    }
    50% {
        box-shadow: 0 0 15px var(--aqua-glow);
    }
}

/* Table animations */
.links-table tbody tr {
    animation: tableRowSlideIn 0.5s ease forwards;
}

.links-table tbody tr:nth-child(odd) {
    animation-delay: 0.1s;
}

.links-table tbody tr:nth-child(even) {
    animation-delay: 0.2s;
}

/* Scrollbar glow effect */
.links-table-container::-webkit-scrollbar-thumb:hover {
    animation: scrollbarGlow 2s ease-in-out infinite;
}

/* Enhanced button ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.cta-button::after,
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after,
.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state animations */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}
