/* Protecfire FAQ System - Frontend Styles */

.protecfire-faq-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.pf-hero {
    background: linear-gradient(135deg, #FF6B00 0%, #E05500 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.pf-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pf-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.pf-search-container {
    max-width: 800px;
    margin: -30px auto 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.pf-search-box {
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.pf-search-box:focus-within {
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
}

.pf-search-icon {
    font-size: 1.5rem;
    color: #FF6B00;
    margin-right: 1rem;
}

.pf-search-input {
    flex: 1;
    border: none;
    font-size: 1.1rem;
    padding: 1rem 0;
    outline: none;
    color: #2c3e50;
}

.pf-search-input::placeholder {
    color: #7f8c8d;
}

/* Stats Bar */
.pf-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pf-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.pf-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pf-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pf-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 0.25rem;
}

.pf-stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Categories Grid */
.pf-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pf-category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.pf-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #FF6B00;
}

.pf-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pf-category-icon {
    font-size: 2.5rem;
}

.pf-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.pf-category-count {
    background: #f8f9fa;
    color: #FF6B00;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* FAQ Sections */
.pf-faq-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.pf-faq-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pf-faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.pf-faq-item:last-child {
    border-bottom: none;
}

.pf-faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.pf-faq-toggle {
    font-size: 1.5rem;
    color: #FF6B00;
    transition: transform 0.3s ease;
}

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

.pf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #7f8c8d;
    line-height: 1.7;
}

.pf-faq-item.active .pf-faq-answer {
    max-height: 500px;
    padding: 1rem 0.5rem;
}

.pf-faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pf-tag {
    background: #f8f9fa;
    color: #7f8c8d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Form */
.pf-contact-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.pf-contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pf-contact-section p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.pf-form-group {
    margin-bottom: 1.5rem;
}

.pf-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.pf-form-input,
.pf-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pf-form-input:focus,
.pf-form-textarea:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.pf-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.pf-submit-btn {
    background: #FF6B00;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pf-submit-btn:hover {
    background: #E05500;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pf-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.pf-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pf-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* No Results */
.pf-no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.pf-no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .pf-hero h1 {
        font-size: 2rem;
    }

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

    .pf-categories-grid {
        grid-template-columns: 1fr;
    }

    .pf-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .pf-search-box {
        padding: 0.5rem 1rem;
    }

    .pf-search-input {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}
