/* ========================================================================== */
/* FAQ PAGE STYLES (Стиль як у правил) */
/* ========================================================================== */

/* --- Контейнер FAQ --- */
.wiki-container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px;
    gap: 30px;
    min-height: 80vh;
    box-sizing: border-box;
    
    opacity: 0;
    animation: contentFadeUp 0.8s ease-out 0.2s forwards;
}

.faq {
    background-color: #ffffffc2;
    border-radius: 15px;
    color: var(--color-text-dark);
    transform: scale(1.1);
}

.faq-img {
    filter: invert(0.2);
}



@keyframes contentFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Контент FAQ --- */
.wiki-content {
    flex: 1;
    background: linear-gradient(169deg, #1b1a1b 0%, #1b1a1b 100%);
    border: 1px solid #cccccc;
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
}

/* --- Заголовки --- */
.wiki-title {
    font-family: 'Minecraft';
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
    color: #ffffff;
}

.wiki-subtitle {
    font-family: 'Minecraft';
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ddd;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subtitle-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* --- Текст --- */
.wiki-text {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 15px;
}

/* --- Розділювач --- */
.wiki-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 30px 0;
}

.title-alert {
    background: rgba(255, 203, 31, 0.1); /* Легкий червоний фон */
    border: 1px solid rgba(255, 153, 0, 0.3); /* Червона рамка */
    border-left: 5px solid #ff7300; /* Жирна лінія зліва */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #ffd1d1;
    font-family: 'Nunito-normal', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ========================================================================== */
/* FAQ ACCORDION STYLES */
/* ========================================================================== */

/* --- Список питань --- */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

/* --- Окреме питання (контейнер) --- */
.faq-item {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 3px solid #444;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #888;
    transform: translateX(5px);
}

.faq-item.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #ffffff;
}

/* --- Кнопка питання --- */
.faq-question {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding: 25px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- ID питання (Q.1.1) --- */


.faq-item:hover .faq-id,
.faq-item.active .faq-id {
    color: #ffffff;
}

/* --- Текст питання --- */
.faq-question-text {
    flex: 1;
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.3em;
    line-height: 1.6;
    font-weight: 600;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question-text,
.faq-item.active .faq-question-text {
    color: #ffffff;
}

/* --- Стрілочка --- */
.faq-arrow {
    font-size: 0.9em;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
    font-family: 'Minecraft';
}

.faq-item:hover .faq-arrow {
    color: #ffffff;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
    color: #ffffff;
}

/* --- Відповідь (accordion) --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

/* --- Контент відповіді --- */
.faq-answer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 20px 20px 20px;
    margin-left: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

/* --- Іконка відповіді --- */
.faq-answer-icon {
    color: #55ff3e;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-top: 7px;
    font-family: 'Minecraft';
}

/* --- Текст відповіді --- */
.faq-answer-text {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.2em;
    color: #c5c5c5;
    line-height: 1.75;
}

/* --- Стилі всередині відповіді --- */
.faq-answer-text strong {
    color: #ffffff;
    font-weight: 600;
}

.faq-answer-text a {
    color: #7bc788;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(123, 199, 136, 0.5);
}

.faq-answer-text a:hover {
    color: #a4e4a4;
    border-bottom-color: #a4e4a4;
}

.faq-answer-text .highlight {
    color: #ffffff;
    font-weight: 600;
    background-color: rgba(240, 208, 128, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}

.faq-answer-text code {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #7bc788;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.92em;
}

/* ========================================================================== */
/* STEPS LIST - Кроки для новачків */
/* ========================================================================== */

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-radius: 8px;
    border-left: 3px solid #444;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 100%);
    border-left-color: #ffffff;
    transform: translateX(5px);
}

/* Номер кроку */
.step-number {
    font-family: 'Minecraft';
    font-size: 1.5em;
    font-weight: bold;
    color: #afafaf;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #949494;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    padding-left: 2px;
}

.step-item:hover .step-number {
    color: #ffffff;
    border-color: #ffffff;
}

/* Контент кроку */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Основний текст */
.step-text {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.2;
    color: #e0e0e0;
    margin: 0;
    transition: color 0.3s ease;
}

.step-item:hover .step-text {
    color: #ffffff;
}

/* Підзаголовок / опис */
.step-subtitle {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #a8a8a8;
    margin: 0;
    transition: color 0.3s ease;
}
.step-subtitle a {
    color: #acff4c;
}

.step-item:hover .step-subtitle {
    color: #aaaaaa;
}

/* ========================================================================== */
/* АДАПТИВНІСТЬ STEPS */
/* ========================================================================== */

@media (max-width: 768px) {
    .step-item {
        padding: 15px 18px;
        gap: 15px;
    }
    
    .step-number {
        font-size: 1.3em;
        min-width: 32px;
        height: 32px;
    }
    
    .step-text {
        font-size: 1.05em;
    }
    
    .step-subtitle {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .steps-list {
        gap: 10px;
    }
    
    .step-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .step-item:hover {
        transform: none;
    }
    
    .step-number {
        font-size: 1.1em;
        min-width: 28px;
        height: 28px;
    }
    
    .step-text {
        font-size: 0.98em;
    }
    
    .step-subtitle {
        font-size: 0.85em;
    }
}


/* ========================================================================== */
/* АДАПТИВНІСТЬ */
/* ========================================================================== */

@media (max-width: 1000px) {
    .wiki-container {
        padding: 140px 20px 50px 20px;
    }
    
    .wiki-content {
        padding: 30px 25px;
    }
    
    .wiki-title {
        font-size: 2em;
    }
    
    .wiki-subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .wiki-container {
        padding: 90px 15px 40px 15px;
    }
    
    .wiki-content {
        padding: 25px 20px;
    }
    
    .wiki-title {
        font-size: 1.7em;
    }
    
    .wiki-subtitle {
        font-size: 1.25em;
    }
    
    .faq-question {
        padding: 12px 15px;
        gap: 12px;
    }
    
    
    .faq-question-text {
        font-size: 0.98em;
    }
    
    .faq-answer-content {
        margin-left: 0;
        padding: 12px 15px 18px 15px;
    }
    
    .faq-answer-text {
        font-size: 0.95em;
    }
}

@media (max-width: 600px) {
    .wiki-container {
        padding: 25px 10px 30px 10px;
    }
    
    .wiki-content {
        padding: 20px 15px;
        margin-top: 60px;
    }
    
    .wiki-title {
        font-size: 1.4em;
    }
    
    .wiki-subtitle {
        font-size: 1.1em;
        gap: 8px;
    }
    
    .subtitle-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-item {
        margin-bottom: 10px;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    .faq-question {
        flex-wrap: wrap;
        padding: 12px;
        position: relative;
        padding-right: 35px;
    }
    
    .faq-id {
        font-size: 1.05em;
        min-width: auto;
    }
    
    .faq-arrow {
        position: absolute;
        right: 12px;
        top: 14px;
    }
    
    .faq-question-text {
        width: 100%;
        margin-top: 6px;
        font-size: 0.92em;
    }
    
    .faq-answer-content {
        gap: 8px;
    }
    
    .faq-answer-text {
        font-size: 0.9em;
        line-height: 1.65;
    }
}