/* --- Sekcja FAQ --- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Pojedynczy element --- */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent, #ff7700);
}

/* --- Pytanie --- */
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent, #ff7700);
}

/* Stan "otwarty" - dodaj klasę 'active' w JS */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Odpowiedź --- */
.faq-answer {
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr; /* Startuje od zera */
    transition: grid-template-rows 0.4s ease-out;
    padding: 0 20px;
    color: #ccc;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
}

.faq-answer > div {
    min-height: 0;
}

/* --- Edytowalność i Przyciski --- */
[contenteditable="true"] {
    border: 1px dashed rgba(255, 119, 0, 0.5);
    padding: 5px;
    border-radius: 4px;
    outline: none;
}

.btn-del {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-add, .btn-save {
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin: 5px;
}

.btn-add { background: #28a745; color: white; }
.btn-save { background: var(--accent, #ff7700); color: black; }

/* --- Responsywność --- */
@media (max-width: 600px) {
    .faq-section { padding: 10px; }
    .faq-question { padding: 15px; font-size: 0.95rem; }
}