/* Plik: css/page-help.css */

/* --- HERO SECTION --- */
.help-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center top, rgba(99, 102, 241, 0.15), transparent 70%);
}

.help-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.help-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- UKŁAD GŁÓWNY --- */
.help-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Szersza kolumna na treść, węższa na sidebar */
    gap: 4rem;
    padding-bottom: 80px;
    align-items: start;
}

@media (max-width: 992px) {
    .help-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- ACCORDION (Rozwijane sekcje) --- */
.help-section-header {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-section-header:first-of-type {
    margin-top: 0;
}

/* Styl znacznika details (kontener) */
details.help-accordion {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.help-accordion:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

details.help-accordion[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Nagłówek pytania (Summary) */
summary.help-summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ukrywamy domyślny trójkąt */
summary.help-summary::-webkit-details-marker {
    display: none;
}

/* Własna ikona strzałki */
summary.help-summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 300;
    transition: transform 0.3s ease;
}

details.help-accordion[open] summary.help-summary::after {
    transform: rotate(45deg);
    /* Plus zmienia się w X */
    color: var(--accent-primary);
}

/* Treść odpowiedzi */
.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -0.5rem;
    /* Optyczna korekta */
    padding-top: 1.5rem;
}

/* --- FORMATOWANIE TREŚCI WEWNĄTRZ HELP --- */
.accordion-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.accordion-content ul,
.accordion-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

.accordion-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* Bloki kodu (Terminal) */
.code-block {
    background: #000;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #00ff00;
    /* Terminal green */
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Linki w treści pomocy */
.accordion-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px dashed rgba(6, 182, 212, 0.4);
}

.accordion-content a:hover {
    color: var(--accent-primary);
    border-bottom-style: solid;
}

/* UI Mockups & Image Handling */
.help-image-container {
    margin: 1.5rem 0;
    text-align: left;
}

.ui-button-mockup {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--glow-subtle);
    margin: 10px 0;
    pointer-events: none;
    /* Just a mockup */
}

.help-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tabela skrótów */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.shortcuts-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.key-combo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    white-space: nowrap;
}

/* --- SIDEBAR (Prawy panel) --- */
.help-sidebar {
    position: sticky;
    top: 100px;
}

.help-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.help-widget h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Lista Video */
.video-list {
    list-style: none;
    padding: 0;
}

.video-list li {
    margin-bottom: 12px;
}

.video-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.video-list a:hover {
    color: #fff;
}

.video-icon {
    color: var(--accent-primary);
}

/* Contact Widget */
.contact-widget {
    text-align: center;
    border: 2px dashed var(--border-color);
    background: transparent;
}

.contact-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
}