/* src/css/faq.css */

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --text-color: #34495e;
    --text-light: #7f8c8d;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* --- Nova Navbar (estilo do index.php) --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
}

.logo h1 {
    font-size: 1.5rem;
    color: #4CAF50; /* Cor do index.css */
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 1.6;
    margin-top: 4px;
}

.logo h2 {
    font-size: 1.1rem;
    color: #2E7D32; /* Cor do index.css */
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -10px;
    line-height: 1.3;
}

.logo img {
    height: 60px;
    padding-right: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #212121; /* Cor do index.css */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50; /* Cor do index.css */
    transition: width 0.3s ease;
}

.nav-link.active {
    color: #4CAF50; /* Cor do index.css */
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #4CAF50; /* Cor do index.css */
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.login-button {
    background-color: #4CAF50; /* Cor do index.css */
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.nav-link.login-button:hover {
    background-color: #388E3C; /* Cor do index.css */
    color: var(--white);
}

.nav-link.exit-button {
    background-color: rgb(230, 30, 30);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.nav-link.exit-button:hover {
    background-color: rgb(200, 30, 30);
    color: var(--white);
}

/* Remover sublinhado do botão login */
.nav-link.no-underline::after {
    display: none;
}

/* Menu Hamburguer (adicionado do index.css) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Container Principal */
.container {
    padding-top: 120px; /* Aumentado para distanciar da navbar */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: calc(100vh - 120px);
    padding-bottom: 60px; /* Adicionado para distanciar do fundo */
}

.page-header {
    text-align: center;
    margin-bottom: 50px; /* Aumentado para mais espaçamento */
}

.page-header h2 {
    color: var(--dark-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto 60px;
}

/* Seções FAQ */
.faq-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header i {
    font-size: 1.5rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Itens FAQ */
.faq-items {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background-color: #fafafa;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    min-width: 20px;
}

.faq-item.active .faq-question {
    background-color: var(--light-gray);
}

.faq-item.active .faq-question h4 {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.faq-answer p {
    margin: 0;
    padding: 0 30px 20px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Seção de Ajuda */
.help-section {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
    color: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    margin-top: 60px; /* Aumentado para mais espaçamento */
    margin-bottom: 40px; /* Adicionado para distanciar do fundo */
}

.help-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.help-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.help-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.help-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary i {
    color: #e8f5e9;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 15px;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.modal-content .btn {
    margin-top: 10px;
    width: 100%;
}

.modal-content a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Responsividade - Menu Hamburguer */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 16px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        width: 100%;
    }
    
    .nav-link.login-button,
    .nav-link.exit-button {
        margin: 10px auto;
        width: 80%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 100px !important;
    }
    
    .container {
        padding-top: 100px; /* Ajustado para mobile */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px; /* Ajustado para mobile */
    }
    
    .section-header {
        padding: 20px 25px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
    
    .help-section {
        padding: 40px 25px;
        margin-top: 40px; /* Ajustado para mobile */
        margin-bottom: 30px; /* Ajustado para mobile */
    }
    
    .help-content h3 {
        font-size: 1.5rem;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-actions .btn {
        width: 200px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-top: 90px; /* Ajustado para mobile pequeno */
        padding-bottom: 30px; /* Ajustado para mobile pequeno */
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
        padding-right: 15px;
    }
    
    .help-section {
        padding: 30px 20px;
        margin-top: 30px; /* Ajustado para mobile pequeno */
        margin-bottom: 20px; /* Ajustado para mobile pequeno */
    }
    
    .help-content h3 {
        font-size: 1.3rem;
    }
    
    .help-content p {
        font-size: 1rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.3s ease;
}

.faq-section {
    animation: fadeIn 0.5s ease;
}