/* =============================================
   AI Website Auditor — Główny arkusz stylów
   ============================================= */

/* ---- Zmienne CSS ---- */
:root {
    --primary:        #4F46E5;
    --primary-dark:   #3730A3;
    --primary-light:  #EEF2FF;
    --secondary:      #10B981;
    --secondary-light:#D1FAE5;
    --danger:         #EF4444;
    --danger-light:   #FEE2E2;
    --warning:        #F59E0B;
    --warning-light:  #FEF3C7;
    --success:        #10B981;
    --success-light:  #D1FAE5;
    --gray-50:        #F9FAFB;
    --gray-100:       #F3F4F6;
    --gray-200:       #E5E7EB;
    --gray-300:       #D1D5DB;
    --gray-500:       #6B7280;
    --gray-700:       #374151;
    --gray-900:       #111827;
    --white:          #FFFFFF;
    --shadow-sm:      0 1px 2px rgba(0,0,0,.06);
    --shadow:         0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg:      0 10px 25px -5px rgba(0,0,0,.1);
    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      20px;
    --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition:     200ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--gray-50); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li     { margin-bottom: .4rem; }

/* ---- Layout ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAGŁÓWEK STRONY
   ============================================ */
.site-header {
    background: #0F172A;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.header-logo-img {
    height: 56px;
    max-width: 220px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    padding: .3rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ---- Formularz ---- */
.audit-form {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ---- Przełącznik trybu audytu ---- */
.audit-mode-switcher {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .85rem 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.mode-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.mode-btn-active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.mode-icon { font-size: 1.4rem; line-height: 1; }
.mode-label {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-900);
}
.mode-btn-active .mode-label { color: var(--primary-dark); }
.mode-desc {
    font-size: .72rem;
    color: var(--gray-500);
    text-align: center;
}
.mode-btn-active .mode-desc { color: var(--primary); }

.form-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .5rem;
    text-align: left;
}

.input-with-button {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color var(--transition);
    min-width: 200px;
}
.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.input-prefix {
    padding: 0 .75rem;
    font-size: 1.1rem;
    color: var(--gray-500);
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: .75rem .75rem .75rem 0;
    color: var(--gray-900);
    background: transparent;
    font-family: var(--font);
}

.form-hint {
    margin-top: .5rem;
    font-size: .8rem;
    color: var(--gray-500);
    text-align: left;
}

/* ---- Loader ---- */
.loader {
    margin: 2rem auto 0;
    max-width: 500px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(8px);
    text-align: center;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-title   { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.loader-subtitle { font-size: .9rem; opacity: .85; margin-bottom: 1.5rem; }

.loader-steps   { display: flex; flex-direction: column; gap: .5rem; text-align: left; }
.loader-step    { padding: .5rem .75rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); font-size: .85rem; opacity: .6; transition: all .4s; }
.loader-step.active { opacity: 1; background: rgba(255,255,255,.25); font-weight: 600; }

/* ---- Alert ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: left;
}
.alert-error   { background: var(--danger-light); color: #991B1B; border: 1px solid #FCA5A5; }
.alert-icon    { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

/* ============================================
   PRZYCISKI
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
    white-space: nowrap;
    justify-content: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-primary:disabled { background: var(--gray-300); border-color: var(--gray-300); cursor: not-allowed; }

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); }

.btn-large { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm    { padding: .4rem 1rem; font-size: .85rem; }

.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ============================================
   SEKCJE STRONY GŁÓWNEJ
   ============================================ */
.features-section, .how-it-works, .recent-reports {
    padding: 5rem 0;
}
.features-section { background: var(--white); }
.how-it-works     { background: var(--gray-50); }
.recent-reports   { background: var(--white); }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: .75rem;
    color: var(--gray-900);
}
.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-icon  { font-size: 1.75rem; flex-shrink: 0; }
.feature-title { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; color: var(--gray-900); }
.feature-desc  { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* How it works */
.steps-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step p  { font-size: .83rem; color: var(--gray-500); margin: 0; }
.step-arrow { color: var(--gray-300); font-size: 1.5rem; flex-shrink: 0; }

/* Recent reports */
.reports-list { display: flex; flex-direction: column; gap: .5rem; }
.report-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all var(--transition);
    color: var(--gray-900);
    flex-wrap: wrap;
}
.report-item:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; }
.report-url  { flex: 1; font-weight: 600; font-size: .9rem; min-width: 150px; word-break: break-all; }
.report-date { font-size: .8rem; color: var(--gray-500); flex-shrink: 0; }
.report-link { font-size: .85rem; color: var(--primary); flex-shrink: 0; margin-left: auto; }

