/* 
 * KSeF Monitor - Help Pages Styles
 * Style dla stron pomocy/dokumentacji
 */

/* Zmienne specyficzne dla stron pomocy */
:root {
    --help-bg-light: #f5f5f5;
    --help-border-color: #e0e0e0;
}

body {
    background: var(--help-bg-light);
    line-height: 1.35;
    font-size: 15px;
    /* Kompaktowy spacing dla dokumentacji */
}

/* Content - White Card Layout */
.container {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

.content-card {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.page-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--help-border-color);
}

.lead {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Nagłówki sekcji */
.content-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.content-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.content-card p {
    margin-bottom: 10px;
    line-height: 1.45;
}

.content-section {
    margin-bottom: 24px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Listy wyliczeniowe - wyrównanie z nagłówkami */
.content-card ul,
.content-card ol {
    margin-left: 0;
    padding-left: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-card li {
    margin-bottom: 6px;
}

/* Info boxes - różne typy */
.intro {
    background: var(--surface);
    border-left: 4px solid var(--accent-color);
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid var(--help-border-color);
    border-left: 4px solid var(--accent-color);
}

.intro h2 {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.intro p {
    margin-bottom: 8px;
}

.intro strong {
    color: var(--accent-color);
}

.highlight-box {
    background: #fff5f5;
    border: 1px solid #ffdddd;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.warning-box {
    background: #fff9e6;
    border: 2px solid #ffcc00;
    padding: 14px;
    margin: 20px 0;
    border-radius: 6px;
}

.warning-box h3 {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.warning-box ul {
    margin-top: 8px;
    padding-left: 24px;
}

.warning-box li {
    margin-bottom: 5px;
}

.info-box {
    background: #e6f4ff;
    border: 1px solid #91d5ff;
    padding: 10px;
    margin: 14px 0;
    border-radius: 4px;
    font-size: 14px;
}

.success-box {
    background: #f0f9e8;
    border: 2px solid #7cb342;
    padding: 14px;
    margin: 20px 0;
    border-radius: 6px;
}

.success-box h3 {
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.success-box ul {
    margin-top: 8px;
    padding-left: 24px;
}

.success-box li {
    margin-bottom: 5px;
}

/* Steps Layout - dwukolumnowy układ z numeracją */
.step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}

.step.has-image {
    grid-template-columns: 400px 1fr;
}

.step-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-right {
    padding-top: 8px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content ul,
.step-content ol {
    margin: 10px 0 10px 24px;
}

.step-content li {
    margin-bottom: 6px;
}

.step-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Screenshots */
.screenshot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screenshot img {
    width: 100%;
    height: auto;
    border: 1px solid var(--help-border-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-caption {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Footer links */
.copyright a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.copyright a:hover,
.copyright a:focus,
.copyright a:active {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .step.has-image {
        grid-template-columns: 350px 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .step,
    .step.has-image {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-left {
        order: 2;
    }

    .step-right {
        order: 1;
    }

    .step-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .content-card {
        padding: 20px 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}