/* Frontend Styles for SEO Analysis Plugin */

.seo-analysis-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.seo-analysis-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #0f172a;
}

.seo-analysis-description {
    font-size: 17px;
    text-align: center;
    margin-bottom: 35px;
    color: #475569;
}

.seo-analysis-form {
    max-width: 600px;
    margin: 0 auto;
}

.seo-analysis-form-group {
    margin-bottom: 22px;
}

.seo-analysis-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.seo-analysis-form-group .required {
    color: #dc3545;
}

.seo-analysis-lead-hint {
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 16px;
    margin: 10px 0 24px;
}

.seo-analysis-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d4d9e3;
    border-radius: 18px;
    background: #fdfdfd;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.seo-analysis-form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.seo-analysis-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.seo-analysis-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.seo-analysis-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35);
}

.seo-analysis-submit-btn:disabled {
    background: #cbd5f5;
    cursor: not-allowed;
    box-shadow: none;
}

.seo-analysis-submit-btn .btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.seo-analysis-submit-btn .spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.seo-analysis-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 14px;
    font-size: 15px;
}

.seo-analysis-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.seo-analysis-message.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Results Styles */
.seo-analysis-results {
    margin-top: 40px;
    padding: 32px;
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seo-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.seo-results-header h3 {
    font-size: 24px;
    margin-bottom: 14px;
    color: #0f172a;
    font-weight: 600;
}

.seo-score-circle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.4);
    position: relative;
    margin: 20px 0;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.seo-score-circle.score-excellent {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #ffffff;
}

.seo-score-circle.score-good {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff;
}

.seo-score-circle.score-fair {
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    color: #ffffff;
}

.seo-score-circle.score-poor {
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%);
    color: #ffffff;
}

.seo-score-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.seo-score-label {
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-score-description {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

.seo-results-section {
    margin: 26px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.seo-limited-results {
    background-color: #fffaf0;
    border: 1px dashed #f0a500;
}

.seo-analysis-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
}

.seo-metric {
    display: flex;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.seo-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.seo-metric-icon:contains('✓') {
    color: #28a745;
}

.seo-metric-icon:contains('✗') {
    color: #dc3545;
}

.seo-metric-label {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
}

.seo-metric-value {
    color: #475569;
    font-size: 14px;
}

.seo-list {
    list-style-type: none;
    padding-left: 0;
}

.seo-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
}

.seo-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
}

.seo-recommendations {
    background-color: #fefce8;
    border: 1px solid #fef08a;
}

.seo-strengths {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.seo-email-notice {
    text-align: center;
    padding: 16px;
    background-color: #f1f5f9;
    border-radius: 18px;
    margin-top: 24px;
    color: #0f172a;
}

/* Header CTA */
.seo-header-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    padding: 32px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.seo-header-cta__content {
    flex: 1 1 280px;
    min-width: 220px;
}

.seo-header-cta__content h3 {
    margin: 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

.seo-header-cta__content p {
    margin: 0;
    color: #475569;
    font-size: 15px;
}

.seo-header-cta__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0ea5e9;
}

.seo-header-cta__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
}

.seo-header-cta__form input {
    flex: 1 1 160px;
    border: 1px solid #cbd5f5;
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-header-cta__form input:focus {
    outline: none;
    border-color: #2563eb;
}

.seo-header-cta__form button {
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #fff;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-header-cta__form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.seo-header-cta__form button .btn-loader {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.seo-header-cta__form button.is-loading .btn-text {
    opacity: 0.4;
}

.seo-header-cta__form button.is-loading .btn-loader {
    display: inline-block;
}

.seo-header-cta__message {
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
}

.seo-header-cta__message.success {
    color: #047857;
}

.seo-header-cta__message.error {
    color: #b91c1c;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .seo-analysis-container {
        padding: 24px;
    }

    .seo-header-cta {
        border-radius: 32px;
        padding: 20px;
    }
    
    .seo-analysis-title {
        font-size: 24px;
    }
    
    .seo-score-circle {
        padding: 20px;
    }
    
    .seo-score-number {
        font-size: 36px;
    }
    
    .seo-metric {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .seo-metric-value {
        margin-top: 5px;
        margin-left: 30px;
    }
}
