/**
 * StoreFriendly SEO Accordion Styles
 */

.sf-category-seo-item {
    margin: 30px 0;
    width: 100%;
}

.sf-category-seo-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.sf-category-seo-toggle:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

.sf-category-seo-toggle:focus {
    outline: 2px solid #00479D;
    outline-offset: 2px;
}

.sf-category-seo-toggle.icon-left {
    flex-direction: row;
}

.sf-category-seo-toggle.icon-left .sf-category-seo-toggle-icon {
    order: -1;
    margin-right: 15px;
    margin-left: 0;
}

.sf-category-seo-toggle.icon-right {
    flex-direction: row;
}

.sf-category-seo-toggle.icon-right .sf-category-seo-toggle-icon {
    margin-left: 15px;
    margin-right: 0;
}

.sf-category-seo-title {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sf-primary-blue, #00479D);
    font-family: 'ITCAvantGardeStd-Bold', Arial, sans-serif;
}

.sf-category-seo-toggle-icon {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--sf-primary-blue, #00479D);
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.sf-category-seo-toggle[aria-expanded="true"] .sf-category-seo-toggle-icon {
    transform: rotate(0deg);
}

.sf-category-seo-answer {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.sf-category-seo-content {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: var(--sf-primary-blue, #333);
}

.sf-category-seo-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.sf-category-seo-content p:last-child {
    margin-bottom: 0;
}

.sf-category-seo-content h1,
.sf-category-seo-content h2,
.sf-category-seo-content h3,
.sf-category-seo-content h4,
.sf-category-seo-content h5,
.sf-category-seo-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--sf-primary-blue, #00479D);
}

.sf-category-seo-content h1 {
    font-size: 2rem;
}

.sf-category-seo-content h2 {
    font-size: 1.8rem;
}

.sf-category-seo-content h3 {
    font-size: 1.5rem;
}

.sf-category-seo-content ul,
.sf-category-seo-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.sf-category-seo-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.sf-category-seo-content a {
    color: var(--sf-primary-red, #FF0056);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sf-category-seo-content a:hover {
    color: var(--sf-primary-blue, #00479D);
    text-decoration: underline;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .sf-category-seo-toggle {
        padding: 12px 15px;
    }
    
    .sf-category-seo-title {
        font-size: 1.2rem;
    }
    
    .sf-category-seo-toggle-icon {
        font-size: 1.5rem;
        min-width: 20px;
    }
    
    .sf-category-seo-content {
        padding: 15px;
    }
    
    .sf-category-seo-toggle.icon-left .sf-category-seo-toggle-icon {
        margin-right: 10px;
    }
    
    .sf-category-seo-toggle.icon-right .sf-category-seo-toggle-icon {
        margin-left: 10px;
    }
}

/* Animation for smooth expand/collapse */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 2000px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}
