@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
  --primary: #001E50; /* Volkswagen Navy */
  --primary-dark: #00143A;
  --secondary: #6091C3; /* Silver Lake Blue */
  --background: #ffffff; /* White */
  --text: #333333; /* Dark Gray */
  --header-bg: #ffffff;
  --menu-bg: #ffffff;
  --footer-bg: #f0f2f5; /* Light Gray */
  --link: #001E50;
  --alert-bg: #e6f0f7;
  --alert-text: #001E50;
}
[data-theme="dark"] {
  --background: #1a1a1a; /* Almost Black */
  --text: #f2f2f2; /* White */
  --primary: #6091C3; /* Lighter blue for dark mode */
  --primary-dark: #4a7bab;
  --secondary: #001E50;
  --header-bg: #2c2c2c; /* Dark Gray */
  --menu-bg: #333333;
  --footer-bg: #2c2c2c;
  --link: #6091C3;
  --alert-bg: #2c3a4a;
  --alert-text: #6091C3;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
}
header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 0.5rem 1.5rem;
  position: relative;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 1px;
}
.menu {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li a {
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.menu li a:hover {
  color: var(--primary-dark);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: 1rem;
  cursor: pointer;
  color: var(--primary);
}
.header-content {
  text-align: center;
  margin: 1.5rem 0 0.5rem 0;
}
.header-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.header-content h2 {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary-dark);
  margin: 0;
}
.toc {
  background: var(--footer-bg);
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.toc a {
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
}
main {
  max-width: 800px;
  margin: 2rem auto 2rem auto;
  padding: 0 1.2rem;
}
section {
  margin-bottom: 2.5rem;
}
h2, h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.1rem;
}
ul, ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}
p, li, h2, h3, h1 {
  word-break: normal;
  overflow-wrap: anywhere;
  margin-bottom: 1.1rem;
  margin-top: 0.2rem;
}
a {
  color: var(--link);
  word-break: break-all;
}
footer {
  background: var(--footer-bg);
  padding: 2rem 1.5rem 1rem 1.5rem;
  text-align: center;
  font-size: 0.98rem;
  border-top: 2px solid var(--primary);
}
footer h3 {
  margin-top: 0;
}
footer ul {
  padding-left: 0;
  list-style: none;
}
footer ul li {
  margin-bottom: 0.5rem;
}
.alerta {
  background: var(--alert-bg);
  color: var(--alert-text);
  padding: 0.7rem 1rem;
  border-radius: 5px;
  margin-top: 1.5rem;
  font-size: 0.97rem;
}
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--footer-bg);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  z-index: 1000;
  display: none;
  min-width: 260px;
  max-width: 90vw;
}
.cookie-popup.active {
  display: block;
}
.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.cookie-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0.3rem;
  transition: background 0.2s;
}
.cookie-content button:last-child {
  background: #aaa;
  color: #fff;
}
.cookie-content button:hover {
  filter: brightness(0.95);
}

/* Article Styles */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.toc-container {
    background: var(--footer-bg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.toc-container h2 {
    margin-top: 0;
    text-align: center;
}

.toc-list ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.destaque-box {
    background: var(--alert-bg);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.destaque-box h4 {
    margin-top: 0;
    color: var(--primary);
}

.comment-thread {
    margin-top: 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--footer-bg);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.comment-reply {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--footer-bg);
}

.author-reply {
    color: var(--primary);
}

/* Contact Form Styles */
.form-contato {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-contato label {
    font-weight: 700;
    margin-bottom: -0.5rem;
}

.form-contato input,
.form-contato textarea,
.form-contato select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
}

.form-contato input:focus,
.form-contato textarea:focus,
.form-contato select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--alert-bg);
}

.form-contato button {
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.form-contato button:hover {
    background: var(--primary-dark);
}

    .author-box {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        background: var(--footer-bg);
        padding: 1.5rem;
        border-radius: 8px;
        margin: 2rem 0;
    }
    .author-initials {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--primary);
        color: var(--background);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    .author-info h4 {
        margin: 0 0 0.5rem 0;
        color: var(--primary);
    }
    .author-info p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .rating-box {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 1rem;
        color: var(--text);
    }
    .rating-box .stars {
        font-size: 1.5rem;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

@media (min-width: 900px) {
    .toc-container {
        column-count: 2;
        column-gap: 2rem;
    }
}

@media (max-width: 900px) {
  main {
    max-width: 98vw;
  }
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    padding: 1rem 0.7rem 0.5rem 0.7rem;
  }
  .menu {
    position: absolute;
    top: 100%;
    left: 20px;
    background: var(--menu-bg);
    flex-direction: column;
    gap: 0;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: none;
    z-index: 100;
  }
  .menu.open {
    display: flex;
  }
  .menu li {
    border-bottom: 1px solid #eee;
    padding: 0.7rem 1.2rem;
  }
  .menu-toggle {
    display: block;
  }
  .toc ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
.footer-legal {
  background-color: var(--background);
  color: var(--text-secondary);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
}