/* Site Content Analyzer Styles */

.blog82ai-site-content-analyzer {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Header Section */
.blog82ai-site-content-analyzer .page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

.blog82ai-site-content-analyzer .page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
}

.blog82ai-site-content-analyzer .page-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* Scan Overview Metrics */
.blog82ai-scan-overview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.blog82ai-overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.blog82ai-metric-item {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog82ai-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
    line-height: 1;
}

.blog82ai-metric-label {
    font-size: 14px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 3px;
}

.blog82ai-metric-description {
    font-size: 12px;
    color: #666;
}

.status-active {
    color: #00a32a;
    font-size: 20px;
}

.status-inactive {
    color: #d63638;
    font-size: 20px;
}

/* Last Scan Information */
.blog82ai-last-scan-info {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.scan-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.scan-status-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-icon {
    font-size: 20px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.status-running {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-pending {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #856404;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.scan-details {
    display: grid;
    gap: 12px;
}

.scan-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.scan-detail-item strong {
    color: #23282d;
    min-width: 120px;
}

.scan-detail-item span {
    color: #666;
}

.time-ago {
    font-style: italic;
    color: #999 !important;
    font-size: 13px;
}

.scan-detail-item.no-scan {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Sync Section */
.blog82ai-sync-section {
    margin-bottom: 25px;
}

.sync-action-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sync-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a8b 100%);
    color: white;
    padding: 20px 25px;
}

.sync-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color:#fff;
}

.sync-icon {
    font-size: 20px;
}

.sync-card-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sync-description,
.sync-benefits {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
}

.sync-description p,
.sync-benefits p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #23282d;
}

.feature-list,
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li,
.benefits-list li {
    padding: 5px 0;
    font-size: 14px;
    color: #555;
}

.feature-list li.feature-disabled {
    color: #999;
    text-decoration: line-through;
}

.sync-card-footer {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sync-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a8b);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.sync-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.blog82ai-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.blog82ai-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a8b 100%);
    color: white;
    border: 1px solid #0073aa;
}

.blog82ai-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a8b 0%, #004a75 100%);
    transform: translateY(-1px);
}

.blog82ai-btn-primary:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.blog82ai-btn-secondary {
    background: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.blog82ai-btn-secondary:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
}

.sync-note {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Modal Styles */
.blog82ai-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.blog82ai-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.blog82ai-modal-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a8b 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog82ai-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Ensure modal header title and icons are white for contrast */
.blog82ai-modal-header h3,
.blog82ai-modal-header h3 .dashicons {
    color: #ffffff !important;
}

.blog82ai-modal-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.blog82ai-modal-close:hover {
    opacity: 1;
}

.blog82ai-modal-body {
    padding: 25px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog82ai-overview-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sync-card-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sync-actions {
        flex-direction: column;
    }
    
    .blog82ai-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .sync-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blog82ai-overview-metrics {
        grid-template-columns: 1fr;
    }
    
    .blog82ai-site-content-analyzer {
        padding: 20px;
    }
}
