/* صفحه سوالات متداول مطبخ خونه */

body {
    padding-top: 80px;
}

/* Page Header */
.page-header {
    background: var(--gradient-bg);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.emoji-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.emoji-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.emoji-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.emoji-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* FAQ Content */
.faq-content {
    padding: 60px 0;
}

/* Search Section */
.search-section {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

#faq-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#faq-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
    pointer-events: none;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

/* FAQ Sections */
.faq-sections {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

.section-header {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.section-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 107, 107, 0.05);
}

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

.question-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.faq-item.active .question-icon {
    transform: rotate(45deg);
    background: var(--gradient-secondary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(78, 205, 196, 0.05);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    margin-top: 80px;
    display: flex !important;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Footer spacing adjustment for FAQ page */
.footer {
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .faq-categories {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

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

    .contact-card {
        padding: 30px 20px;
    }

    .floating-emoji {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    /* Chrome-specific fixes */
    @supports (-webkit-appearance: none) {
        .section-header {
            -webkit-transform: translateY(0) !important;
            -webkit-opacity: 1 !important;
            display: -webkit-flex !important;
            display: flex !important;
        }
        
        .contact-section {
            -webkit-transform: translateY(0) !important;
            -webkit-opacity: 1 !important;
            display: -webkit-flex !important;
            display: flex !important;
        }
        
        .contact-card {
            -webkit-transform: translateY(0) !important;
            -webkit-opacity: 1 !important;
        }
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
    }

    .faq-question {
        padding: 15px;
    }

    .question-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}