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

/* ================= GLOBAL RESET ================= */

.grid,
.card {
  font-family: 'Figtree', sans-serif;
  color: #1a1a1a !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card p,
.card span {
  color: #1a1a1a !important;
}

/* ================= GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* ================= CARD ================= */

.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;

  box-shadow: 0 2px 6px rgba(0,0,0,0.04);

  transition: all 0.2s ease;

  &:hover {
    border-color: rgba(122, 75, 32, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
}

/* ================= HEADER ================= */

.cardHeader {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.meta {
  display: flex;
  flex-direction: column;

  h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a !important;
  }

  p {
    font-size: 0.72rem;
    color: #6b6b6b !important;
  }
}

/* ================= ICON ================= */

.icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(122, 75, 32, 0.08);
  color: #5e3817;
}

/* ================= VALUE ================= */

.valueSection {
  margin-top: 0.8rem;
}

.divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 0.6rem;
}

.valueRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ================= DOT ================= */

/* ================= DOT ================= */

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.positiveDot {
  background: #5e3817; 
}

.negativeDot {
  background: #dc2626;
}

/* OPTIONAL NEUTRAL */
.neutralDot {
  background: rgba(0, 0, 0, 0.3);
}

/* ================= VALUE TEXT ================= */

.valueRow h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a !important;
}

.positive {
  color: #16a34a !important;
}

.negative {
  color: #dc2626 !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .valueRow h2 {
    font-size: 1.2rem;
  }
}