/* FAQ Page Specific Styles */

.faq-page {
    padding: 6rem 2rem;
    background: var(--bg-light);
    min-height: 60vh;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Search Container */
.search-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 179, 75, 0.1);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-stats {
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
}

/* Category Cloud (Tag Cloud Style) */
.category-cloud {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.category-cloud-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Category Tag Colors (matching badges) */
.category-tag[data-category="all"] {
    background: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
}

.category-tag[data-category="general"] {
    background: #e3f2fd;
    color: #1976d2;
}

.category-tag[data-category="pricing"] {
    background: #fff3e0;
    color: #f57c00;
}

.category-tag[data-category="design"] {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-tag[data-category="seo"] {
    background: #e8f5e9;
    color: #388e3c;
}

.category-tag[data-category="support"] {
    background: #fff8e1;
    color: #f9a825;
}

.category-tag[data-category="ecommerce"] {
    background: #fce4ec;
    color: #c2185b;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(0.95);
}

.category-tag.active {
    border-color: currentColor;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.tag-count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* FAQ Items Container */
.faq-items-container {
    background: var(--white);
    padding: 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
}

.faq-item:last-of-type {
    border-bottom: none;
}

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

.faq-item.active {
    background: #f8f9fa;
}

/* FAQ Question (clickable header) */
.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    flex: 1;
    margin-right: 1rem;
}

/* Category Badge on Question */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.badge-general { background: #e3f2fd; color: #1976d2; }
.badge-pricing { background: #fff3e0; color: #f57c00; }
.badge-design { background: #f3e5f5; color: #7b1fa2; }
.badge-seo { background: #e8f5e9; color: #388e3c; }
.badge-support { background: #fff8e1; color: #f9a825; }
.badge-ecommerce { background: #fce4ec; color: #c2185b; }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer (expandable content) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.answer-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.answer-content p {
    margin-bottom: 1rem;
}

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

.answer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.answer-content a:hover {
    text-decoration: underline;
}

.answer-content ul,
.answer-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.answer-content li {
    margin-bottom: 0.5rem;
}

/* Search Highlight */
.highlight {
    background-color: #fef08a;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
}

/* Coming Soon Section */
.coming-soon-container {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.coming-soon-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.coming-soon-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-cta {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(40, 179, 75, 0.3);
}

.coming-soon-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 179, 75, 0.4);
}

/* FAQ CTA Section */
.faq-cta {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-page {
        padding: 4rem 1rem;
    }

    .faq-main-title {
        font-size: 2rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .search-container {
        padding: 1.5rem;
    }

    .category-cloud {
        padding: 1rem;
    }

    .category-tags {
        gap: 0.4rem;
    }

    .category-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
    }

    .faq-cta h2 {
        font-size: 1.5rem;
    }

    .faq-cta p {
        font-size: 1rem;
    }
}
