/* GW FAQ Manager Public Styles */

.gw-faq-section {
    margin: 2rem 0;
}

.gw-faq-heading {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gw-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gw-faq-item {
    border-radius: 6px;
    overflow: hidden;
}

.gw-faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.gw-faq-title {
    flex: 1;
    padding-right: 1rem;
}

.gw-faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gw-faq-icon::before,
.gw-faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.gw-faq-icon::before {
    width: 16px;
    height: 2px;
}

.gw-faq-icon::after {
    width: 2px;
    height: 16px;
}

.gw-faq-question[aria-expanded="true"] .gw-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.gw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height ease-in-out;
}

.gw-faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* 
 * Styles 
 */

/* Light Style */
.gw-faq-style-light .gw-faq-item {
    background-color: #f8f9fa;
}
.gw-faq-style-light .gw-faq-question {
    color: #212529;
}
.gw-faq-style-light .gw-faq-answer {
    color: #495057;
}
.gw-faq-style-light .gw-faq-question:hover,
.gw-faq-style-light .gw-faq-question:focus {
    background-color: #e9ecef;
}

/* Dark Style */
.gw-faq-style-dark .gw-faq-item {
    background-color: #343a40;
    color: #f8f9fa;
}
.gw-faq-style-dark .gw-faq-question {
    color: #f8f9fa;
}
.gw-faq-style-dark .gw-faq-answer {
    color: #ced4da;
}
.gw-faq-style-dark .gw-faq-question:hover,
.gw-faq-style-dark .gw-faq-question:focus {
    background-color: #23272b;
}

/* Bordered Style */
.gw-faq-style-bordered .gw-faq-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
}
.gw-faq-style-bordered .gw-faq-question {
    color: #212529;
}
.gw-faq-style-bordered .gw-faq-question[aria-expanded="true"] {
    border-bottom: 1px solid #dee2e6;
}
.gw-faq-style-bordered .gw-faq-answer {
    color: #495057;
}

/* Minimal Style */
.gw-faq-style-minimal .gw-faq-item {
    background-color: transparent;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
}
.gw-faq-style-minimal .gw-faq-item:last-child {
    border-bottom: none;
}
.gw-faq-style-minimal .gw-faq-question {
    padding-left: 0;
    padding-right: 0;
}
.gw-faq-style-minimal .gw-faq-answer-inner {
    padding-left: 0;
    padding-right: 0;
}

/* Focus States for Accessibility */
.gw-faq-question:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: -2px;
}
