@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: 0 0% 98%;
    --foreground: 224 71% 4%;
    --card: 0 0% 100%;
    --primary: 160 84% 39%;
    --muted-foreground: 220 9% 46%;
    --border: 220 13% 91%;
    --radius: 0.5rem;
}

html.dark {
    --background: 224 71% 4%;
    --foreground: 210 20% 98%;
    --card: 222 47% 8%;
    --primary: 160 84% 39%;
    --muted-foreground: 215 20% 65%;
    --border: 215 20% 18%;
}

* {
    box-sizing: border-box;
}

html {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: background-color 0.2s, color 0.2s;
}

body {
    background-color: transparent;
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
    text-align: justify;
}

.container {
    max-width: 768px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    letter-spacing: -0.05em;
}

.controls {
    display: flex;
    gap: 8px;
}

.controls button, .controls a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    padding: 8px 14px;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.controls button:hover, .controls a:hover {
    background-color: rgba(160, 84%, 39%, 0.08);
    border-color: hsl(var(--primary));
}

.nav-link {
    font-family: 'JetBrains Mono', monospace !important;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.timestamp {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    margin-bottom: 30px;
}

hr {
    border: 0;
    border-top: 1px solid hsl(var(--border));
    margin: 30px 0;
}

h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    color: hsl(var(--foreground));
    opacity: 0.9;
    font-size: 0.975rem;
    margin-bottom: 16px;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background-color: hsl(var(--border));
    color: hsl(var(--foreground));
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

strong {
    font-weight: 600;
}

.section-divider {
    border: 0;
    border-top: 1px dashed hsl(var(--border));
    margin: 40px 0;
}

.lang-block.pt {
    display: none;
}

html.lang-pt .lang-block.en {
    display: none;
}

html.lang-pt .lang-block.pt {
    display: block;
}

#lang-toggle, #theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    height: 38px; /* Força uma altura idêntica para ambos os botões */
    width: 38px;  /* Deixa os botões perfeitamente quadrados e simétricos */
}

.lang-icon, .theme-toggler {
    transition: transform 0.2s ease;
}

#theme-toggle:hover .theme-toggler {
    transform: rotate(15deg);
}

#lang-toggle:hover .lang-icon {
    transform: scale(1.08);
}