/* ============================================
   STOPKA
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 2rem 0;
    text-align: center;
    font-size: .85rem;
}
.footer-note { margin-top: .5rem; opacity: .6; }

/* ============================================
   STRONA RAPORTU
   ============================================ */
.report-body { background: var(--gray-50); }

.report-header {
    background: #0F172A;
    border-bottom: none;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.report-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-header-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.site-header-inner {
    display: flex;
    align-items: center;
}

/* Elementy w ciemnym headerze raportu */
.report-header .btn-outline {
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.3);
}
.report-header .btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
.report-header .logo { color: #fff; }

.report-main { padding: 2rem 0 4rem; }

.report-meta-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.report-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); display: block; }
.report-url-text { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.report-url-open { font-size: .85rem; color: var(--primary); margin-left: .3rem; }
.report-url-link { font-size: .95rem; font-weight: 600; color: var(--primary); word-break: break-all; }

/* === PASEK PRZEANALIZOWANYCH PODSTRON === */
.crawled-pages-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .65rem 1.25rem;
    background: var(--primary-light);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .82rem;
}

.crawled-label {
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
    margin-right: .25rem;
}

.crawled-page {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    background: var(--white);
    border: 1px solid #C7D2FE;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: .8rem;
    transition: all var(--transition);
    text-decoration: none;
}
.crawled-page:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.crawled-page em { color: var(--gray-500); font-style: normal; }

.crawled-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.crawled-dot.main { background: var(--primary); }
.crawled-dot.sub  { background: var(--secondary); }

.crawled-tag {
    background: var(--secondary-light);
    color: #065F46;
    border-radius: 999px;
    padding: .05rem .4rem;
    font-size: .7rem;
    font-weight: 700;
}

/* === WYKRYTE DANE STRONY === */
.detected-data-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: var(--shadow-sm);
}
.detected-group {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    flex-wrap: wrap;
}
.detected-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-700);
    white-space: nowrap;
    padding-top: .15rem;
}
.detected-chip {
    display: inline-block;
    border-radius: 999px;
    padding: .15rem .65rem;
    font-size: .74rem;
    font-weight: 600;
}
.detected-chip-section {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.detected-chip-trust {
    background: var(--secondary-light);
    color: #065F46;
}
.detected-chip-cms {
    background: #EDE9FE;
    color: #4C1D95;
    font-weight: 600;
}
.detected-chip-analytics {
    background: #DBEAFE;
    color: #1E3A8A;
}
.detected-chip-chat {
    background: #FEF3C7;
    color: #92400E;
}
.detected-quote {
    font-size: .78rem;
    color: var(--gray-500);
    font-style: italic;
}

/* === SCREENSHOTY === */
.screenshots-section { margin-bottom: 1.5rem; }

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.screenshot-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-50);
}

.screenshot-label {
    padding: .5rem 1rem;
    font-weight: 700;
    font-size: .85rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .2s ease;
}
.screenshot-img:hover { transform: scale(1.01); }

.screenshot-img-mobile {
    max-width: 390px;
    margin: 0 auto;
}

.screenshots-note {
    font-size: .82rem;
    color: var(--gray-500);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: .5rem 1rem;
}

/* Sekcja raportu */
.report-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--gray-100);
}

/* --- Ogólna ocena --- */
.overall-section { padding: 2.5rem 2rem; }

.overall-score-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.overall-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 5px solid currentColor;
}
.overall-score-circle .score-number { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.overall-score-circle .score-max    { font-size: .85rem; opacity: .7; }

.overall-title   { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.overall-opinion { font-size: 1rem; color: var(--gray-700); margin-bottom: 1rem; line-height: 1.7; }

.sells-badge {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    background: var(--primary-light);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius-sm);
    padding: .5rem 1rem;
    font-size: .9rem;
    color: var(--primary-dark);
}

.quick-diagnosis {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 1rem;
}
.quick-diagnosis h3 { font-size: 1rem; margin-bottom: .35rem; }
.quick-diagnosis p  { margin: 0; color: var(--gray-700); }

.data-limitations {
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: var(--warning-light);
    border: 1px solid #FCD34D;
    border-radius: var(--radius-sm);
}
.data-limitations h4 { font-size: .9rem; margin-bottom: .4rem; color: #92400E; }
.data-limitations ul  { margin: 0; color: #78350F; font-size: .875rem; }

/* --- Oceny kategorii --- */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.score-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    background: var(--gray-50);
}

.score-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}

.score-card-label   { font-size: .9rem; font-weight: 700; color: var(--gray-700); }
.score-card-comment { font-size: .82rem; color: var(--gray-500); margin: 0 0 .6rem; line-height: 1.5; }

.score-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}

