/* AI Growth SEO Shortcodes Styles */

/* Common Styles */
.ai-growth-seo-shortcode-error,
.ai-growth-seo-shortcode-no-items {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.ai-growth-seo-shortcode-error {
    background-color: #ffeaea;
    border: 1px solid #e74c3c;
    color: #721c24;
}

.ai-growth-seo-shortcode-no-items {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* FAQ Container Styles */
.ai-growth-seo-faq-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* FAQ Search */
.ai-growth-seo-faq-search {
    margin-bottom: 20px;
}

.faq-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* FAQ List Style */
.ai-growth-seo-faq-list .ai-growth-seo-faq-list-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ai-growth-seo-faq-list .ai-growth-seo-faq-list-item:last-child {
    border-bottom: none;
}

.ai-growth-seo-faq-list .faq-question {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ai-growth-seo-faq-list .faq-answer {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* FAQ Accordion Style */
.ai-growth-seo-faq-accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ai-growth-seo-faq-accordion-item {
    border-bottom: 1px solid #ddd;
}

.ai-growth-seo-faq-accordion-item:last-child {
    border-bottom: none;
}

.ai-growth-seo-faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-growth-seo-faq-question:hover {
    background: #e9ecef;
}

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

.faq-question-text {
    flex: 1;
    margin-right: 10px;
}

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

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #0073aa;
    transition: transform 0.3s ease;
}

.faq-toggle-icon::before {
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.ai-growth-seo-faq-accordion-item.expanded .faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.ai-growth-seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ai-growth-seo-faq-accordion-item.expanded .ai-growth-seo-faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* FAQ Tabs Style */
.ai-growth-seo-faq-tabs {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.ai-growth-seo-faq-tab-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.faq-tab-item {
    flex-shrink: 0;
}

.faq-tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.faq-tab-button:hover {
    color: #0073aa;
    background: rgba(0, 115, 170, 0.05);
}

.faq-tab-item.active .faq-tab-button {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: rgba(0, 115, 170, 0.1);
}

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

.ai-growth-seo-faq-tab-panels {
    position: relative;
}

.faq-tab-panel {
    display: none;
    padding: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.faq-tab-panel.active {
    display: block;
}

/* FAQ Toggle Style */
.ai-growth-seo-faq-toggle .ai-growth-seo-faq-toggle-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question-heading {
    margin: 0;
}

.ai-growth-seo-faq-toggle-button {
    width: 100%;
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-growth-seo-faq-toggle-button:hover {
    background: #e9ecef;
}

.ai-growth-seo-faq-toggle-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.ai-growth-seo-faq-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ai-growth-seo-faq-toggle-item.expanded .ai-growth-seo-faq-toggle-content {
    max-height: 1000px;
}

.faq-content-inner {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* CTA Styles */
.ai-growth-seo-cta {
    margin: 25px 0;
    text-align: center;
}

.ai-growth-seo-cta-description {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.ai-growth-seo-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.ai-growth-seo-cta-button:focus {
    outline: 3px solid rgba(0, 115, 170, 0.3);
    outline-offset: 2px;
}

/* CTA Button Styles */
.ai-growth-seo-cta-button-primary {
    background-color: #0073aa;
    color: white;
}

.ai-growth-seo-cta-button-primary:hover {
    background-color: #005a87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ai-growth-seo-cta-button-secondary {
    background-color: #6c757d;
    color: white;
}

.ai-growth-seo-cta-button-secondary:hover {
    background-color: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.ai-growth-seo-cta-button-outline {
    background-color: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.ai-growth-seo-cta-button-outline:hover {
    background-color: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.ai-growth-seo-cta-button-ghost {
    background-color: transparent;
    color: #0073aa;
}

.ai-growth-seo-cta-button-ghost:hover {
    background-color: rgba(0, 115, 170, 0.1);
    color: #005a87;
    transform: translateY(-2px);
}

.ai-growth-seo-cta-button-link {
    background-color: transparent;
    color: #0073aa;
    text-decoration: underline;
    padding: 8px 16px;
}

.ai-growth-seo-cta-button-link:hover {
    color: #005a87;
    text-decoration: none;
}

.ai-growth-seo-cta-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA Position Styles */
.ai-growth-seo-cta-position-top {
    border-top: 4px solid #0073aa;
    padding-top: 20px;
    margin-top: 30px;
}

.ai-growth-seo-cta-position-bottom {
    border-bottom: 4px solid #0073aa;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.ai-growth-seo-cta-position-inline {
    display: inline-block;
    margin: 0 15px;
    text-align: left;
}

.ai-growth-seo-cta-position-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-left: 5px solid #0073aa;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.ai-growth-seo-cta-position-floating {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin: 30px auto;
    max-width: 400px;
}

/* FAQ Search Functionality */
.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-list-item,
.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-accordion-item,
.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-toggle-item {
    display: none;
}

.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-list-item.search-match,
.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-accordion-item.search-match,
.ai-growth-seo-faq-container[data-search-active] .ai-growth-seo-faq-toggle-item.search-match {
    display: block;
}

.ai-growth-seo-faq-container .search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-growth-seo-faq-tab-nav {
        flex-direction: column;
    }
    
    .faq-tab-button {
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }
    
    .faq-tab-item.active .faq-tab-button {
        border-bottom-color: #ddd;
        border-left: 4px solid #0073aa;
    }
    
    .ai-growth-seo-cta-button {
        display: block;
        text-align: center;
        margin: 15px auto;
        max-width: 280px;
    }
    
    .ai-growth-seo-cta-position-inline {
        display: block;
        margin: 20px 0;
        text-align: center;
    }
    
    .faq-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .ai-growth-seo-faq-question,
    .ai-growth-seo-faq-toggle-button {
        padding: 15px;
        font-size: 15px;
    }
    
    .faq-answer-content,
    .faq-content-inner,
    .faq-panel-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .ai-growth-seo-cta-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ai-growth-seo-faq-container {
        color: #e9ecef;
    }
    
    .ai-growth-seo-faq-question,
    .ai-growth-seo-faq-toggle-button {
        background: #343a40;
        color: #e9ecef;
    }
    
    .ai-growth-seo-faq-question:hover,
    .ai-growth-seo-faq-toggle-button:hover {
        background: #495057;
    }
    
    .faq-answer-content,
    .faq-content-inner,
    .faq-panel-content {
        background: #212529;
        color: #ced4da;
    }
    
    .ai-growth-seo-faq-accordion,
    .ai-growth-seo-faq-tabs,
    .ai-growth-seo-faq-toggle-item {
        border-color: #495057;
    }
} 