/* ================= VARIABLES ================= */
$primary: #5e3817;
$primary-2: #7a4b20;

$text-dark: #1a1a1a;
$text-muted: #6b6b6b;

$bg-soft: #faf8f6;
$border: rgba(0, 0, 0, 0.05);

/* ================= CARD ================= */
.card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid $border;

  padding: 1.2rem;

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

  text-decoration: none;

  transition: all 0.3s ease;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);

  &:hover {
    transform: translateY(-6px);
    box-shadow:
      0 20px 45px rgba(0, 0, 0, 0.08),
      0 6px 18px rgba(122, 75, 32, 0.08);
  }
}

/* ================= TOP ================= */
.top {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: $bg-soft;

  img {
    width: 100%;
    height: 100%;
  }
}

.name {
  font-size: 1rem;
  font-weight: 600;
}

.members {
  font-size: 0.75rem;
  color: $primary;
}

/* ================= LOCATION ================= */
.locationRow {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
  align-items: center;

  svg {
    color: $primary;
  }
}

/* ================= SCHEDULE (FULL WIDTH) ================= */
.scheduleRow {
  display: flex;
  width: 100%;
  gap: 10px;
}

.scheduleItem {
  flex: 1;

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

  gap: 6px;

  padding: 8px;

  border-radius: 10px;

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

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

  svg {
    font-size: 0.85rem;
  }
}

/* ================= COUNTDOWN ================= */
.nextMeeting {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;

  strong {
    color: $primary;
  }
}

/* ================= DIVIDER ================= */
.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* ================= GROUP ================= */
.group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= AVATARS ================= */
.avatars {
  display: flex;

  img,
  .more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;

    &:first-child {
      margin-left: 0;
    }
  }

  .more {
    background: $primary;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ================= CALL ================= */
.call {
  display: flex;
  align-items: center;
  gap: 6px;

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

  color: $primary;

  background: rgba(122, 75, 32, 0.08);
  padding: 6px 10px;
  border-radius: 8px;

  &:hover {
    background: rgba(122, 75, 32, 0.15);
  }
}

/* ================= SKELETON ================= */

.skeleton {
  pointer-events: none;
}

/* shimmer */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* base */
.skelLogo,
.skelTitle,
.skelSub,
.skelLocation,
.skelScheduleItem,
.skelNext,
.skelBtn,
.skelAvatars span {
  position: relative;
  overflow: hidden;
  background: #eee;
  border-radius: 6px;
}

/* shimmer layer */
.skelLogo::after,
.skelTitle::after,
.skelSub::after,
.skelLocation::after,
.skelScheduleItem::after,
.skelNext::after,
.skelBtn::after,
.skelAvatars span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );

  animation: shimmer 1.2s infinite;
}

/* ================= STRUCTURE ================= */

.skelLogo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.skelText {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.skelTitle {
  height: 12px;
  width: 70%;
}

.skelSub {
  height: 10px;
  width: 40%;
}

.skelLocation {
  height: 10px;
  width: 80%;
}

.skelScheduleItem {
  flex: 1;
  height: 32px;
  border-radius: 10px;
}

.skelNext {
  height: 12px;
  width: 60%;
}

.skelAvatars {
  display: flex;

  span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: -8px;

    &:first-child {
      margin-left: 0;
    }
  }
}

.skelBtn {
  width: 70px;
  height: 28px;
  border-radius: 8px;
}


.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: column;
  gap: 0.5rem;
}

.editBtn,
.deleteBtn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

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

  cursor: pointer;
  transition: all 0.2s ease;
}

/* EDIT */
.editBtn {
  background: #faf8f6;
  color: #7a4b20;

  &:hover {
    background: #f3ece5;
  }
}

/* DELETE */
.deleteBtn {
  background: #fff5f5;
  color: #dc2626;

  &:hover {
    background: #ffe5e5;
  }
}