@use "../../../styles/abstracts/variables" as *;
@use "../../../styles/abstracts/mixins" as *;

$text-muted: #6b6b6b;
$primary: #5e3817;
$primary-2: #7a4b20;
$text-dark: #1a1a1a;

/* ================= PAGE ================= */
.page {
  @include dashPageComponent;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: $bg-soft;
  border: 1px solid $border;
  padding: 0;

  @media (max-width: 1000px) {
    margin-top: 1.4rem;
    min-height: 100%;
  }
}

/* ================= CONTENT ================= */
.content {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  padding-top: 0rem;

  @media (max-width: 1000px) {
    padding: 1.5rem;
    padding-top: 0;
  }
}

/* ================= INFO CARD ================= */
.infoCard {
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid #f0ece7;

  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  transition: all 0.2s ease;

  /* subtle depth */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 14px rgba(0, 0, 0, 0.04);
}

/* hover (very subtle) */
.infoCard:hover {
  border-color: #e6dcd2;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.05);
}

/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.header h4 {
  margin: 0;

  font-size: 0.92rem;
  font-weight: 600;

  color: #1a1a1a;
  letter-spacing: -0.2px;
}

/* ================= BADGE ================= */
.badge {
  font-size: 0.65rem;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;

  background: #f5f5f5;
  color: #6b6b6b;
}

/* ================= RULES ================= */
.rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= RULE ================= */
.rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* dot */
.dot {
  width: 6px;
  height: 6px;

  margin-top: 8px;

  border-radius: 50%;
  background: #5e3817;

  flex-shrink: 0;
}

/* text */
.rule p {
  margin: 0;

  font-size: .9rem !important;
  line-height: 1.5;

  color: #6b6b6b;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .infoCard {
    padding: 1rem;
    border-radius: 12px;
  }

  .header {
    align-items: flex-start;
    gap: 6px;
  }

  .header h4 {
    font-size: 0.88rem;
  }

  .rule p {
    font-size: 0.85rem !important;
  }
}

/* ================= CONTENT ================= */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* badge */
.badge {
  font-size: 0.65rem;
  font-weight: 600;

  padding: 4px 9px;
  border-radius: 999px;

  background: rgba(122, 75, 32, 0.08);
  color: $primary;

  backdrop-filter: blur(6px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
    gap: 0.7rem;
  }

  .title {
    font-size: 0.85rem;
  }

  .rules p {
    font-size: 0.75rem;
  }
}

/* ================= LIST ================= */
.list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}