/* ========================================
   GYIK (FAQ) Section - Minimál, Letisztult Dizájn
   ======================================== */

.faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* FAQ Header */
.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h3 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.faq-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item - Minimál kártya */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Question Section */
.faq-item .question {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-item .question:hover {
    background-color: #fafafa;
}

.faq-item .question.active {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

/* FAQ Icon */
.faq-icon {
    flex-shrink: 0;
    margin-right: 16px;
    font-size: 20px;
    color: #333;
}

/* Question Text */
.question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Toggle Icon - Egyszerű */
.toggle-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-item:hover .toggle-icon {
    border-color: #ccc;
}

.faq-item .question.active .toggle-icon {
    transform: rotate(45deg);
    color: #333;
    border-color: #999;
}

/* Answer Section */
.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    background-color: #fafafa;
}

.faq-item .answer.open {
    max-height: 2000px;
    padding: 20px 24px 24px 24px;
}

.faq-item .answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    font-weight: 400;
}

/* HTML Formázás támogatása a válaszokban */
.faq-item .answer strong,
.faq-item .answer b {
    font-weight: 700;
    color: #1a1a1a;
}

.faq-item .answer em,
.faq-item .answer i {
    font-style: italic;
}

.faq-item .answer u {
    text-decoration: underline;
}

.faq-item .answer ul,
.faq-item .answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-item .answer li {
    margin: 5px 0;
    line-height: 1.6;
}

.faq-item .answer h4,
.faq-item .answer h5 {
    font-weight: 600;
    color: #1a1a1a;
    margin: 15px 0 10px 0;
}

.faq-item .answer h4 {
    font-size: 17px;
}

.faq-item .answer h5 {
    font-size: 16px;
}

/* Links in answers */
.faq-item .answer a {
    color: #1a1a1a;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.faq-item .answer a:hover {
    opacity: 0.7;
}

/* Empty State */
.faq-item.empty-state {
    text-align: center;
    padding: 60px 30px;
    background-color: #fafafa;
    border: 1px dashed #d0d0d0;
}

.faq-item.empty-state i {
    font-size: 48px;
    color: #999;
    margin-bottom: 20px;
    display: block;
}

.faq-item.empty-state h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-item.empty-state p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Fade in animation - subtile */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.4s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.08s; }
.faq-item:nth-child(3) { animation-delay: 0.11s; }
.faq-item:nth-child(4) { animation-delay: 0.14s; }
.faq-item:nth-child(5) { animation-delay: 0.17s; }
.faq-item:nth-child(n+6) { animation-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-header h3 {
        font-size: 28px;
    }
    
    .faq-header p {
        font-size: 15px;
    }
    
    .faq-item .question {
        padding: 16px 20px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .faq-icon {
        font-size: 18px;
        margin-right: 14px;
    }
    
    .toggle-icon {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }
    
    .faq-item .answer.open {
        padding: 16px 20px 20px 20px;
    }
    
    .faq-item .answer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 30px 0;
    }
    
    .faq-header {
        margin-bottom: 35px;
    }
    
    .faq-header h3 {
        font-size: 24px;
    }
    
    .faq-item {
        margin-bottom: 14px;
    }
    
    .faq-item .question {
        padding: 14px 18px;
    }
    
    .faq-icon {
        margin-right: 12px;
    }
}

/* Print styles */
@media print {
    .faq-item {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .toggle-icon {
        display: none;
    }
    
    .faq-item .answer {
        max-height: none !important;
        padding: 16px 24px !important;
    }
}
