/* ==========================================================================
   FAQ Page Styles - Petições Online
   ========================================================================== */

:root {
    --faqs-primary-green: #2d5f2e;
    --faqs-secondary-green: #4a8f4d;
    --faqs-light-green: #e8f5e9;
    --faqs-accent-green: #66bb6a;
    --faqs-dark-gray: #333;
    --faqs-medium-gray: #666;
    --faqs-light-gray: #f8f9fa;
    --faqs-border-color: #e0e0e0;
}

/* Hero Section */
.faqs-hero {
    background: linear-gradient(135deg, var(--faqs-primary-green) 0%, #1e4620 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faqs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faqs-hero-title i {
    font-size: 2.25rem;
}

.faqs-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 0;
}

/* Page Stats (views & likes) */
.faqs-page-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.faqs-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.faqs-stat-item i {
    font-size: 1.125rem;
}

.faqs-stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
}

.faqs-page-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.faqs-page-like-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

.faqs-page-like-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.faqs-page-like-btn .faqs-stat-label {
    font-size: 0.875rem;
}

/* Search Box */
.faqs-search-container {
    max-width: 800px;
    margin: -30px auto 40px;
    padding: 0;
}

.faqs-search-box {
    background: white;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faqs-search-icon {
    color: var(--faqs-medium-gray);
    font-size: 1.125rem;
}

.faqs-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.0625rem;
    padding: 12px 0;
    color: var(--faqs-dark-gray);
    background: transparent;
}

.faqs-search-box input::placeholder {
    color: var(--faqs-medium-gray);
}

.faqs-search-btn {
    background: var(--faqs-secondary-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faqs-search-btn:hover {
    background: var(--faqs-primary-green);
    transform: scale(1.05);
}

/* Intro Text */
.faqs-intro-text {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    text-align: center;
}

.faqs-intro-text p {
    font-size: 1.125rem;
    color: var(--faqs-medium-gray);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Categories */
.faqs-categories-section {
    margin-bottom: 50px;
}

.faqs-categories-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--faqs-primary-green);
    margin-bottom: 25px;
    text-align: center;
}

.faqs-categories-title i {
    margin-right: 10px;
}

.faqs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faqs-category-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid var(--faqs-secondary-green);
}

.faqs-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.faqs-category-card.active {
    border-left-color: var(--faqs-primary-green);
    background: var(--faqs-light-green);
}

.faqs-category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--faqs-secondary-green);
}

.faqs-category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--faqs-primary-green);
    margin-bottom: 8px;
}

.faqs-category-count {
    font-size: 0.875rem;
    color: var(--faqs-medium-gray);
}

/* FAQ Accordion Section */
.faqs-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px;
}

.faqs-section-header {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--faqs-primary-green);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--faqs-light-green);
}

.faqs-section-header i {
    margin-right: 10px;
}

/* FAQ Items */
.faqs-item {
    border-bottom: 1px solid var(--faqs-border-color);
    margin-bottom: 0;
}

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

.faqs-question {
    padding: 25px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    background: transparent;
}

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

.faqs-question-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--faqs-dark-gray);
    flex: 1;
}

.faqs-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--faqs-light-green);
    color: var(--faqs-secondary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.faqs-item.active .faqs-icon {
    background: var(--faqs-secondary-green);
    color: white;
    transform: rotate(45deg);
}

.faqs-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faqs-answer-content {
    padding: 0 20px 25px 20px;
    font-size: 1.0625rem;
    color: var(--faqs-dark-gray);
    line-height: 1.8;
}

.faqs-answer-content p {
    margin-bottom: 15px;
}

.faqs-answer-content ol,
.faqs-answer-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.faqs-answer-content li {
    margin-bottom: 10px;
}

.faqs-answer-content strong {
    color: var(--faqs-primary-green);
    font-weight: 700;
}

/* Highlight Box */
.faqs-highlight-box {
    background: var(--faqs-light-green);
    border-left: 4px solid var(--faqs-secondary-green);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.faqs-highlight-box p {
    margin-bottom: 0;
}

/* Contact CTA */
.faqs-contact-cta {
    background: linear-gradient(135deg, var(--faqs-primary-green) 0%, #1e4620 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.faqs-contact-cta h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.faqs-contact-cta h3 i {
    margin-right: 10px;
}

.faqs-contact-cta p {
    font-size: 1.125rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.faqs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--faqs-primary-green);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.faqs-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
    color: var(--faqs-primary-green);
    text-decoration: none;
}

/* Action Buttons */
.faqs-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--faqs-border-color);
}

.faqs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.faqs-btn i {
    margin-right: 5px;
}

.faqs-btn-primary {
    background: var(--faqs-secondary-green);
    color: white;
}

.faqs-btn-primary:hover {
    background: var(--faqs-primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 46, 0.3);
    color: white;
    text-decoration: none;
}

.faqs-btn-secondary {
    background: white;
    color: var(--faqs-secondary-green);
    border: 2px solid var(--faqs-secondary-green);
}

.faqs-btn-secondary:hover {
    background: var(--faqs-light-green);
    border-color: var(--faqs-primary-green);
    color: var(--faqs-primary-green);
    text-decoration: none;
}

.faqs-btn-outline {
    background: transparent;
    color: var(--faqs-medium-gray);
    border: 2px solid var(--faqs-border-color);
}

.faqs-btn-outline:hover {
    background: var(--faqs-light-gray);
    border-color: var(--faqs-medium-gray);
    color: var(--faqs-dark-gray);
}

/* Search Highlight */
.faqs-search-highlight {
    background: #fff176;
    padding: 2px 4px;
    border-radius: 3px;
}

/* No Results */
.faqs-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--faqs-medium-gray);
}

.faqs-no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ccc;
}

.faqs-no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faqs-no-results-text {
    font-size: 1.0625rem;
}

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

    .faqs-section {
        padding: 25px 20px;
    }

    .faqs-section-header {
        font-size: 1.5rem;
    }

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

    .faqs-action-buttons {
        flex-direction: column;
    }

    .faqs-btn {
        width: 100%;
        justify-content: center;
    }

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

    .faqs-search-box {
        padding: 6px 6px 6px 15px;
    }

    .faqs-search-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .faqs-contact-cta {
        padding: 30px 20px;
    }

    .faqs-contact-cta h3 {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .faqs-hero {
        padding: 30px 15px;
    }

    .faqs-hero-title {
        font-size: 1.5rem;
    }

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

    .faqs-question {
        padding: 18px 15px;
    }
}

/* Toast Notifications */
.post-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
}

.post-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.post-notification.toast-success {
    background: #28a745;
}

.post-notification.toast-error {
    background: #dc3545;
}

.post-notification.toast-warning {
    background: #ffc107;
    color: #333;
}

.post-notification.toast-info {
    background: #17a2b8;
}

/* Email Share Feedback */
.email-share-feedback {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

.email-share-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-share-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Print Styles */
@media print {
    .faqs-hero {
        background: #2d5f2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .faqs-search-container,
    .faqs-categories-section,
    .faqs-contact-cta,
    .faqs-action-buttons {
        display: none !important;
    }

    .faqs-answer {
        max-height: none !important;
        overflow: visible !important;
    }

    .faqs-item {
        break-inside: avoid;
    }
}
