/* FAQ Page Styles for PetHut Bengaluru */
/* This CSS focuses on FAQ-specific content, excluding header/footer styles */

/* CSS Variables */
:root {
    --primary-brand: #2a9d8f;
    --secondary-accent: #e76f51;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-light: rgba(42, 157, 143, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-brand), #248b7e);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 100vw;
}

.hero-section::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="paw" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 5c-1.5 0-2.5 1-2.5 2.5s1 2.5 2.5 2.5 2.5-1 2.5-2.5S11.5 5 10 5z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paw)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

.hero-decoration i {
    animation: bounce 2s infinite;
}

.hero-decoration i:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-decoration i:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Search Container */
.search-container {
    margin-bottom: 3rem;
}

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

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px var(--shadow-color-light);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: none;
}

#clear-search:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-dark);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary-brand);
    background: var(--primary-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color-light);
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    transition: var(--transition);
    animation: slideInUp 0.5s ease-out;
}

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary-brand);
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--background-light);
}

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
}

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

.faq-answer strong {
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-section > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}


/* Animation Keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for search */
.searching .faq-item {
    opacity: 0.5;
    pointer-events: none;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .category-btn {
        width: 200px;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}
