/* What Is His Name - Custom Styles */

/* 自定义CSS变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --dark-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式优化 */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* 导航栏增强 */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-link:hover::before {
    width: 100%;
}

/* 按钮样式增强 */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-gradient::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: var(--transition);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 卡片样式增强 */
.card-enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* 搜索表单样式 */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-strong);
}

.search-input {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.search-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 结果卡片样式 */
.result-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.result-card.found {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.result-card.not-found {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 脉冲动画 */
.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 渐变文本 */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 平台图标样式 */
.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.platform-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.platform-icon.facebook { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.platform-icon.twitter { background: linear-gradient(135deg, #1da1f2, #42a5f5); }
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-icon.linkedin { background: linear-gradient(135deg, #0077b5, #0288d1); }
.platform-icon.github { background: linear-gradient(135deg, #333, #555); }
.platform-icon.youtube { background: linear-gradient(135deg, #ff0000, #ff5722); }
.platform-icon.tiktok { background: linear-gradient(135deg, #000, #333); }
.platform-icon.reddit { background: linear-gradient(135deg, #ff4500, #ff7043); }
.platform-icon.pinterest { background: linear-gradient(135deg, #bd081c, #e91e63); }
.platform-icon.snapchat { background: linear-gradient(135deg, #fffc00, #fff176); color: #333; }
.platform-icon.discord { background: linear-gradient(135deg, #5865f2, #7289da); }
.platform-icon.telegram { background: linear-gradient(135deg, #0088cc, #29b6f6); }
.platform-icon.medium { background: linear-gradient(135deg, #00ab6c, #4caf50); }
.platform-icon.twitch { background: linear-gradient(135deg, #9146ff, #ab47bc); }
.platform-icon.behance { background: linear-gradient(135deg, #1769ff, #2196f3); }
.platform-icon.default { background: var(--primary-gradient); }

/* 响应式设计优化 */
@media (max-width: 768px) {
    .search-form {
        margin: 20px;
        padding: 24px;
    }
    
    .result-card {
        margin: 12px;
        padding: 16px;
    }
    
    .card-enhanced {
        margin: 12px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* 选择文本样式 */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #1e293b;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: #1e293b;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* 链接悬停效果 */
a {
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* 表单元素增强 */
input, select, textarea {
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
}

/* 成功/错误状态 */
.status-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 动画延迟类 */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* 滑入动画 */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 缩放动画 */
.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 自动加载进度指示器 */
.auto-load-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 搜索结果状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.found {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.status-indicator.not-found {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

/* URL显示框优化 */
.url-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
    transition: var(--transition);
}

.url-display:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应时间指示器 */
.response-time {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #667eea;
}

/* 平台类别标签 */
.category-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(209, 213, 219, 0.1));
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: capitalize;
}

/* 复制按钮增强 */
.copy-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.copy-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.2));
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 搜索结果网格布局优化 */
.results-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .auto-load-indicator {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }
}
