/**
 * Novato Product FAQ - Frontend Styles
 * Woodmart temasına uyumlu accordion stilleri
 */

.novato-faq-container {
    margin: 0;
    padding: 0;
}

.novato-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.novato-faq-item:last-child {
    margin-bottom: 0;
}

.novato-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
    user-select: none;
}

.novato-faq-question:hover {
    background: #e9ecef;
}

.novato-faq-item.active .novato-faq-question {
    background: #e9ecef;
    border-bottom: 1px solid #e0e0e0;
}

.novato-faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    line-height: 1.4;
}

.novato-faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}

.novato-faq-toggle::before,
.novato-faq-toggle::after {
    content: '';
    position: absolute;
    background: #666;
    transition: transform 0.3s ease;
}

.novato-faq-toggle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.novato-faq-toggle::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.novato-faq-item.active .novato-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.novato-faq-answer {
    display: none;
    padding: 20px;
    color: #555;
    line-height: 1.7;
}

.novato-faq-answer p {
    margin: 0 0 15px 0;
}

.novato-faq-answer p:last-child {
    margin-bottom: 0;
}

.novato-faq-answer ul,
.novato-faq-answer ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.novato-faq-answer li {
    margin-bottom: 8px;
}

.novato-faq-answer a {
    color: #0073aa;
    text-decoration: none;
}

.novato-faq-answer a:hover {
    text-decoration: underline;
}

/* Dark mode support (Woodmart) */
.wd-dark .novato-faq-item {
    background: #2d2d2d;
    border-color: #444;
}

.wd-dark .novato-faq-question {
    background: #333;
}

.wd-dark .novato-faq-question:hover,
.wd-dark .novato-faq-item.active .novato-faq-question {
    background: #3a3a3a;
}

.wd-dark .novato-faq-question h3 {
    color: #fff;
}

.wd-dark .novato-faq-toggle::before,
.wd-dark .novato-faq-toggle::after {
    background: #ccc;
}

.wd-dark .novato-faq-answer {
    color: #ccc;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .novato-faq-question {
        padding: 12px 15px;
    }
    
    .novato-faq-question h3 {
        font-size: 14px;
    }
    
    .novato-faq-answer {
        padding: 15px;
        font-size: 14px;
    }
}
