/* style.css - CSS Global para Padronização */
:root {
    --bg1: #ff7aa3;
    --bg2: #a07bff;
    --card: #fff;
    --text: #0f172a;
    --muted: #6b7280;
    --shadow: 0 10px 30px rgba(2,6,23,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "Segoe UI", system-ui, Arial;
    background: linear-gradient(180deg, #fff7fb 0%, #f3e8ff 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Padrão */
.chemistry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    width: 100%;
}

.chemistry-header img {
    height: 120px;
    width: auto;
}

.chemistry-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.chemistry-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}

.chemistry-nav a:hover {
    color: var(--bg2);
}

/* Menu Hambúrguer */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Footer Padrão */
.chemistry-footer {
    text-align: center;
    padding: 24px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
    width: 100%;
}

/* User Info Padrão */
.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.user-info button {
    border: none;
    background: none;
    color: var(--bg2);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-info button:hover {
    background: #f5eaff;
}

/* Botão Próximo Quiz */
.next-quiz-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--bg1), var(--bg2));
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: var(--shadow);
    transition: transform .2s;
}

.next-quiz-btn:hover {
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 900px) {
    .chemistry-header {
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: flex;
    }
    
    .chemistry-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 1000;
        gap: 15px;
    }
    
    .chemistry-nav.active {
        display: flex;
    }
    
    .user-info {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .chemistry-header img {
        height: 80px;
    }
}

@media (max-width: 640px) {
    .chemistry-header {
        padding: 12px 15px;
    }
    
    .chemistry-footer {
        padding: 20px 15px;
    }
}