/**
 * Estilos para el Analizador SEO y Reportes - Arte SEO Auditor
 */

.arte-seo-form-wrapper, 
.arte-seo-report-container {
    max-width: 850px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3e50;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* Formulario de entrada */
.arte-seo-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arte-seo-form-wrapper label {
    font-weight: 600;
    font-size: 16px;
}

.arte-seo-form-wrapper input[type="url"] {
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.arte-seo-form-wrapper input[type="url"]:focus {
    border-color: #3182ce;
}

.arte-seo-form-wrapper button[type="submit"] {
    background-color: #3182ce;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.arte-seo-form-wrapper button[type="submit"]:hover {
    background-color: #2b6cb0;
}

.arte-seo-form-wrapper button[type="submit"]:active {
    transform: scale(0.98);
}

/* Loader de espera */
#arte-seo-loader {
    text-align: center;
    padding: 20px;
    font-weight: 500;
    color: #4a5568;
}

/* Cabecera del Reporte */
.arte-seo-header-report {
    border-bottom: 2px solid #f7fafc;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.arte-seo-header-report h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #1a202c;
}

.arte-seo-target-url {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

/* Cuadrícula de Métricas */
.arte-seo-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.arte-seo-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.arte-seo-card .metric-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 600;
}

.arte-seo-card .metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.arte-seo-card .metric-value-small {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    word-break: break-all;
}

/* Semáforo de Puntajes */
.arte-seo-good {
    background: #f0fff4 !important;
    border-color: #c6f6d5 !important;
}
.arte-seo-good .metric-value {
    color: #22543d !important;
}

.arte-seo-warning {
    background: #fffaf0 !important;
    border-color: #feebc8 !important;
}
.arte-seo-warning .metric-value {
    color: #744210 !important;
}

.arte-seo-bad {
    background: #fff5f5 !important;
    border-color: #fed7d7 !important;
}
.arte-seo-bad .metric-value {
    color: #742a2a !important;
}

/* Sección de Diagnóstico IA */
.arte-seo-ai-section {
    background: #f7fafc;
    border-left: 4px solid #3182ce;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.arte-seo-ai-section h3 {
    margin-top: 0;
    color: #2b6cb0;
    font-size: 18px;
    margin-bottom: 15px;
}

.arte-seo-ai-content p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #4a5568;
}

.arte-seo-ai-content p:last-child {
    margin-bottom: 0;
}

/* Pie del Reporte */
.arte-seo-footer-report {
    text-align: center;
    margin-top: 20px;
}

.arte-seo-back-btn {
    display: inline-block;
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.arte-seo-back-btn:hover {
    color: #2b6cb0;
    text-decoration: underline;
}