
.seo-analyzer-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid #f0f4f8;
}

.seo-analyzer-header {
    text-align: center;
    margin-bottom: 35px;
}

.seo-analyzer-header h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.seo-analyzer-header p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.seo-analyzer-form-wrapper {
    margin-bottom: 30px;
}

.seo-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.seo-inputs input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    min-width: 0;
}
.seo-inputs input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.seo-consent {
    margin-bottom: 20px;
    font-size: 13px;
    color: #64748b;
    text-align: left;
}

.seo-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.4;
}

.seo-consent input[type="checkbox"] {
    margin-top: 2px;
}

.seo-consent a {
    color: #3b82f6;
    text-decoration: underline;
}

.seo-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    width: 100%;
}

.seo-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
    transform: translateY(-1px);
}

#seo-analyzer-loading {
    text-align: center;
    padding: 40px 0;
}
.seo-spinner {
    border: 4px solid rgba(0, 0, 0, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: seo-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}
@keyframes seo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seo-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.seo-score-card {
    text-align: center;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.seo-score-card h4 {
    margin: 15px 0 0 0;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}
.percentage {
    fill: #1e293b;
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 800;
}
.stroke-red { stroke: #ef4444; }
.stroke-orange { stroke: #f59e0b; }
.stroke-green { stroke: #10b981; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.metric-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
}

.status-badge {
    float: right;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.status-good { background: #d1fae5; color: #065f46; }
.status-improve { background: #fef3c7; color: #92400e; }
.status-critical { background: #fee2e2; color: #991b1b; }
.status-info { background: #f1f5f9; color: #475569; }
.color-good { color: #10b981; }
.color-improve { color: #f59e0b; }
.color-critical { color: #ef4444; }

.seo-measures-section {
    margin-top: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .seo-inputs {
        flex-direction: column;
    }
    .seo-scores-grid {
        grid-template-columns: 1fr 1fr;
    }
}