/* --- Badges: score --- */
.score-badge {
    font-size: .8rem;
    font-weight: 800;
    padding: .25rem .65rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.score-good    { color: #065F46; background: var(--success-light); border: 1px solid #6EE7B7; }
.score-warning { color: #92400E; background: var(--warning-light); border: 1px solid #FCD34D; }
.score-bad     { color: #991B1B; background: var(--danger-light);  border: 1px solid #FCA5A5; }

.score-bar-fill.score-good    { background: var(--success); }
.score-bar-fill.score-warning { background: var(--warning); }
.score-bar-fill.score-bad     { background: var(--danger);  }

.overall-score-circle.score-good    { color: #065F46; background: var(--success-light); }
.overall-score-circle.score-warning { color: #92400E; background: var(--warning-light); }
.overall-score-circle.score-bad     { color: #991B1B; background: var(--danger-light);  }

/* --- Badges: priorytet i trudność --- */
.priority-badge, .difficulty-badge {
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
}

.priority-high   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.priority-medium { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.priority-low    { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }

.difficulty-easy   { background: #D1FAE5; color: #065F46; }
.difficulty-medium { background: #E0E7FF; color: #3730A3; }
.difficulty-hard   { background: #FEE2E2; color: #991B1B; }

/* --- Raporty ostatnich ocen --- */
.report-score {
    font-size: .85rem;
    font-weight: 800;
    padding: .2rem .65rem;
    border-radius: 999px;
}

/* --- Listy --- */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.check-list li:last-child { border-bottom: none; }
.check-list-good li::before { content: '✅ '; }
.check-list-bad  li::before { content: '⚠️ '; }

.recommendation-list li { margin-bottom: .6rem; font-size: .9rem; color: var(--gray-700); }

/* --- Dwie kolumny --- */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .two-col-section { grid-template-columns: 1fr; } }

/* --- Problemy --- */
.issues-list { display: flex; flex-direction: column; gap: 1rem; }

.issue-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    transition: border-color var(--transition);
}
.issue-card:hover { border-color: var(--primary); }

.issue-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}
.issue-number { font-size: .8rem; font-weight: 700; color: var(--gray-500); }
.issue-area   { font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: .2rem .6rem; border-radius: 999px; }
.issue-title  { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: var(--gray-900); }
.issue-why    { font-size: .875rem; color: var(--gray-700); margin-bottom: .5rem; }
.issue-rec    { font-size: .875rem; color: var(--gray-700); margin-bottom: .5rem; }
.issue-impact { font-size: .82rem; color: var(--gray-500); margin: 0; }

/* --- Priorytety --- */
.priorities-list { display: flex; flex-direction: column; gap: .75rem; }

.priority-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    flex-wrap: wrap;
}

.priority-rank {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.priority-content  { flex: 1; min-width: 200px; }
.priority-action   { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; color: var(--gray-900); }
.priority-effect   { font-size: .83rem; color: var(--gray-500); margin: 0; }
.priority-meta     { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }

/* --- Plan działań --- */
.action-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.action-plan-card {
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 4px solid;
}
.action-plan-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.action-plan-card ul { margin: 0; font-size: .875rem; }
.action-plan-card li { margin-bottom: .5rem; color: var(--gray-700); }

.plan-quick       { background: var(--success-light); border-color: var(--success);   }
.plan-structural  { background: var(--primary-light); border-color: var(--primary);   }
.plan-longterm    { background: var(--warning-light); border-color: var(--warning);   }

/* --- Copywriting --- */
.copywriting-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }

.copy-suggestion {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.copy-suggestion label   { font-size: .8rem; font-weight: 700; color: var(--gray-500); display: block; margin-bottom: .5rem; }
.copy-suggestion blockquote { margin: 0; font-size: .9rem; color: var(--gray-900); border-left: 3px solid var(--primary); padding-left: .75rem; line-height: 1.6; }

.cta-suggestions, .benefit-ideas { margin-top: 1rem; }
.cta-suggestions h4, .benefit-ideas h4 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; color: var(--gray-700); }

.cta-buttons-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.cta-preview-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: .5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    cursor: default;
}

/* --- SEO --- */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }

.seo-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.seo-item label { font-size: .8rem; font-weight: 700; color: var(--gray-500); display: block; margin-bottom: .4rem; }

.seo-tag {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-size: .875rem;
    color: var(--gray-900);
    word-break: break-word;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.seo-section      { margin-top: 1.25rem; }
.seo-section h4   { font-size: .9rem; font-weight: 700; margin-bottom: .6rem; color: var(--gray-700); }
.seo-section ol   { padding-left: 1.5rem; font-size: .875rem; color: var(--gray-700); }

.keyword-tags     { display: flex; flex-wrap: wrap; gap: .4rem; }
.keyword-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #C7D2FE;
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .8rem;
    font-weight: 600;
}

/* --- Analiza sekcji --- */
.section-analysis-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--gray-50);
}
.section-analysis-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--gray-900); }
.section-analysis-cols  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .75rem; }
@media (max-width: 600px) { .section-analysis-cols { grid-template-columns: 1fr; } }

