/* ===================================
   FAQ Page Styles
   =================================== */

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    padding: 4rem 0;
    margin-bottom: -2rem;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.faq-hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.faq-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-box {
    position: relative;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.faq-search-input {
    width: 100%;
    border: none;
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.faq-search-input::placeholder {
    color: #adb5bd;
}

/* Category Cards */
.faq-categories {
    padding: 4rem 0 3rem;
    background: #f8f9fa;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.faq-category {
    scroll-margin-top: 100px;
}

.faq-category-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.faq-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
    color: inherit;
}

.faq-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90d9 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-category-icon.pricing { background: linear-gradient(135deg, #28a745 0%, #155724 100%); }
.faq-category-icon.technical { background: linear-gradient(135deg, #6f42c1 0%, #432874 100%); }
.faq-category-icon.data { background: linear-gradient(135deg, #fd7e14 0%, #c35a00 100%); }
.faq-category-icon.security { background: linear-gradient(135deg, #20c997 0%, #0d6e5b 100%); }
.faq-category-icon.contact { background: linear-gradient(135deg, #6c757d 0%, #343a40 100%); }

.faq-category-content {
    flex: 1;
    margin-left: 1rem;
}

.faq-category-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.faq-category-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.faq-category-arrow {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* FAQ Content */
.faq-content {
    padding: 3rem 0 4rem;
    background: #fff;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.faq-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.faq-section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.faq-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90d9 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.faq-section-icon.pricing { background: linear-gradient(135deg, #28a745 0%, #155724 100%); }
.faq-section-icon.technical { background: linear-gradient(135deg, #6f42c1 0%, #432874 100%); }
.faq-section-icon.data { background: linear-gradient(135deg, #fd7e14 0%, #c35a00 100%); }
.faq-section-icon.security { background: linear-gradient(135deg, #20c997 0%, #0d6e5b 100%); }

.faq-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #212529;
}

.faq-section-header p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #dee2e6;
}

.faq-item.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #4a90d9;
}

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

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle-icon {
    color: #6c757d;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: #4a90d9;
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: #495057;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

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

/* Bootstrap Accordion Styles (for Home/FAQ.cshtml) */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.accordion-body {
    background-color: #fafafa;
}

.accordion-body ul,
.accordion-body ol {
    margin-bottom: 0.5rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* FAQ Tables */
.faq-table {
    font-size: 0.9rem;
    margin: 1rem 0;
}

.faq-table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.faq-table code {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.faq-table code.success { background: #d4edda; color: #155724; }
.faq-table code.warning { background: #fff3cd; color: #856404; }
.faq-table code.danger { background: #f8d7da; color: #721c24; }

/* FAQ Tip Box */
.faq-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff8e6;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 1rem;
}

.faq-tip i {
    color: #ffc107;
    margin-top: 2px;
}

/* Highlight Box */
.faq-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.faq-highlight-box i {
    font-size: 1.5rem;
    color: #4a90d9;
}

.faq-highlight-box.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.faq-highlight-box.success i {
    color: #28a745;
}

.faq-highlight-box div strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.faq-highlight-box div span {
    color: #495057;
    font-size: 0.9rem;
}

/* Check List */
.faq-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.faq-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.faq-check-list li i {
    color: #28a745;
    font-size: 0.85rem;
}

/* Icon List */
.faq-icon-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.faq-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.faq-icon-list li:last-child {
    border-bottom: none;
}

.faq-icon-list li i {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90d9;
    flex-shrink: 0;
}

.faq-icon-list li div strong {
    display: block;
    margin-bottom: 0.1rem;
}

.faq-icon-list li div span {
    color: #6c757d;
    font-size: 0.9rem;
}

.faq-icon-list.compact li {
    padding: 0.5rem 0;
}

.faq-icon-list.compact li i {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

/* Feature Box */
.faq-feature-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}

.faq-feature-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-feature-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.faq-feature-box li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Steps */
.faq-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.faq-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4a90d9 0%, #1e3a5f 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.faq-step-content strong {
    display: block;
}

.faq-step-content span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Comparison Cards */
.faq-comparison-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.faq-comparison-header {
    padding: 1rem;
    background: linear-gradient(135deg, #4a90d9 0%, #1e3a5f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-comparison-header.reverse {
    background: linear-gradient(135deg, #6f42c1 0%, #432874 100%);
}

.faq-comparison-header h4 {
    margin: 0;
    font-size: 1rem;
}

.faq-comparison-body {
    padding: 1rem;
}

.faq-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.faq-example-label {
    font-weight: 600;
    color: #6c757d;
}

.faq-example code {
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.faq-usecase {
    font-size: 0.9rem;
    margin: 0;
}

/* Example Box */
.faq-example-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.faq-example-box code {
    background: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: 600;
}

/* Pricing Grid */
.faq-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.faq-pricing-item {
    text-align: center;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.faq-pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.faq-pricing-badge.free {
    background: #d4edda;
    color: #155724;
}

.faq-pricing-badge.enterprise {
    background: #e2d5f1;
    color: #432874;
}

.faq-pricing-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.faq-pricing-value span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.faq-pricing-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Language Grid */
.faq-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.faq-lang-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.faq-lang-item i {
    color: #4a90d9;
    width: 20px;
    text-align: center;
}

/* Stats Row */
.faq-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.faq-stat {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.faq-stat.highlight {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.faq-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.faq-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Security Badges */
.faq-security-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.faq-security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-security-badge i {
    color: #4a90d9;
}

/* CTA Section */
.faq-cta {
    padding: 3rem 0;
    background: #f8f9fa;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.faq-cta-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #fff;
}

.faq-cta-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-cta-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .faq-hero-title {
        font-size: 1.75rem;
    }

    .faq-pricing-grid {
        grid-template-columns: 1fr;
    }

    .faq-lang-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-stats-row {
        justify-content: center;
    }

    .faq-cta-card {
        text-align: center;
    }
}
