/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pagy pagination styling */
.series-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.series-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.series-nav a:hover:not([aria-disabled="true"]) {
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.series-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  cursor: default;
}

.series-nav a[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

.series-nav a[role="separator"] {
  background: transparent;
  padding: 6px 4px;
}

/* ── Clerk widget overrides ──
   Hide branding, footer, dev-mode badge.
   CSS fallback in case JS appearance element names drift between Clerk versions. */
.auth-clerk .cl-internal-b3fm6y,
.auth-clerk .cl-footer,
.auth-clerk .cl-footerAction,
.auth-clerk .cl-footerPages,
.auth-clerk [data-localization-key="footerPageLink__help"],
.auth-clerk [data-localization-key="footerPageLink__privacy"],
.auth-clerk [data-localization-key="footerPageLink__terms"],
.auth-clerk .cl-logoBox,
.auth-clerk .cl-logoImage,
.auth-clerk .cl-logoLink,
.auth-clerk .cl-badge,
.auth-clerk .cl-internal-badge,
.auth-clerk .cl-socialButtonsRoot,
.auth-clerk .cl-dividerRow,
.auth-clerk .cl-header {
  display: none !important;
}

.auth-clerk .cl-card {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.auth-clerk .cl-cardBox {
  box-shadow: none !important;
  width: 100% !important;
}

.auth-clerk .cl-rootBox {
  width: 100% !important;
}

.auth-clerk .cl-otpCodeFieldInput {
  border: 1px solid #555555 !important;
  border-radius: 6px !important;
  background-color: #1B1E23 !important;
  color: #F6F6F6 !important;
}

.auth-clerk .cl-otpCodeFieldInput:focus {
  border-color: #ffffff !important;
}

/* ── Lightbox overlay ── */
.lightbox-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 9999;
}

.lightbox-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox-panel {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  background: var(--color-body, #0c0e12);
  border-radius: 5px;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lightbox-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-title {
  flex: 1;
  font-family: "TT Hoves Pro Trial", system-ui, sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: white;
  margin: 0;
}

.lightbox-description-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lightbox-description-block[hidden] {
  display: none;
}

.lightbox-description-block .lightbox-description {
  flex: 1;
  min-width: 0;
}

.lightbox-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}

.lightbox-edit:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-edit[hidden] {
  display: none;
}

.lightbox-media {
  width: 100%;
  display: flex;
  justify-content: center;
  background: black;
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-video {
  width: 100%;
  max-height: 70vh;
  background: black;
}

.lightbox-description {
  margin: 0;
  color: white;
  font-family: "TT Hoves Pro Trial", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
}

.lightbox-description[hidden] {
  display: none;
}

.lightbox-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-content-link {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 20px;
  border-radius: 5px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: background 0.2s;
  z-index: 1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-content-link:hover {
  background: var(--color-surface-raised);
}

.lightbox-content-link[hidden] {
  display: none;
}

/* Hide scrollbar for carousel containers */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
