/* ═══════════════════════════════════════════════════════════════
   media.css  —  Verse of the Day archive calendar
   Used by: versarch.php
═══════════════════════════════════════════════════════════════ */

/* ── Calendar nav ── */
.cal-wrap {
  max-width: 320px;
  margin: 0 auto;
}

.cal-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Month jump select ── */
.cal-jump {
  flex: 1;
  display: flex;
  justify-content: center;
}

.cal-jump-select {
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.96)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2338bdf8' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E")
    no-repeat right 0.6rem center;
  color: #e5e7eb;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

.cal-jump-select:focus {
  outline: none;
  border-color: #38bdf8;
}

.cal-jump-select option {
  background: #0f172a;
  color: #e5e7eb;
}

/* ── Calendar table ── */
.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
}

.cal-table th {
  padding: 0.2rem 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
}

.cal-table td {
  padding: 0.1rem 0;
  text-align: center;
  vertical-align: middle;
}

.cal-day {
  display: inline-block;
  width: 100%;
  font-size: 0.85rem;
  line-height: 2;
  text-align: center;
}

.cal-day.empty {
  color: transparent;
}

.cal-day.no-image {
  color: #374151;
  cursor: default;
}

.cal-day.has-image {
  color: #38bdf8;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms;
}

.cal-day.has-image:hover {
  color: #fff;
}

.cal-day.has-image.selected {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Verse preview ── */
.votd-preview {
  margin-top: 1.25rem;
  animation: votdFadeIn 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes votdFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.votd-date {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.votd-preview img {
  display: block;
  max-width: min(100%, 800px);
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
