/* === ESTILOS PARA POSTB.PHP === */

/* Variáveis de cores - Mesmas do layout principal */
:root {
  --c-primary-900: #03588C;
  --c-primary-700: #0388A6;
  --c-accent: #f39333;
  --c-neutral-700: #8C7D7E;
  
  --body-900: #0f1418;
  --body-800: #1a1f24;
  --body-700: #252a30;
  
  --text-100: #f0f0f0;
  --text-200: #d8d8d8;
  --text-300: #c0c0c0;
  --text-400: #a8a8a8;
  --text-500: #909090;
  --text-600: #787878;
  
  --secondary-200: #d8d8d8;
  --secondary-300: #c0c0c0;
  --secondary-400: #a8a8a8;
  --secondary-500: #909090;
  --secondary-600: #787878;
  --secondary-700: #5a5a5a;
  --secondary-800: #404040;
}

/* Reset e base */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--body-900);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* Navegação */
.navbar {
  background-color: var(--c-primary-900) !important;
}

.navbar-brand img {
  height: 28px;
}

.nav-link {
  color: #ffffff !important;
}

.btn-accent {
  background-color: var(--c-accent) !important;
  color: #1b1b1b !important;
  border: none;
}

.btn-accent:hover {
  background-color: #ffa24f !important;
}

.btn-outline-accent {
  border-color: var(--c-accent) !important;
  color: var(--c-accent) !important;
}

.btn-outline-accent:hover {
  background-color: var(--c-accent) !important;
  color: #1b1b1b !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--c-primary-900) 0%, var(--c-primary-700) 100%);
  padding: 7rem 0 4rem;
}

.link-secondary {
  color: var(--text-300) !important;
}

.text-secondary-200 {
  color: var(--text-200) !important;
}

.text-secondary-300 {
  color: var(--text-300) !important;
}

.text-secondary-400 {
  color: var(--text-400) !important;
}

.text-secondary-500 {
  color: var(--text-500) !important;
}

.post-meta {
  color: var(--text-300);
  font-size: 0.875rem;
}

/* Main Content */
main {
  background-color: var(--body-900);
  padding: 3rem 0;
}

.post-cover {
  border-radius: 0.75rem;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 2rem;
}

/* CONTEÚDO DO ARTIGO - COR BRANCA */
.post-content {
  color: #ffffff !important;
  background-color: transparent !important;
}

.post-content * {
  color: #ffffff !important;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #ffffff !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #ffffff !important;
  margin: 1.5rem 0;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.1rem; }
.post-content h6 { font-size: 1rem; }

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: #ffffff !important;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

.post-content strong,
.post-content b {
  font-weight: bold;
  color: #ffffff !important;
}

.post-content em,
.post-content i {
  font-style: italic;
  color: #ffffff !important;
}

.post-content a {
  color: #ffffff !important;
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--c-accent) !important;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.post-content hr {
  border-top: 1px solid var(--secondary-800);
  margin: 1.5rem 0;
  color: #ffffff !important;
}

/* Tabelas */
.post-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  color: #ffffff !important;
}

.post-content table thead {
  background-color: var(--body-800) !important;
}

.post-content table th,
.post-content table td {
  border: 1px solid var(--secondary-800);
  padding: 0.75rem;
  color: #ffffff !important;
}

.post-content table th {
  font-weight: bold;
}

.post-content table.striped tbody tr:nth-child(even) {
  background-color: var(--body-700);
}

/* Tags */
.tag-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--secondary-800);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.tag-chip:hover {
  border-color: var(--c-accent);
}

/* FAQ Accordion */
.accordion-item {
  background-color: var(--body-800) !important;
  border-color: var(--secondary-800) !important;
}

#faqPost .accordion-button {
  background-color: var(--body-800) !important;
  color: #ffffff !important;
}

#faqPost .accordion-button:not(.collapsed) {
  background-color: var(--body-800) !important;
  color: #ffffff !important;
}

#faqPost .accordion-button:focus {
  box-shadow: none !important;
  border-color: var(--secondary-800) !important;
}

#faqPost .accordion-body {
  background-color: var(--body-800) !important;
  color: #ffffff !important;
}

#faqPost .accordion-body p {
  color: #ffffff !important;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--secondary-800);
}

/* Footer */
.footer {
  background-color: var(--body-900);
  border-top: 1px solid var(--secondary-800);
  padding-top: 3rem;
}

.link-secondary {
  color: var(--text-400) !important;
  text-decoration: none;
}

.link-secondary:hover {
  color: var(--c-accent) !important;
}

.footer-social {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Cards */
.card {
  background-color: var(--body-800);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bg-body-800 {
  background-color: var(--body-800) !important;
}

.bg-body-900 {
  background-color: var(--body-900) !important;
}

/* Borda */
.border-secondary-800 {
  border-color: var(--secondary-800) !important;
}

/* Text utilities */
.display-6 {
  font-size: 2rem;
  font-weight: 800;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Margins e paddings customizados */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-1 { margin-right: 0.25rem; }

/* Padding customizado */
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-5 { padding-top: 3rem; }
.pt-7 { padding-top: 4.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Gap */
.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.list-unstyled { list-style: none; padding: 0; }

/* Positions */
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Hero wood detail */
.hero-wood-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: repeating-linear-gradient(
    45deg,
    var(--body-900),
    var(--body-900) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.1;
}

