/* Day section — qalam-primary.html.
   Depends on shared page tokens (--green, --green-dark, --white, --yellow,
   --radius-lg, --display) and the shared .sec-head component
   (static/css/qalam-primary.css). Mobile carousel nav controls
   (.ev-nav/.ev-btn/.day-mobile-nav/.day-progress, also reused by the
   events section) live in static/shared/carousel-nav.css. */

.day {
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.day::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(250, 204, 21, 0.22) 0%,
    transparent 60%
  );
  filter: blur(30px);
}
.day::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  filter: blur(30px);
}
.day-head {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 60px;
}
.day-head .sec-head {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}
.day .sec-head {
  position: relative;
  z-index: 1;
}
.day .sec-head h2 {
  color: var(--white);
}
.day .sec-head h2 em {
  color: var(--yellow);
}
.day .sec-head p {
  color: rgba(255, 255, 255, 0.72);
}
.day .sec-head .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.day-grid {
  display: flex;
  gap: 18px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 18px 0 4px;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.day-grid.grabbing {
  cursor: grabbing;
  user-select: none;
}
.day-grid::-webkit-scrollbar {
  display: none;
}
.dcard {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  padding: 8px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(1, 26, 20, 0.12);
}
.dcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(1, 26, 20, 0.18);
}
.day-grid .dcard.is-active {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(1, 26, 20, 0.18);
}
.day-grid .dcard.is-active:hover {
  transform: translateY(-8px);
}
.dcard-img {
  position: relative;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(
    135deg,
    var(--green) 0%,
    var(--green-dark) 100%
  );
  flex-shrink: 0;
}
.dcard-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}
.dcard:hover .dcard-img img {
  transform: scale(1.06);
}
.dcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  background: #ff9d02;
  color: var(--white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(1, 26, 20, 0.18);
}
.dcard-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(1, 26, 20, 0.28);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.dcard-body {
  padding: 18px 10px 10px;
}
.dcard h3 {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.dcard p {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.6;
}

/* CIRCLES */
.circles-row {
  margin-top: 36px;
  position: relative;
  z-index: 1;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}
.circles-label {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 18px;
  display: block;
  line-height: 1.2;
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.chip {
  min-height: 48px;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}
.chip::before {
  content: "";
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background: var(--yellow);
  flex-shrink: 0;
}
.chip:nth-child(3n + 2)::before {
  background: var(--green);
}
.chip:nth-child(3n)::before {
  background: #7c3aed;
}

@media (max-width: 640px) {
  .day-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
  }
  .dcard {
    flex-basis: calc(100vw - 72px);
  }
}
