/* ════════════════════════════════════════════════════════════
   NOVEX — Rules Page
════════════════════════════════════════════════════════════ */

/* Legend */
.rules-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.hard { background: #ef4444; }
.legend-dot.soft { background: #f59e0b; }
.legend-dot.info { background: #3b82f6; }

/* Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

/* Individual rule card */
.rule-card {
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-lg);
}

/* Left accent bar */
.rule-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.rule-card.hard::before  { background: #ef4444; }
.rule-card.soft::before  { background: #f59e0b; }
.rule-card.info::before  { background: #3b82f6; }

/* Top row: severity badge + icon */
.rule-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rule-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.rule-severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.rule-severity.hard {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.22);
  color: #ef4444;
}
.rule-severity.soft {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
  color: #d97706;
}
.rule-severity.info {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.22);
  color: #3b82f6;
}
.rule-severity-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.rule-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.2;
}
.rule-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Outro banner */
.rules-outro {
  text-align: center;
  padding: 52px 60px;
  border-radius: 24px;
  margin-bottom: 80px;
}
.rules-outro-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.rules-outro p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rules-outro { padding: 36px 24px; }
}
