/*
 * ============================================================
 * SALAH — STANDALONE DHIKR COUNTER POLISH
 * ============================================================
 *
 * Scoped only to standalone counted dhikr inside
 * SalahWorshipDetail.
 *
 * Collection counters and reading timer are untouched.
 * ============================================================
 */

.worship-detail-dhikr-counter {
  display: grid;
  gap: 14px;

  margin-top: 14px;
}


/* ============================================================
   SUMMARY ROW
   ============================================================ */

.worship-detail-dhikr-counter
.worship-detail-count {
  margin-top: 0;
}


/* ============================================================
   MAIN TAP COUNTER
   ============================================================ */

.worship-detail-dhikr-counter
.worship-detail-counter-button {
  appearance: none;
  -webkit-appearance: none;

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

  width: 150px;
  height: 150px;

  margin: 0 auto;
  padding: 0;

  border:
    2px solid rgba(201,169,106,.34);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 38% 30%,
      #195643,
      #0e3b2e 72%
    );

  color: #fff;

  box-shadow:
    inset 0 0 0 8px rgba(255,255,255,.025),
    0 12px 28px rgba(14,59,46,.16);

  cursor: pointer;

  transition:
    transform .12s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease;
}


.worship-detail-dhikr-counter
.worship-detail-counter-button:hover {
  transform: translateY(-2px);

  border-color:
    rgba(201,169,106,.62);

  box-shadow:
    inset 0 0 0 8px rgba(255,255,255,.035),
    0 16px 34px rgba(14,59,46,.20);
}


.worship-detail-dhikr-counter
.worship-detail-counter-button:active {
  transform: scale(.97);
}


.worship-detail-dhikr-counter
.worship-detail-counter-button:focus-visible {
  outline:
    3px solid rgba(201,169,106,.48);

  outline-offset: 4px;
}


/* ============================================================
   NUMBER
   ============================================================ */

.worship-detail-dhikr-counter
.worship-detail-counter-button
[data-dhikr-count-value] {
  display: block;

  color: #fff;

  font-family:
    'Libre Baskerville',
    serif;

  font-size: 46px;
  line-height: 1;

  font-weight: 400;

  text-shadow:
    0 1px 2px rgba(0,0,0,.10);
}


/* ============================================================
   TAP LABEL
   ============================================================ */

.worship-detail-dhikr-counter
.worship-detail-counter-button
small {
  display: block;

  margin-top: 8px;

  color:
    rgba(255,253,248,.82);

  font-family:
    'DM Sans',
    system-ui,
    sans-serif;

  font-size: 8px;
  line-height: 1;

  font-weight: 700;

  letter-spacing: .11em;
  text-transform: uppercase;
}


/* ============================================================
   COMPLETE STATE
   ============================================================ */

.worship-detail-dhikr-counter
.worship-detail-counter-button[data-complete="true"] {
  border-color:
    rgba(201,169,106,.92);

  background:
    radial-gradient(
      circle at 38% 30%,
      #24614d,
      #0e3b2e 72%
    );

  box-shadow:
    inset 0 0 0 8px rgba(201,169,106,.05),
    0 0 0 3px rgba(201,169,106,.14),
    0 14px 32px rgba(14,59,46,.19);
}


.worship-detail-dhikr-counter
.worship-detail-counter-button[data-complete="true"]
small {
  color: #ead8b4;
}


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

.worship-detail-dhikr-counter
.worship-detail-counter-actions {
  display: flex;
  justify-content: center;
}


.worship-detail-dhikr-counter
[data-dhikr-reset] {
  appearance: none;
  -webkit-appearance: none;

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

  min-height: 32px;

  margin: 0;
  padding: 7px 13px;

  border:
    1px solid rgba(14,59,46,.12);

  border-radius: 999px;

  background: #f3efe6;
  color: #5f7068;

  font-family:
    'DM Sans',
    system-ui,
    sans-serif;

  font-size: 8px;
  line-height: 1;

  font-weight: 700;

  cursor: pointer;

  transition:
    background .14s ease,
    border-color .14s ease,
    color .14s ease,
    transform .14s ease;
}


.worship-detail-dhikr-counter
[data-dhikr-reset]:hover {
  background: #e9efe9;

  border-color:
    rgba(14,59,46,.22);

  color: #0e3b2e;

  transform: translateY(-1px);
}


.worship-detail-dhikr-counter
[data-dhikr-reset]:active {
  transform: translateY(0);
}


.worship-detail-dhikr-counter
[data-dhikr-reset]:focus-visible {
  outline:
    2px solid rgba(201,169,106,.62);

  outline-offset: 2px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {
  .worship-detail-dhikr-counter
  .worship-detail-counter-button {
    width: 132px;
    height: 132px;
  }

  .worship-detail-dhikr-counter
  .worship-detail-counter-button
  [data-dhikr-count-value] {
    font-size: 40px;
  }
}
