/* Saint Markus Core — front-end components. Uses the theme's colours when present. */

.smk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Age gate */
.smk-age-open, .smk-age-open body { overflow: hidden; }
.smk-age {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 12, 22, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.smk-age__box {
  width: min(460px, 100%); padding: 36px 28px; border-radius: 16px; text-align: center;
  background: var(--navy-800, #16213a); color: #c9d1e3; border: 1px solid rgba(220, 187, 108, .25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.smk-age__box h2 { color: #fff; margin: 0 0 10px; font-size: 1.9rem; }
.smk-age__badge {
  display: inline-flex; width: 62px; height: 62px; border-radius: 999px; align-items: center; justify-content: center;
  border: 3px solid #c0392b; color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 16px;
}
.smk-age__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* Thank-you cards */
.smk-thanks { display: grid; gap: 16px; margin: 0 0 32px; }
.smk-thanks__card { padding: 22px 24px; border-radius: 14px; background: var(--white, #fff); border: 1px solid var(--line, #e4dccb); }
.smk-thanks__card:first-child { background: var(--navy-800, #16213a); color: #c9d1e3; border-color: transparent; }
.smk-thanks__card:first-child h2 { color: #fff; }
.smk-thanks__card h2 { font-size: 1.5rem; margin: 0 0 6px; }
.smk-thanks__card p:last-child { margin-bottom: 0; }
.smk-thanks__card .button { margin-top: 6px; }

/* Account dashboard */
.smk-dash h2 { margin-top: 0; }
.smk-dash__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .smk-dash__grid { grid-template-columns: 1fr; } }
.smk-dash__card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 14px; text-decoration: none;
  background: var(--white, #fff); border: 1px solid var(--line, #e4dccb); color: var(--ink, #1a2132);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.smk-dash__card:hover { border-color: var(--gold-500, #c9a24c); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(15, 22, 41, .35); }
.smk-dash__card strong { font-size: 1.05rem; color: var(--navy-900, #0f1629); }
.smk-dash__card span { font-size: .9rem; color: var(--muted, #646c7e); }

/* Library */
.smk-library__head h2 { margin: 0 0 4px; }
.smk-library__head p { color: var(--muted, #646c7e); margin-bottom: 24px; }
.smk-empty { padding: 32px; text-align: center; border: 1px dashed var(--line, #e4dccb); border-radius: 14px; background: var(--white, #fff); }
.smk-book {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 22px; margin-bottom: 16px;
  border-radius: 14px; background: var(--white, #fff); border: 1px solid var(--line, #e4dccb);
}
@media (max-width: 560px) { .smk-book { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px; } }
.smk-book__cover img { width: 100%; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 20px -10px rgba(15, 22, 41, .5); }
.smk-book__label { margin: 0 0 2px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600, #a8822e); }
.smk-book__title { margin: 0 0 12px; font-size: 1.35rem; }
.smk-format + .smk-format { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e4dccb); }
.smk-format__name { margin: 0 0 8px; font-weight: 600; font-size: .9rem; }
.smk-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.smk-file {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 12px; border-radius: 10px; background: var(--cream-100, #f5f0e6);
}
.smk-file__name { font-size: .92rem; word-break: break-word; }
.smk-file__actions { display: flex; gap: 8px; }
.smk-file__note { flex-basis: 100%; font-size: .78rem; color: var(--muted, #646c7e); }
.smk-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--navy-800, #16213a); color: #fff !important; font: 600 .85rem/1 var(--font-body, sans-serif); text-decoration: none; cursor: pointer;
}
.smk-btn:hover { background: var(--navy-600, #2c3c5f); }
.smk-btn--ghost { background: transparent; color: var(--navy-800, #16213a) !important; border-color: var(--navy-800, #16213a); }
.smk-btn--ghost:hover, .smk-btn--ghost.is-playing { background: var(--gold-500, #c9a24c); border-color: var(--gold-500, #c9a24c); color: var(--navy-900, #0f1629) !important; }
.smk-library__help { margin-top: 18px; font-size: .85rem; color: var(--muted, #646c7e); }

.smk-player {
  position: sticky; bottom: 16px; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto;
  align-items: center; gap: 14px; margin-top: 20px; padding: 14px 18px; border-radius: 14px;
  background: var(--navy-900, #0f1629); color: #c9d1e3; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
}
.smk-player[hidden] { display: none; }
.smk-player__info { display: flex; flex-direction: column; min-width: 0; }
.smk-player__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400, #dcbb6c); }
.smk-player__title { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smk-player audio { width: 100%; height: 40px; }
.smk-player__speed select { min-height: 34px; border-radius: 999px; padding: 0 8px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.smk-player__speed option { color: #000; }
.smk-player__close { background: none; border: 0; color: #c9d1e3; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
@media (max-width: 680px) {
  .smk-player { grid-template-columns: minmax(0, 1fr) auto; }
  .smk-player audio { grid-column: 1 / -1; grid-row: 2; }
  .smk-player__speed { grid-row: 1; }
  .smk-player__close { position: absolute; top: 6px; right: 6px; }
  .smk-player__info { padding-right: 28px; }
}

/* Contact form */
.smk-contact { display: grid; gap: 4px; max-width: 640px; }
.smk-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .smk-contact__row { grid-template-columns: 1fr; } }
.smk-contact label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft, #3a4357); }
.smk-contact input[type="text"], .smk-contact input[type="email"], .smk-contact textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 6px; border: 1px solid #d6cdbb; background: #fff; font: inherit;
}
.smk-contact input:focus, .smk-contact textarea:focus { border-color: var(--gold-500, #c9a24c); box-shadow: 0 0 0 3px rgba(201, 162, 76, .2); outline: none; }
.smk-alert { padding: 14px 18px; border-radius: 10px; font-weight: 500; }
.smk-alert--ok { background: #e8f4ec; color: #22603f; }
.smk-alert--err { background: #fbeae7; color: #8f2f21; }

.stock.coming-soon { color: var(--gold-600, #a8822e) !important; font-weight: 600; }
