/* ligaram.pt */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; height: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f0f3;
  color: #16161a;
  line-height: 1.55;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

#bg-texture {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header, main, footer { position: relative; z-index: 1; }

::selection { background: #ddd6fe; color: #3730a3; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */

.header { text-align: center; padding: 48px 0 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: -0.04em;
  transition: opacity 0.25s;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-text { letter-spacing: -0.04em; }
.logo-dot { color: #a5b4fc; letter-spacing: -0.04em; margin-left: -0.02em; }
.logo:hover { opacity: 0.7; color: #4f46e5; }

/* ---- Dividers ---- */

.divider { height: 1px; background: linear-gradient(90deg, transparent, #e2e4ec, transparent); margin: 56px 0; }
.divider-sm { height: 1px; background: linear-gradient(90deg, transparent, #e2e4ec, transparent); margin: 28px 0; }

/* ---- Hero ---- */

.hero { padding: 56px 0 48px; text-align: center; }

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #16161a;
  margin-bottom: 14px;
}

.hero p {
  font-size: 16px;
  color: #555b6e;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- Search ---- */

.search-box {
  max-width: 480px; margin: 0 auto 48px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 2px 4px rgba(0,0,0,0.03),
    0 8px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s cubic-bezier(.25,.1,.25,1);
}

.search-box:focus-within {
  box-shadow:
    0 0 0 2px #4f46e5,
    0 0 0 5px rgba(79,70,229,0.1),
    0 8px 20px rgba(0,0,0,0.06);
}

.search-form {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.search-input {
  flex: 1; border: none; padding: 14px 18px; font-size: 16px;
  color: #16161a; outline: none; background: transparent;
  min-width: 0; letter-spacing: 0.015em; font-weight: 500;
}

.search-input::placeholder { color: #b0b4c4; font-weight: 400; }

.search-btn {
  padding: 14px 24px; background: #4f46e5; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.25s;
  margin: 0;
}

.search-btn:hover { background: #4338ca; }

/* ---- Stats ---- */

.stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 56px; }
.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; color: #16161a; letter-spacing: -0.025em; line-height: 1; }
.stat-label { font-size: 11px; color: #7d8296; margin-top: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Features ---- */

.features {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 1px 1px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 8px 20px rgba(0,0,0,0.03);
  overflow: hidden;
  margin-bottom: 56px;
}

.feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 26px;
  transition: background 0.25s;
}

.feature:hover { background: #f8f9fc; }
.feature + .feature { border-top: 1px solid #f2f3f7; }

.feature-icon { width: 20px; height: 20px; color: #4f46e5; flex-shrink: 0; margin-top: 2px; opacity: 0.8; }
.feature h3 { font-size: 14px; font-weight: 700; color: #16161a; margin-bottom: 3px; }
.feature p { font-size: 13px; color: #6b7084; line-height: 1.55; margin: 0; }

/* ---- Recent ---- */

.recent-section { margin-bottom: 56px; }
.section-label { font-size: 11px; font-weight: 600; color: #7d8296; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }

.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.recent-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(.25,.1,.25,1); color: inherit;
}

.recent-card:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px); color: inherit;
}

.recent-number { font-size: 14px; font-weight: 600; color: #16161a; font-variant-numeric: tabular-nums; }
.recent-meta { font-size: 11px; color: #7d8296; margin-top: 2px; }

.tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.tag-safe { background: #dcfce7; color: #15803d; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-warning { background: #fef9c3; color: #a16207; }

.no-data { grid-column: 1 / -1; text-align: center; padding: 32px; color: #7d8296; font-size: 14px; }

/* ---- Footer ---- */

.footer { text-align: center; padding: 56px 24px 40px; margin-top: auto; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 16px; }
.footer-links a { font-size: 13px; color: #7d8296; transition: color 0.25s; }
.footer-links a:hover { color: #4f46e5; }
.footer-visitors {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #6b7084; font-weight: 500;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.visitor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-copy { font-size: 11px; color: #9498aa; }

/* ============================================================
   NUMERO PAGE
   ============================================================ */

.numero-header { text-align: center; padding: 56px 0 48px; }

.numero-number {
  font-size: 52px; font-weight: 800; letter-spacing: 0.04em;
  color: #16161a; font-variant-numeric: tabular-nums; margin-bottom: 18px; line-height: 1;
}

.numero-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.pill {
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 100px;
  background: #eef2ff; color: #4338ca;
  transition: background 0.25s;
}

.pill-muted { background: transparent; color: #7d8296; }

/* ---- Card ---- */

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 1px 1px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 8px 20px rgba(0,0,0,0.03);
  padding: 32px;
  margin-bottom: 14px;
}

.card-label {
  font-size: 12px; font-weight: 700; color: #555b6e;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}

.card-desc { font-size: 14px; color: #6b7084; margin-bottom: 24px; line-height: 1.6; }
.count-muted { color: #7d8296; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---- Risk Card ---- */

.risk-card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 1px 1px rgba(0,0,0,0.02),
    0 4px 8px rgba(0,0,0,0.03),
    0 8px 20px rgba(0,0,0,0.03);
  padding: 28px 32px;
  margin-bottom: 14px;
  text-align: center;
}

.risk-card-label { font-size: 11px; font-weight: 600; color: #7d8296; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }

.risk-bar { width: 100%; height: 6px; background: #eeeff4; border-radius: 100px; overflow: hidden; margin-bottom: 14px; }

.risk-fill {
  height: 100%;
  width: 50%;
  background: #d0d3de;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(.25,.1,.25,1), background 0.5s cubic-bezier(.25,.1,.25,1);
}

.risk-text { font-size: 14px; font-weight: 600; color: #555b6e; transition: color 0.5s; }

/* ---- Vote Buttons ---- */

.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.vote-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(.25,.1,.25,1),
    box-shadow 0.3s cubic-bezier(.25,.1,.25,1);
}

.vote-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.25,.1,.25,1);
}

.vote-btn:hover { transform: translateY(-2px); }
.vote-btn:active { transform: scale(0.97) translateY(0); }

.vote-safe {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  box-shadow: 0 1px 2px rgba(22,101,52,0.06);
}

.vote-safe::after { background: linear-gradient(135deg, #166534, #15803d); }

.vote-safe:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,101,52,0.2);
}

.vote-safe:hover::after { opacity: 1; }

.vote-danger {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  color: #991b1b;
  box-shadow: 0 1px 2px rgba(153,27,27,0.06);
}

.vote-danger::after { background: linear-gradient(135deg, #991b1b, #b91c1c); }

.vote-danger:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(153,27,27,0.2);
}

.vote-danger:hover::after { opacity: 1; }

.vote-btn svg {
  flex-shrink: 0; width: 24px; height: 24px;
  position: relative; z-index: 1;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.vote-btn:hover svg { opacity: 1; }

.vote-label {
  font-size: 12px; font-weight: 600; display: block; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em;
  position: relative; z-index: 1;
  opacity: 0.75;
  transition: opacity 0.25s;
}

.vote-btn:hover .vote-label { opacity: 1; }

.vote-count {
  font-size: 28px; font-weight: 800; display: block;
  line-height: 1; letter-spacing: -0.02em;
  position: relative; z-index: 1;
}

/* ---- Comment Form ---- */

.cform { margin-bottom: 0; }
.cform-row { display: flex; gap: 12px; margin-bottom: 6px; }
.cform-field { flex: 1; min-width: 0; margin-bottom: 12px; }
.cform-field label { display: block; font-size: 12px; font-weight: 600; color: #6b7084; margin-bottom: 6px; }
.cform-field-header { display: flex; justify-content: space-between; align-items: baseline; }

.field {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e8eaf0; border-radius: 10px;
  font-size: 14px; color: #16161a; background: #fff;
  transition: all 0.25s cubic-bezier(.25,.1,.25,1);
  -webkit-appearance: none; appearance: none;
}

select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a8adc0' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

textarea.field { resize: vertical; min-height: 80px; }

.field:hover { border-color: #d0d3de; }

.field:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
}

.field::placeholder { color: #9498aa; }

.char-count { font-size: 11px; color: #9498aa; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.char-count.warning { color: #ef4444; }

.btn-primary {
  padding: 12px 24px; background: #4f46e5; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.25,.1,.25,1);
}

.btn-primary:hover {
  background: #4338ca;
  box-shadow: 0 4px 16px rgba(79,70,229,0.25);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

/* ---- Comments List ---- */

.c-item {
  padding: 20px 0;
  border-bottom: 1px solid #f2f3f7;
  transition: opacity 0.2s;
}

.c-item:last-child { border-bottom: none; }

.c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.c-author { font-size: 14px; font-weight: 700; color: #16161a; }
.c-right { display: flex; align-items: center; gap: 8px; }
.c-date { font-size: 11px; color: #9498aa; }

.c-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  color: #fff; text-transform: uppercase; letter-spacing: 0.03em;
}

.c-body { font-size: 14px; color: #3d4055; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.empty { text-align: center; padding: 36px 0; color: #6b7084; font-size: 14px; }
.empty p { margin-bottom: 4px; }

/* ---- Formats ---- */

.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }

.fmt {
  padding: 10px; background: #f6f7fa; border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px; color: #3d4055; text-align: center;
  cursor: pointer; user-select: all;
  transition: all 0.2s cubic-bezier(.25,.1,.25,1);
}

.fmt:hover { background: #eef2ff; color: #4338ca; transform: translateY(-1px); }

/* ---- Related ---- */

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.rel-card {
  padding: 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.03);
  display: block; color: inherit;
  transition: all 0.25s cubic-bezier(.25,.1,.25,1);
}

.rel-card:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px); color: inherit;
}

.rel-num { font-size: 14px; font-weight: 600; color: #16161a; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.rel-info { font-size: 11px; color: #7d8296; }

/* ---- SEO ---- */

.seo {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 1px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03), 0 8px 20px rgba(0,0,0,0.03);
  padding: 32px;
  margin-bottom: 14px;
}

.seo h2 { font-size: 16px; font-weight: 700; color: #16161a; margin-bottom: 12px; }
.seo p { font-size: 14px; color: #3d4055; line-height: 1.7; margin-bottom: 8px; }
.seo p:last-child { margin-bottom: 0; }

/* ---- Toast ---- */

.toast-message {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 13px 26px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0;
  transition: all 0.35s cubic-bezier(.25,.1,.25,1);
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}

.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success, .toast-warning { background: rgba(22,22,26,0.92); color: #fff; }
.toast-error { background: rgba(220,38,38,0.92); color: #fff; }

/* ============================================================
   CONTENT PAGES
   ============================================================ */

.page {
  padding: 56px 0 64px;
}

.page-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 1px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03), 0 8px 20px rgba(0,0,0,0.03);
  padding: 36px;
}
.page h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-subtitle { font-size: 15px; color: #555b6e; margin-bottom: 0; line-height: 1.65; }
.page h2 { font-size: 16px; font-weight: 700; margin: 32px 0 10px; color: #16161a; }
.page p { font-size: 15px; color: #3d4055; line-height: 1.7; margin-bottom: 12px; }
.page p em { color: #9498aa; font-size: 13px; font-style: normal; }
.page ul { margin: 0 0 16px 20px; color: #3d4055; font-size: 15px; line-height: 1.85; }
.page li { margin-bottom: 2px; }
.page a { font-weight: 600; color: #4f46e5; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7d2fe; transition: text-decoration-color 0.25s; }
.page a:hover { text-decoration-color: #4f46e5; }
.page hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, #e2e4ec, transparent); margin: 36px 0; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 32px; }
.step { text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 13px; color: #6b7084; margin-bottom: 0; line-height: 1.5; }

.contact-form .cform-field { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 12px; font-weight: 600; color: #6b7084; margin-bottom: 6px; }

/* ---- Animations ---- */

@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-in { animation: slideIn 0.3s cubic-bezier(.25,.1,.25,1); }

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header { padding: 32px 0 0; }

  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.03em; }
  .hero p { font-size: 15px; }

  .search-box { border-radius: 14px; padding: 5px; }
  .search-form { border-radius: 10px; }
  .search-input { padding: 12px 14px; font-size: 16px; }
  .search-btn { padding: 12px 18px; font-size: 14px; border-radius: 8px; }

  .stats { gap: 32px; margin-bottom: 40px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }

  .features { border-radius: 14px; }
  .feature { padding: 18px 20px; }

  .recent-grid { grid-template-columns: 1fr; }

  .divider { margin: 40px 0; }

  .numero-number { font-size: 34px; letter-spacing: 0.03em; }
  .numero-header { padding: 36px 0 32px; }
  .numero-meta { gap: 6px; }
  .pill { font-size: 11px; padding: 4px 12px; }

  .card { padding: 22px; border-radius: 14px; }
  .risk-card { padding: 22px; border-radius: 14px; }

  .vote-row { gap: 8px; }
  .vote-btn { padding: 20px 16px; gap: 5px; border-radius: 12px; }
  .vote-count { font-size: 22px; }
  .vote-label { font-size: 11px; }

  .field { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  textarea.field { min-height: 80px; }
  .cform-row { flex-direction: column; gap: 0; }
  .cform-field label { font-size: 13px; }

  .btn-primary { padding: 12px 24px; font-size: 15px; width: 100%; text-align: center; display: block; border-radius: 10px; }

  .formats { grid-template-columns: repeat(2, 1fr); }
  .fmt { font-size: 12px; padding: 10px 8px; }

  .related { grid-template-columns: 1fr 1fr; gap: 6px; }

  .c-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .c-right { order: -1; }
  .c-author { font-size: 14px; }
  .c-body { font-size: 14px; }

  .seo h2 { font-size: 14px; }
  .seo p { font-size: 13px; }

  .footer { padding: 40px 20px 32px; }
  .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .footer-links a { font-size: 13px; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .page { padding: 40px 0 48px; }
  .page h1 { font-size: 22px; }
  .page h2 { font-size: 15px; margin: 24px 0 8px; }
  .page p { font-size: 14px; }
  .page-card { padding: 24px; border-radius: 14px; }

  .toast-message { max-width: calc(100vw - 40px); white-space: normal; text-align: center; font-size: 13px; bottom: 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .numero-number { font-size: 28px; }
  .stat-value { font-size: 20px; }
  .stats { gap: 24px; }
  .vote-btn { padding: 16px 14px; }
  .vote-count { font-size: 20px; }
  .formats { grid-template-columns: 1fr; }
}
