/**
 * 🧩 Lumvid Component Styles
 * 可复用组件样式
 */

/* ================================
   1. 卡片组件
   ================================ */
.art-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.art-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.art-card-simple {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.art-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* 深色卡片 */
.card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ================================
   2. 按钮组件
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

/* 主按钮 */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* 次按钮 */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 深色按钮 */
.btn-dark {
    background: #0f172a;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
    background: #1e293b;
}

/* 图标按钮 */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ================================
   3. 表单组件
   ================================ */
.input-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-field:focus {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-field::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

/* 大输入框 */
.input-xl {
    height: 64px;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.input-xl:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

/* 深色输入框 */
.input-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.input-dark:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================
   4. 徽章/标签
   ================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-info {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* ================================
   5. 加载指示器
   ================================ */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ================================
   6. 分隔线
   ================================ */
.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
}

.divider-light {
    background: rgba(0, 0, 0, 0.05);
}

/* ================================
   7. 工作卡片动画
   ================================ */
.work-card {
    animation: slideUpFade 0.5s ease-out forwards;
}

/* Masonry 布局项 */
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}