/* Theme Name: Simulador Legal */

main,
.site-main,
.content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* === BASE === */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fa;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === HEADER === */
.site-header {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.side-menu,
.search-box {
  padding: 10px 0;
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu ul li {
  margin-bottom: 10px;
}

.side-menu ul li a {
  text-decoration: none;
  color: #333;
}

.search-box input[type="text"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

.hidden {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

/* === REMOVER INTERAÇÕES VISUAIS DE LINKS NO MOBILE === */
a {
  pointer-events: auto;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a:focus,
a:hover {
  outline: none;
}

.bottom-nav a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* === NAV === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #333;
  text-align: center;
  cursor: pointer;
}

.nav-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-label {
  font-size: 11px;
  margin-top: 2px;
}

.nav-item.main .nav-icon {
  font-size: 28px;
}

/* === HOME === */
.home-container {
  padding: 6rem 1rem 5rem; /* Espaço para header e bottom nav */
}

.post-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.6rem;
  margin-bottom: 1rem;
}

.post-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === SOCIAL STYLE POST === */
.post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #333;
}

.username {
  font-size: 0.8rem;
  color: #777;
}

.post-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.post-thumbnail img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
}

.simulador-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 1rem 1.4rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  transition: background 0.3s ease;
}

.simulador-button:hover {
  background: #0056b3;
  cursor: pointer;
}

/* === SIMULADOR === */
.container {
  padding: 6rem 1rem 5rem; /* Para alinhar com header e bottom nav */
}

.container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container input,
.container select {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.container button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.container button:hover {
  background-color: #005fcc;
}

/* === SINGLE POST === */
.single-container {
  padding: 6rem 1rem 5rem;
}

.single-post {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.single-content {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.post-btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.post-btn:hover {
  background-color: #005fcc;
}
/* === FOOTER === */
.app-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem 0;
  background: #f1f1f1;
  color: #666;
}

.nav-icon,  
.post-card,
.simulador-button,
.nav-item,
.site-logo,
.post-btn{
  cursor: pointer;
}

.search-results {
  padding: 1.5rem 1rem;
}

.search-results h1 {
  font-size: 20px;
  margin-bottom: 1.5rem;
  color: #333;
}

.search-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-post-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.search-post-item a {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.search-thumb img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.search-info {
  flex: 1;
}

.search-title {
  font-size: 18px;
  margin: 0 0 6px;
  color: #0077cc;
}

.search-excerpt {
  margin: 0;
  font-size: 15px;
  color: #555;
}

.search-post-item:hover .search-title {
  color: #005fa3;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px auto;
  padding-top: 20px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.pagination .current,
.pagination span.current {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
  font-weight: bold;
}

.single-ad-container {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

.ad-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ad-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.ad-meta {
  margin-top: 1.5rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}

.iml-single-ad {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.iml-ad-gallery .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.iml-ad-content {
  padding: 1rem 0;
}

.iml-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.iml-meta p {
  font-size: 1rem;
  margin: 0.2rem 0;
  color: #555;
}

.iml-description {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #333;
}

.iml-cta {
  margin-top: 2rem;
  background: #f5f7fa;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
}

.iml-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2980b9;
}

.ad-cta {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #eef;
  border-radius: 6px;
  text-align: center;
}
.ad-cta h2 {
  font-size: 1.5rem;
  color: #2980b9;
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.author-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #333;
}

.author-meta span {
  font-size: 0.8rem;
  color: #777;
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
}

.post-image img {
  width: 100%;
  border-radius: 10px;
  max-height: 200px;
  object-fit: cover;
  margin-top: 0.5rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
}

.simulador-button {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  transition: background 0.3s ease;
}

.simulador-button:hover {
  background: #0056b3;
  cursor: pointer;
}

.comunidade-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0;
}

.filtro-comunidade select {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f7f9fa;
  color: #333;
  appearance: none;
  outline: none;
  max-width: 240px;
  margin: 0 auto;
  display: inline-block;
}

.filtro-comunidade select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

.form-postagem {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 1rem auto;
}

.form-postagem textarea,
.form-postagem select,
.form-postagem input[type="file"],
.form-postagem button {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.form-postagem textarea {
  height: 120px;
  resize: vertical;
}

.form-postagem button {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.form-postagem button:hover {
  background-color: #0056b3;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.tag-button {
 padding: 6px 12px;
 background: #eee;
 border: 1px solid #ccc;
 border-radius: 20px;
 cursor: pointer;
 user-select: none;
 font-size: 0.9rem;
 
}
.tag-button.active {
 background: #0073aa;
 color: #fff;
 border-color: #0073aa;
}