/* ==========================================================================
   Privê Brasil - Folha de Estilos Principal
   Identidade: Fundo claro, paleta vinho, magenta e rosa profundo.
   ========================================================================== */

:root {
  --pb-primary: #9f1239;       /* Vinho profundo / Rose 800 */
  --pb-primary-hover: #881337; /* Rose 900 */
  --pb-primary-light: #ffe4e6; /* Rose 100 */
  --pb-secondary: #e11d48;     /* Rosa vibrante / Rose 600 */
  --pb-accent: #be123c;        /* Magenta / Rose 700 */
  --pb-dark: #1e293b;          /* Slate 800 */
  --pb-gray: #64748b;          /* Slate 500 */
  --pb-light-gray: #f8fafc;    /* Slate 50 */
  --pb-border: #e2e8f0;        /* Slate 200 */
  --pb-success: #10b981;
  --pb-warning: #f59e0b;
  --pb-danger: #ef4444;
  --pb-radius: 10px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header Compacto */
.navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--pb-primary) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand .brand-badge {
  background-color: var(--pb-primary);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-primary-prive {
  background-color: var(--pb-primary);
  border-color: var(--pb-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary-prive:hover {
  background-color: var(--pb-primary-hover);
  border-color: var(--pb-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(159, 18, 57, 0.25);
}

.btn-outline-prive {
  border-color: var(--pb-primary);
  color: var(--pb-primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
}

.btn-outline-prive:hover {
  background-color: var(--pb-primary);
  color: #fff;
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
  color: #fff;
  padding: 2.75rem 0 3.25rem 0;
  margin-bottom: 2rem;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.15);
}

.hero-banner h1 {
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.5px;
}

.hero-banner p {
  color: #fecdd3;
  font-size: 1.05rem;
  max-width: 650px;
}

/* Search Box na Hero */
.search-card-hero {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  margin-top: 1.5rem;
}

/* Category Grid (Inspirado no modelo de referência de classificados) */
.category-card {
  background: #ffffff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #f43f5e;
}

.category-header {
  background: linear-gradient(135deg, #9f1239 0%, #be123c 100%);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.category-body {
  padding: 1rem;
  flex: 1;
}

.category-city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  color: var(--pb-dark);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.category-city-link:hover {
  background-color: var(--pb-primary-light);
  color: var(--pb-primary);
  font-weight: 600;
}

/* Ad Card */
.ad-card {
  background: #ffffff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #f43f5e;
}

.ad-card.featured-card {
  border: 2px solid var(--pb-secondary);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.18);
}

.ad-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 125%; /* Proporção 4:5 vertical elegante */
  background-color: #f1f5f9;
  overflow: hidden;
}

.ad-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-card:hover .ad-thumb-img {
  transform: scale(1.04);
}

.ad-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-featured {
  background-color: var(--pb-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-verified {
  background-color: #0284c7;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-photos {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 4px;
}

.ad-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ad-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  color: var(--pb-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-title:hover {
  color: var(--pb-primary);
}

.ad-location {
  font-size: 0.82rem;
  color: var(--pb-gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-snippet {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ad-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Modal Aviso +18 */
.age-gate-modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.age-gate-header {
  background: linear-gradient(135deg, #881337 0%, #be123c 100%);
  color: #fff;
  padding: 1.75rem;
  text-align: center;
}

.age-gate-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Rodapé */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  margin-top: 3.5rem;
}

footer h5 {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: #f43f5e;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}
