/**
 * Prime SEO Migration Page Styles
 *
 * Migration page clean design.
 *
 * @package Prime_SEO
 * @since 3.8.1
 */

/* Intro Card */
.migration-intro {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.migration-intro h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.migration-intro h2 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.migration-intro p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Section Title */
.section-title {
    margin: 0 0 16px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

/* Plugin Buttons */
.plugin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.plugin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plugin-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #fafaff;
}

.plugin-btn.selected {
    border-color: #6366f1;
    background: #6366f1;
    color: #fff;
}

.plugin-btn .plugin-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugin-btn .plugin-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #fff;
}

.plugin-btn .plugin-count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 4px;
}

.plugin-btn.selected .plugin-count {
    color: rgba(255, 255, 255, 0.8);
}

.plugin-btn:hover .plugin-count {
    color: #6366f1;
}

.plugin-btn.selected:hover .plugin-count {
    color: rgba(255, 255, 255, 0.8);
}

/* No Plugins State */
.no-plugins {
    background: #fff;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.no-plugins .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.no-plugins h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 16px;
}

.no-plugins p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* Migration Options */
.migration-options {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.migration-options.visible {
    display: block;
}

.migration-options h3 {
    margin: 0 0 20px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.migration-options h3 .plugin-name-selected {
    color: #6366f1;
}

/* Options */
.option-group {
    margin-bottom: 12px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.option-item:hover {
    background: #f1f5f9;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

.option-item label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.option-item .option-desc {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    margin-top: 2px;
}

.option-item .option-count {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
}

/* Migration Actions */
.migration-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-migrate {
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-migrate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-migrate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-migrate .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Progress */
.migration-progress {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.migration-progress.visible {
    display: block;
}

.progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-text {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin: 0 0 8px;
}

.progress-detail {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Results */
.migration-results {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.migration-results.visible {
    display: block;
}

.results-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.results-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.results-title {
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
    margin: 0 0 8px;
}

.results-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.result-stat {
    text-align: center;
}

.result-stat .number {
    font-size: 28px;
    font-weight: 700;
    color: #6366f1;
}

.result-stat .label {
    font-size: 13px;
    color: #64748b;
}

.btn-done {
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .prime-content {
        padding: 16px;
    }

    .plugin-buttons {
        flex-direction: column;
    }

    .plugin-btn {
        justify-content: center;
    }

    .results-stats {
        flex-direction: column;
        gap: 16px;
    }
}
