/* style.css - Fórum Dicas de Jogos (estático) */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background-color: #f5f7fb;
    color: #1e1e2f;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

a {
    text-decoration: none;
    color: #3b4e7a;
    transition: color 0.2s ease;
}

a:hover {
    color: #1f2b44;
}

/* ===== HEADER ===== */
header {
    background-color: #1e2b41;
    color: white;
    padding: 1rem 0;
    border-bottom: 4px solid #5d7bb3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    font-size: 1.7rem;
    font-weight: 600;
    color: white;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: #cbd5e8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e0e7f5;
    font-weight: 500;
    font-size: 1.1rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    border-bottom-color: #f5c542;
}

/* ===== MAIN LAYOUT (página inicial) ===== */
main {
    flex: 1;
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
}

.lista-duvidas {
    flex: 2.5;
}

.sidebar {
    flex: 1.2;
}

/* ===== CARDS DE DÚVIDA (lista) ===== */
.lista-duvidas h2 {
    font-size: 1.8rem;
    color: #1e2b41;
    margin-bottom: 1.8rem;
    border-left: 6px solid #5d7bb3;
    padding-left: 1rem;
}

.card-duvida {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 14px rgba(0, 20, 40, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e7ecf5;
}

.card-duvida:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(24, 39, 65, 0.1);
}

.duvida-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.duvida-titulo {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1e2b41;
}

.duvida-titulo:hover {
    color: #3f5e9c;
    text-decoration: underline;
}

.jogo-tag {
    background-color: #e3eaf3;
    color: #1e3b5c;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    border-left: 3px solid #5d7bb3;
    white-space: nowrap;
}

.duvida-resumo {
    color: #334155;
    margin: 0.8rem 0 1.2rem 0;
    font-size: 1.05rem;
}

.duvida-meta {
    display: flex;
    gap: 1.8rem;
    font-size: 0.9rem;
    color: #5b687c;
    border-top: 1px dashed #cbd5e1;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.duvida-meta strong {
    color: #1f2a44;
}

/* ===== SIDEBAR ===== */
.card-sidebar {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #dde3ed;
    box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}

.card-sidebar h3 {
    font-size: 1.4rem;
    color: #1e2b41;
    margin-bottom: 1rem;
    border-bottom: 2px solid #b3c7e5;
    padding-bottom: 0.4rem;
}

.card-sidebar ul {
    list-style: none;
}

.card-sidebar li {
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tag-cloud li {
    background: #eef2f8;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid #bacfeb;
    margin-bottom: 0;
}

/* ===== PÁGINA NOVA DÚVIDA ===== */
.main-nova-duvida {
    display: block; 
    max-width: 800px;
    margin: 2rem auto;
}

.form-section h2 {
    font-size: 2rem;
    color: #1f2b40;
    margin-bottom: 0.3rem;
}

.subtitulo-form {
    color: #4a5a74;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.form-duvida {
    background: white;
    border-radius: 28px;
    padding: 2.2rem;
    box-shadow: 0 12px 30px rgba(0,20,50,0.08);
    border: 1px solid #d5e0f0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e2b41;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="text"]:focus,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #dde3ed;
    border-radius: 20px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    background-color: #fbfdff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5f7eb3;
    box-shadow: 0 0 0 3px rgba(83, 121, 186, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.8rem 0;
}

.checkbox-group input {
    width: 1.3rem;
    height: 1.3rem;
    accent-color: #1f3b62;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 1.5rem;
}

.btn-submit, .btn-reset {
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.btn-submit {
    background-color: #1e3b5c;
    color: white;
    box-shadow: 0 5px 12px rgba(23, 55, 90, 0.3);
}

.btn-submit:hover {
    background-color: #2b4e77;
    transform: scale(1.02);
}

.btn-reset {
    background-color: #e9eef5;
    color: #1e2b41;
    border-color: #c0cee2;
}

.btn-reset:hover {
    background-color: #d7e0ec;
}

.feedback {
    padding: 1rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
}

.feedback.sucesso {
    background: #e2f0da;
    color: #1d5820;
    border: 1px solid #98c0a0;
}

.feedback.erro {
    background: #ffe6e6;
    color: #a13030;
    border: 1px solid #fbbaba;
}

.dica-exemplo {
    background: #ebf2fa;
    border-radius: 28px;
    padding: 1.8rem;
    margin-top: 2.5rem;
    border-left: 8px solid #2f5283;
}

.dica-exemplo h4 {
    font-size: 1.3rem;
    color: #14273e;
    margin-bottom: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a2637;
    color: #b0c2da;
    padding: 1.8rem 0;
    text-align: center;
    margin-top: 2.5rem;
    border-top: 3px solid #435e82;
}

.footer-content p {
    margin: 0.3rem 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 800px) {
    main {
        flex-direction: column;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        justify-content: center;
        gap: 1.2rem;
    }
    .duvida-meta {
        gap: 1rem;
    }
}

/* ===== HEADER MELHORADO ===== */
.user-greeting span {
    background-color: #e3eaf3;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: #1e3b5c;
    font-weight: 500;
}

.logout-btn {
    color: #dc3545 !important;
}

.logout-btn:hover {
    color: #a71d2a !important;
    border-bottom-color: #dc3545 !important;
}

.nav-links li a, .nav-links li span {
    transition: all 0.2s ease;
}

.nav-links a::before {
    content: none !important;
}