/**
 * TJ FAQ Menu - Flexbox Button Container Styles
 * Version: 1.0.0
 */

/* Base container styles */
.tj-faq-menu-container {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: 100%;
}

/* Alignment variations */
.tj-faq-menu-align-left {
    justify-content: flex-start;
}

.tj-faq-menu-align-center {
    justify-content: center;
}

.tj-faq-menu-align-right {
    justify-content: flex-end;
}

/* Column variations */
.tj-faq-menu-columns-1 {
    flex-direction: column;
}

.tj-faq-menu-columns-2 {
    flex-direction: row;
}

.tj-faq-menu-columns-3 {
    flex-direction: row;
}

.tj-faq-menu-columns-4 {
    flex-direction: row;
}

.tj-faq-menu-columns-5 {
    flex-direction: row;
}

.tj-faq-menu-columns-6 {
    flex-direction: row;
}

/* Button base styles */
.tj-faq-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 120px;
    text-align: center;
}

/* Default button style */
.tj-faq-menu-style-default .tj-faq-menu-button {
    background-color: #efefef;
    color: #606162;
    border: 2px solid #ddd;
}

.tj-faq-menu-style-default .tj-faq-menu-button:hover {
    background-color: #477bff;
    border-color: #477bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(71, 123, 255, 0.4);
}

/* Outline button style */
.tj-faq-menu-style-outline .tj-faq-menu-button {
    background-color: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.tj-faq-menu-style-outline .tj-faq-menu-button:hover {
    background-color: #0073aa;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(71, 123, 255, 0.4);
}

/* Minimal button style */
.tj-faq-menu-style-minimal .tj-faq-menu-button {
    background-color: transparent;
    color: #333333;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
}

.tj-faq-menu-style-minimal .tj-faq-menu-button:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tj-faq-menu-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .tj-faq-menu-columns-2,
    .tj-faq-menu-columns-3,
    .tj-faq-menu-columns-4,
    .tj-faq-menu-columns-5,
    .tj-faq-menu-columns-6 {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tj-faq-menu-button {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
        width: 100%;
    }
}

/* Accessibility */
.tj-faq-menu-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.tj-faq-menu-button:active {
    transform: translateY(0);
}

/* Show all button style */
.tj-faq-menu-show-all {
    background-color: #efefef !important;
    color: #606162 !important;
    border: 2px solid #ddd !important;
}

.tj-faq-menu-show-all:hover {
    background-color: #477bff !important;
    border-color: #477bff !important;
    color: #ffffff !important;
}

/* Active "Show all" button state */
.tj-faq-menu-show-all.active {
    background-color: #477bff !important;
    border-color: #477bff !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(71, 123, 255, 0.4) !important;
    transform: translateY(-1px);
}

.tj-faq-menu-show-all.active:hover {
    background-color: #477bff !important;
    border-color: #477bff !important;
    box-shadow: 0 4px 12px rgba(71, 123, 255, 0.4) !important;
    transform: translateY(-2px);
}


.tj-faq-menu-filter.active {
    background-color: #477bff !important;
    color: #ffffff !important;
    border-color: #477bff !important;
}

.tj-faq-menu-style-outline .tj-faq-menu-filter.active {
    background-color: #0073aa !important;
    color: #ffffff !important;
}

.tj-faq-menu-style-minimal .tj-faq-menu-filter.active {
    color: #0073aa !important;
    border-bottom-color: #0073aa !important;
}

/* Sections container */
.tj-faq-sections {
    margin-top: 30px;
    width: 100%;
}

.tj-faq-section {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.tj-faq-section:last-child {
    margin-bottom: 0;
}

.tj-faq-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333333;
    font-size: 20px;
}

.tj-faq-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555555;
}

.tj-faq-section ul,
.tj-faq-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tj-faq-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive adjustments for sections */
@media (max-width: 768px) {
    .tj-faq-sections {
        margin-top: 20px;
    }
    
    .tj-faq-section {
        padding: 15px;
    }
    
    .tj-faq-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tj-faq-section {
        padding: 12px;
    }
    
    .tj-faq-section h3 {
        font-size: 16px;
    }
}
