/**
 * Keyword Manager Styles
 * 关键词管理器页面样式
 */

/* Collections Section */
.collections-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.collection-card.placeholder {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    opacity: 0.6;
}

.collection-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.collection-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #1e293b;
}

.collection-card p {
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Recent Keywords Section */
.recent-keywords-section {
    padding: 3rem 0;
    background: white;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    min-width: 150px;
}

.keywords-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
}

.keywords-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.keywords-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.keywords-table tr:hover {
    background: #f9fafb;
}

.keywords-table tr:last-child td {
    border-bottom: none;
}

/* KGR Score Badge */
.kgr-score {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.kgr-score.excellent {
    background: #dcfce7;
    color: #166534;
}

.kgr-score.good {
    background: #dbeafe;
    color: #1d4ed8;
}

.kgr-score.fair {
    background: #fef3c7;
    color: #d97706;
}

.kgr-score.poor {
    background: #fee2e2;
    color: #dc2626;
}

/* Competition Badge */
.competition-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.competition-badge.low {
    background: #dcfce7;
    color: #166534;
}

.competition-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.competition-badge.high {
    background: #fee2e2;
    color: #dc2626;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view {
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-view:hover {
    background: #dbeafe;
}

.btn-edit {
    background: #fef3c7;
    color: #d97706;
}

.btn-edit:hover {
    background: #fde68a;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        justify-content: center;
    }

    .keywords-table-container {
        overflow-x: auto;
    }

    .keywords-table {
        min-width: 600px;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}