/* Custom Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f4c75 100%);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Tag Pills */
.tag-pill {
    transition: all 0.3s ease;
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 130, 184, 0.3);
}

/* Link Cards */
.link-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

/* Views Counter */
.views-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: rgba(156, 163, 175, 0.8);
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease;
}

.link-card:hover .views-counter {
    color: rgba(156, 163, 175, 1);
}

.views-counter i {
    width: 12px;
    height: 12px;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* Category Headers for Grouped View */
.category-header {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header .category-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.3), transparent);
    margin-left: 1rem;
    flex: 1;
}

.category-header .category-icon-wrapper {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Ensure proper grid spanning */
.col-span-full {
    grid-column: 1 / -1;
}

/* Category spacing in grouped view */
.category-spacer {
    grid-column: 1 / -1;
    height: 1.5rem;
}

/* 移除动画，专注功能性 - 保留基础样式 */