/* Forecast reminders (template-parts/reminder.php): "Add reminder" and its calendar menu.
   Used on the monthly horoscope (next to "Rate it from …") and the daily sign page. */

.rm {
  --rm-night: #1a0f2e;
  --rm-night-2: #2a1845;
  --rm-gold: #D4A574;
  --rm-gold-light: #E8C9A1;
  --rm-bronze: #7A5230;
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* The button: a quiet pill next to the date */
.rm__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rm-bronze);
  background: #FBF4EC;
  border: 1px solid #EFDCC7;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.rm__toggle::-webkit-details-marker { display: none; }
.rm__toggle::marker { content: ''; }

.rm__bell { flex: none; color: var(--rm-gold); }

@media (hover: hover) {
  .rm__toggle:hover { border-color: var(--rm-gold); background: #F8EBDC; }
}

.rm__toggle:focus-visible,
.rm__opt:focus-visible {
  outline: 2px solid var(--rm-gold);
  outline-offset: 2px;
}

.rm[open] > .rm__toggle {
  color: var(--rm-night);
  background: var(--rm-gold);
  border-color: var(--rm-gold);
}

.rm[open] > .rm__toggle .rm__bell { color: var(--rm-night); }

/* The menu: a small night-sky card under the button */
.rm__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 165, 116, 0.2), transparent 60%),
    linear-gradient(150deg, var(--rm-night-2), var(--rm-night));
  border: 1px solid rgba(212, 165, 116, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(26, 15, 46, 0.28);
  animation: rm-in 0.16s ease-out;
}

@keyframes rm-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.rm__title {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rm-gold-light);
}

.rm__star { color: var(--rm-gold); }

.rm__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.rm__when svg { flex: none; color: var(--rm-gold); }
.rm__when time { color: #fff; font-weight: 700; }

.rm__list {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.rm__list li { margin: 0; padding: 0; }
.rm__list li::before { content: none; }

.rm .rm__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: background-color 0.15s, border-color 0.15s;
}

@media (hover: hover) {
  .rm .rm__opt:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(212, 165, 116, 0.16);
    border-color: rgba(212, 165, 116, 0.5);
  }
}

.rm .rm__opt:active { background: rgba(212, 165, 116, 0.22); }

.rm__go { flex: none; color: var(--rm-gold); }

.rm__note,
.rm__status {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.rm__status { color: var(--rm-gold-light); font-weight: 700; }
.rm__status:empty { display: none; }

/* Phones: the menu opens in place, full width, instead of floating */
@media (max-width: 640px) {
  .rm[open] { display: block; flex-basis: 100%; }
  .rm__panel {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm__panel { animation: none; }
  .rm__toggle, .rm .rm__opt { transition: none; }
}

/* Monthly horoscope: beside "Rate it from …", the visitor's sign-up link stays on the right */
.hs-pred__foot .rm { margin-right: auto; }

/* Daily sign page */
.dy-rate__remind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #E3D2BE;
}

.yr-sec .dy-rate__remind p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #6B6670; }