.section-col { padding: .75rem; border-radius: var(--radius-sm); }
.section-col h4 { font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }
.section-col p  { font-size: .87rem; color: var(--gray-700); margin: 0; line-height: 1.5; }
.section-col-good { background: var(--success-light); }
.section-col-bad  { background: var(--danger-light);  }
.section-recommendation { font-size: .875rem; color: var(--gray-700); margin: 0; padding: .5rem .75rem; background: var(--primary-light); border-radius: var(--radius-sm); }

/* --- Zalety --- */
.strengths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.strength-card  { background: var(--success-light); border: 1px solid #6EE7B7; border-radius: var(--radius); padding: 1.25rem; }
.strength-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: #065F46; }
.strength-card p  { font-size: .875rem; color: #047857; margin-bottom: .5rem; }
.strength-better  { font-style: italic; font-size: .82rem; color: #065F46; }

/* --- Werdykt --- */
.verdict-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.verdict-main, .verdict-fix, .verdict-effect {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.verdict-main   { background: var(--primary-light); border-color: #C7D2FE; }
.verdict-fix    { background: var(--warning-light); border-color: #FCD34D; }
.verdict-effect { background: var(--success-light); border-color: #6EE7B7; }
.verdict-main h3, .verdict-fix h3, .verdict-effect h3 { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.verdict-main p, .verdict-fix p, .verdict-effect p   { font-size: .875rem; margin: 0; line-height: 1.6; }

/* --- Kontrola techniczna --- */
.tech-details { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.tech-details summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    background: var(--gray-50);
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::before { content: '▶'; font-size: .7rem; transition: transform var(--transition); }
details[open] summary::before { transform: rotate(90deg); }

.tech-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    padding: 1px;
}

.tech-check-item {
    background: var(--white);
    padding: 1rem 1.25rem;
}
.tech-check-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.tech-check-name   { font-size: .875rem; font-weight: 700; color: var(--gray-900); }
.tech-check-message { font-size: .82rem; color: var(--gray-500); margin-bottom: .35rem; }
.tech-check-rec     { font-size: .8rem; color: var(--primary-dark); }

.tech-ok      { border-left: 3px solid var(--success); }
.tech-warning { border-left: 3px solid var(--warning); }
.tech-error   { border-left: 3px solid var(--danger);  }

/* --- Nawigacja raportu --- */
.report-nav {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================
   STRONA BŁĘDU
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gray-50);
}

.error-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.error-icon    { font-size: 3.5rem; margin-bottom: 1.25rem; }
.error-title   { font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.error-message { color: var(--gray-500); margin-bottom: 2rem; line-height: 1.6; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero { padding: 3rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .audit-form { padding: 1.5rem; margin: 0 -1rem; border-radius: 0; }
    .input-with-button { flex-direction: column; }
    .btn-large { width: 100%; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .report-section { padding: 1.25rem; }
    .overall-score-card { flex-direction: column; align-items: flex-start; }
    .scores-grid { grid-template-columns: 1fr 1fr; }
    .report-header-actions { gap: .35rem; }
    .report-nav { flex-direction: column; }
    .report-nav .btn { width: 100%; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .scores-grid   { grid-template-columns: 1fr; }
    .action-plan-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print, .site-header, .report-header { display: none !important; }
    body, .report-body { background: white; }
    .report-section { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
    .report-main { padding: 0; }
    .container { max-width: 100%; padding: 0; }
    a { color: inherit; }
    .score-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .score-badge, .priority-badge, .difficulty-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
