/* ============================================================================
 * offer.css — estilos da página de detalhe da oferta
 * Colocar em /css/offer.css (referenciado por offer.php)
 * ============================================================================ */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --text-muted: #64748b;
  --brand: #c13d2a;
  --brand-hover: #9c3021;
  --accent: #10b981;
  --chip-bg: #eef2ff;
  --chip-text: #3730a3;
  --chip-alt-bg: #ecfdf5;
  --chip-alt-text: #065f46;
  --danger: #dc2626;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo { font-weight: 700; font-size: 20px; color: var(--brand); flex-shrink: 0; }
a.logo { text-decoration: none; }
.header-search {
  flex: 1; display: flex; gap: 8px; max-width: 620px;
}
.header-search input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: var(--bg);
}
.header-search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions a { color: var(--text-muted); font-size: 14px; }
.offers-count { color: var(--text-muted); font-size: 13px; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--border); }
.breadcrumb a { color: var(--text-muted); }

/* ---------- LAYOUT ---------- */
.page {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px;
}
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- MAIN CARD ---------- */
.main-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.offer-title { font-size: 26px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; }

.company-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.company-logo {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, #c13d2a, #9c3021);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.company-name { font-weight: 600; color: var(--text); }
.company-name a { color: var(--text); }
.company-meta { font-size: 13px; color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--chip-bg); color: var(--chip-text);
}
.chip.new { background: var(--chip-alt-bg); color: var(--chip-alt-text); }
.chip.location::before { content: "📍"; }
.chip.date::before { content: "🕒"; }

.section { margin-top: 28px; }
.section h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin: 0 0 12px; font-weight: 600;
}
.description { font-size: 15px; color: var(--text); }
.description p { margin: 0 0 12px; }
.description ul { margin: 0 0 12px; padding-left: 20px; }
.description li { margin-bottom: 6px; }
.description strong { color: var(--text); }

.info-inline {
  display: grid; grid-template-columns: 160px 1fr; gap: 8px 20px;
  font-size: 14px;
}
.info-inline dt { color: var(--text-muted); }
.info-inline dd { margin: 0; }

/* ---------- SIDEBAR ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 92px; }
@media (max-width: 900px) { .sidebar { position: static; } }

.apply-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md);
}
.btn-primary {
  display: block; width: 100%; padding: 14px 20px;
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-align: center; text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-secondary {
  display: block; width: 100%; padding: 10px 16px; margin-top: 10px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; text-align: center; text-decoration: none;
}
.btn-secondary:hover { background: var(--bg); text-decoration: none; }

.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.info-card h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin: 0 0 14px;
}
.info-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.info-card .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.info-card .row dt { color: var(--text-muted); }
.info-card .row dd { margin: 0; text-align: right; font-weight: 500; }

.alert-card {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 18px;
}
.alert-card h3 { font-size: 14px; margin: 0 0 8px; }
.alert-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.alert-card input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font: inherit; background: #fff;
}

.share-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share-btn {
  flex: 1; min-width: 90px; padding: 8px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; font-size: 13px; color: var(--text-muted); text-align: center;
  text-decoration: none;
}
.share-btn:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.report {
  text-align: center; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border); font-size: 13px;
}
.report a { color: var(--text-muted); }

/* ---------- RELATED ---------- */
.related { max-width: 1200px; margin: 12px auto 40px; padding: 0 20px; }
.related h2 { font-size: 20px; margin: 0 0 16px; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card .title { font-weight: 600; line-height: 1.35; }
.related-card .meta { font-size: 13px; color: var(--text-muted); }
.related-card .chips { margin: 4px 0 0; }
.related-card .chip { font-size: 12px; padding: 3px 9px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 30px 20px; margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border);
    z-index: 30; box-shadow: 0 -4px 12px rgba(0,0,0,.05);
  }
  .apply-card .btn-primary { display: none; }
  main { padding-bottom: 80px; }
}