/* ============================================================
   components.css — Componentes reutilizáveis compartilhados
   ============================================================ */

/* ----------------------------------------------------------
   1. CARD DE POST (.post-boxed)
   ---------------------------------------------------------- */
.post-boxed {
  height: 450px;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
}
.post-boxed:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.post-boxed > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-boxed-image {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
}
.post-boxed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-boxed-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-boxed-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-boxed-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-boxed-footer {
  margin-top: auto;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

/* ----------------------------------------------------------
   2. SELOS DE EXCLUSIVIDADE E TIPO
   ---------------------------------------------------------- */
.badge-exclusivo {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffc107;
  color: #333;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-exclusivo i { font-size: 12px; }
.badge-exclusivo.liberado {
  background-color: #28a745;
  color: #fff;
}

.badge-tipo {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.badge-tipo.jornal { background-color: #093c52; }
.badge-tipo.live   { background-color: #c62828; }

.texto-exclusivo {
  color: #d39e00;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
}
.texto-exclusivo i { margin-right: 4px; }

/* ----------------------------------------------------------
   3. CORREÇÃO OVERFLOW DO ICON-BOX
   ---------------------------------------------------------- */
.icon-box .box-top .box-header > * {
  font-size: 15px !important;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
