/* ---------------------------
 * Technical SEO HTML Audit – główny wrapper
 * -------------------------- */

.seoaudit-wrapper {
    /* układ jak w slugify/htmlratio */
    box-sizing: border-box;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---------------------------
 * Tekst i etykiety
 * -------------------------- */

.seoaudit-wrapper label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.seoaudit-wrapper .seoaudit-help {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ---------------------------
 * Pole textarea (HTML wejściowy)
 * -------------------------- */

.seoaudit-wrapper textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 260px;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--e-global-color-uicore_body, #d1d5db);
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.seoaudit-wrapper textarea:focus {
    outline: none;
    border-color: var(--e-global-color-uicore_primary, #2563eb);
    box-shadow: 0 0 0 1px var(--e-global-color-uicore_primary, #2563eb);
}

/* ---------------------------
 * Sekcja przycisków – spójna z slugify/htmlratio
 * -------------------------- */

.seoaudit-wrapper .seoaudit-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* przyciski – ten sam styl co slugify */
.seoaudit-wrapper .seoaudit-button-primary,
.seoaudit-wrapper .seoaudit-button-secondary {
    min-width: 180px;
    padding-inline: 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
}

/* proporcje – główny vs dodatkowy */
.seoaudit-wrapper .seoaudit-button-primary {
    flex: 2 1 220px;
}

.seoaudit-wrapper .seoaudit-button-secondary {
    flex: 1 1 140px;
}

/* przycisk secondary – jaśniejszy, tak jak #slugify-clear */
.seoaudit-wrapper .seoaudit-button-secondary {
    background-color: var(--e-global-color-uicore_light, #f9fafb);
    color: var(--e-global-color-uicore_primary, #2563eb);
    border: 1px solid var(--e-global-color-uicore_primary, #2563eb);
}

.seoaudit-wrapper .seoaudit-button-secondary:hover {
    background-color: var(--e-global-color-uicore_primary, #2563eb);
    color: #ffffff;
}

/* ---------------------------
 * Wyniki analizy
 * -------------------------- */

.seoaudit-wrapper .seoaudit-results {
    margin-top: 0;
}

/* Box z wynikiem 0–100 */

.seoaudit-wrapper .seoaudit-score-box {
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.seoaudit-wrapper .seoaudit-score-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.seoaudit-wrapper .seoaudit-score-label {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.seoaudit-wrapper .seoaudit-score-sub {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* Kolory dla poziomów wyniku */

.seoaudit-wrapper .seoaudit-score-great {
    background: #18b600; /* zielony */
}

.seoaudit-wrapper .seoaudit-score-good {
    background: #18b600; /* jaśniejszy zielony */
}

.seoaudit-wrapper .seoaudit-score-medium {
    background: #f5b600; /* żółty */
    color: var(--e-global-color-uicore_headline);
}

.seoaudit-wrapper .seoaudit-score-bad {
    background: #e30000; /* czerwony */
}

/* Sekcje szczegółowe */

.seoaudit-wrapper .seoaudit-section {
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0.85rem 0.9rem 0.9rem;
    margin-bottom: 0.85rem;
}

.seoaudit-wrapper .seoaudit-section h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

/* Listy */

.seoaudit-wrapper .seoaudit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.seoaudit-wrapper .seoaudit-list li {
    margin-bottom: 0.25rem;
}

.seoaudit-wrapper .seoaudit-list li:last-child {
    margin-bottom: 0;
}

/* mniejsze listy (np. nagłówki, obrazy bez alt) */
.seoaudit-wrapper .seoaudit-list-small {
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

/* Podtytuły w sekcjach */

.seoaudit-wrapper .seoaudit-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Komunikaty */

.seoaudit-wrapper .seoaudit-message {
    position: relative;
    margin-top: 0;
    padding: 0.65rem 1rem;
    border-radius: 6px;

    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;

    color: var(--e-global-color-uicore_light);

    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

.seoaudit-wrapper .seoaudit-message-error {
    background: #e30000;
}

/* Podkreślenie dobrych/złych elementów w tekście */

.seoaudit-wrapper .seoaudit-good {
    color: #15803d;
    font-size: 0.88rem;
}

.seoaudit-wrapper .seoaudit-bad {
    color: #b91c1c;
    font-weight: 600;
}

.seoaudit-wrapper .seoaudit-warn {
    color: #b45309;
    font-weight: 600;
}

.seoaudit-wrapper .seoaudit-note {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

/* ---------------------------
 * Responsywność – spójna z resztą
 * -------------------------- */

@media (max-width: 640px) {
    .seoaudit-wrapper {
        padding: 1rem;
    }

    .seoaudit-wrapper .seoaudit-button-primary,
    .seoaudit-wrapper .seoaudit-button-secondary {
        flex: 1 1 100%;
    }

    .seoaudit-wrapper .seoaudit-summary-row strong {
        white-space: normal;
    }
}