/**
 * Frontend Base CSS för Category Enhancements
 */

/* Extra Description */
.category-extra-description {
    margin: 2em 0;
    line-height: 1.6;
}

.category-extra-description p {
    margin-bottom: 1em;
}

.category-extra-description h2,
.category-extra-description h3,
.category-extra-description h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* FAQ Base Styles */
.category-faq {
    margin: 2em 0;
}

.faq-accordion,
.faq-list {
    margin: 0;
    padding: 0;
}

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

.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 50px 15px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

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

.faq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.faq-toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.faq-answer[aria-hidden="false"] {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 20px 20px;
    line-height: 1.6;
}

.faq-answer-content p {
    margin-bottom: 1em;
}

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

/* Simple theme overrides */
.faq-theme-simple .faq-item {
    margin-bottom: 20px;
}

.faq-theme-simple .faq-question {
    cursor: default;
    padding-right: 20px;
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-theme-simple .faq-answer {
    max-height: none;
    display: block;
}

.faq-theme-simple .faq-toggle-icon {
    display: none;
}

/* Accessibility */
.faq-question:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
    
    .faq-toggle-icon {
        display: none !important;
    }
}