/**
 * Import/Export Page Styles
 *
 * @package ProRank\SEO
 * @since   1.0.0
 */

/* Grid Layout */
.prorank-import-export-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px 0;
}

@media (min-width: 783px) {
    .prorank-import-export-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cards */
.prorank-export-card,
.prorank-import-card,
.prorank-reset-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.prorank-reset-card {
    grid-column: 1 / -1;
    background: #fff5f5;
    border-color: #ffb3b3;
}

.prorank-export-card .components-card__header h3,
.prorank-import-card .components-card__header h3,
.prorank-reset-card .components-card__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
}

.prorank-reset-card .components-card__header h3 {
    color: #dc3232;
}

/* Content Spacing */
.prorank-export-card .components-card__body,
.prorank-import-card .components-card__body,
.prorank-reset-card .components-card__body {
    padding: 20px;
}

.prorank-export-card .components-text,
.prorank-import-card .components-text,
.prorank-reset-card .components-text {
    margin-bottom: 16px;
    color: #646970;
    line-height: 1.6;
}

/* Export Info */
.prorank-export-info {
    margin: 16px 0;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 4px;
    min-height: 60px;
}

.prorank-export-info .components-notice {
    margin: 0;
}

.prorank-export-info p,
.prorank-export-info .components-text {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

/* Import Controls */
.prorank-import-controls {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prorank-selected-file {
    color: #007cba;
    font-size: 13px;
    font-weight: 500;
}

/* Select Controls */
.prorank-export-card .components-base-control,
.prorank-import-card .components-base-control {
    margin-bottom: 20px;
}

.prorank-export-card .components-base-control__label,
.prorank-import-card .components-base-control__label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.prorank-export-card .components-base-control__help,
.prorank-import-card .components-base-control__help {
    font-size: 12px;
    color: #757575;
    margin-top: 8px;
}

/* Buttons */
.prorank-export-card .components-button,
.prorank-import-card .components-button,
.prorank-reset-card .components-button {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
}

.prorank-export-card .components-button.is-primary,
.prorank-import-card .components-button.is-primary {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

.prorank-export-card .components-button.is-primary:hover,
.prorank-import-card .components-button.is-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.prorank-export-card .components-button.is-busy,
.prorank-import-card .components-button.is-busy {
    animation: prorank-pulse 1.5s ease-in-out infinite;
}

@keyframes prorank-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Reset Section */
.prorank-reset-card ul {
    margin: 12px 0 20px 20px;
    color: #646970;
}

.prorank-reset-card li {
    margin: 4px 0;
    list-style: disc;
}

.prorank-reset-card .components-notice {
    margin-bottom: 16px;
}

.prorank-reset-card .components-notice strong {
    color: #dc3232;
}

/* Reset Modal */
.prorank-reset-modal {
    max-width: 500px;
}

.prorank-reset-modal .components-modal__header {
    background: #fff5f5;
    border-bottom: 1px solid #ffb3b3;
}

.prorank-reset-modal .components-modal__header h1 {
    color: #dc3232;
    font-size: 18px;
}

.prorank-reset-modal .components-modal__content {
    padding: 20px;
}

.prorank-reset-modal ul {
    margin: 12px 0 20px 24px;
    color: #646970;
}

.prorank-reset-modal li {
    margin: 6px 0;
    list-style: disc;
}

.prorank-reset-modal .components-text {
    margin-bottom: 12px;
    line-height: 1.6;
}

.prorank-reset-modal .components-text strong {
    color: #dc3232;
}

.prorank-reset-modal .components-flex {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Import/Export Notices */
.prorank-import-card .components-notice,
.prorank-export-card .components-notice {
    margin: 16px 0;
}

.prorank-import-card .components-notice.is-warning {
    background: #fff8e5;
    border-left-color: #f0b849;
}

.prorank-import-card .components-notice.is-error {
    background: #fff5f5;
    border-left-color: #dc3232;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .prorank-import-export-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .prorank-reset-card {
        grid-column: 1;
    }
    
    .prorank-export-card .components-card__body,
    .prorank-import-card .components-card__body,
    .prorank-reset-card .components-card__body {
        padding: 16px;
    }
}

