/* Custom styles for Tool Launcher */

/* Global Transitions */
body, header, footer, .tool-card, input {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow, transform;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tool card styles */
.tool-card {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    /* 解决 Safari 上的圆角溢出问题 */
    transform: translateZ(0); 
}

.tool-card:hover {
    transform: translateY(-4px);
    /* 浅色模式阴影 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 深色模式下的阴影调整 (发光效果更柔和) */
.dark .tool-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6; /* 悬停时边框变蓝 */
}

/* 光效动画 */
.tool-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    animation: shimmer 0.6s ease-in-out;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading animation */
.animate-fade-in {
    animation: cardAppear 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar beautification */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb {
    background-color: #475569;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}