/* =================================================================
   LE-CORP — Supplementary Brand Styles
   Covers classes used in templates that are not in le-corp.css or
   le-corp-wiki.css. Loaded after both base files on every page.
   ================================================================= */

/* -----------------------------------------------------------------
   MAIN WRAPPER — lc-main
   Used as the <main> role="main" wrapper on all non-wiki pages
   (index, archive, search, single, 404, page-*, author).
   ----------------------------------------------------------------- */
.lc-main {
  width: 100%;
  min-height: 60vh;
  padding-top: var(--lc-gap, 20px);
  padding-bottom: 56px;
}

/* -----------------------------------------------------------------
   WIKI MAIN — lc-wiki-main
   Right-column main content area inside the wiki two-column layout.
   Alias alongside .lc-db-main which handles the actual grid.
   ----------------------------------------------------------------- */
.lc-wiki-main {
  min-width: 0;
}

/* -----------------------------------------------------------------
   AUTHOR PROFILE WRAPPER — lc-author-profile
   Full-page container rendered by author.php. Internal layout is
   handled by the .lc-ap-* classes already in le-corp.css.
   ----------------------------------------------------------------- */
.lc-author-profile {
  width: 100%;
}

/* -----------------------------------------------------------------
   ARCHIVE CONTENT — lc-archive-content
   Modifier on .lc-archive-main; provides vertical gap on index page.
   ----------------------------------------------------------------- */
.lc-archive-content {
  display: flex;
  flex-direction: column;
  gap: var(--lc-gap-lg, 40px);
}

/* -----------------------------------------------------------------
   CARD GRID — lc-card-grid
   Single-column list used in author.php for the posts list.
   Children are lc-card--list (horizontal: text left, image right),
   so the wrapper must be a single column. Cards stack vertically.
   ----------------------------------------------------------------- */
.lc-card-grid {
  display: flex;
  flex-direction: column;
}

/* -----------------------------------------------------------------
   STAT BLOCK — lc-stat (child of .lc-stats-bar which is in le-corp.css)
   ----------------------------------------------------------------- */
.lc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

/* -----------------------------------------------------------------
   ACTION BUTTON MODIFIERS — lc-action-btn--bookmark / --like
   Base .lc-action-btn is styled in le-corp.css. These modifiers
   add saved / liked visual states.
   ----------------------------------------------------------------- */
.lc-action-btn--bookmark.is-saved,
.lc-action-btn--bookmark[data-saved="1"] {
  color: #f59e0b;
  border-color: #f59e0b;
}
.lc-action-btn--like.is-liked,
.lc-action-btn--like[data-liked="1"] {
  color: var(--lc-accent, #E50914);
  border-color: var(--lc-accent, #E50914);
}

/* -----------------------------------------------------------------
   STICKY BUTTON MODIFIERS — lc-sticky-btn--bookmark/like/comment/search
   Base .lc-sticky-btn is styled in le-corp.css.
   ----------------------------------------------------------------- */
.lc-sticky-btn--bookmark.is-saved {
  color: #f59e0b;
}
.lc-sticky-btn--like.is-liked {
  color: var(--lc-accent, #E50914);
}

/* -----------------------------------------------------------------
   COMMENT FORM — lc-comment-form
   Wraps the wp_comment_form() output inside <article> pages.
   ----------------------------------------------------------------- */
.lc-comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lc-comment-form p { margin: 0; }
.lc-comment-form label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--lc-text-muted, #9a9a9a);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.lc-comment-form input[type="text"],
.lc-comment-form input[type="email"],
.lc-comment-form input[type="url"],
.lc-comment-form textarea {
  width: 100%;
  background: var(--lc-bg-card, #242424);
  border: 1px solid var(--lc-border, #333);
  color: var(--lc-text, #f0f0f0);
  font-family: var(--lc-font-ui, sans-serif);
  font-size: .9rem;
  padding: 10px 13px;
  outline: none;
  transition: border-color var(--lc-trans, .2s ease);
  border-radius: 0;
  resize: vertical;
}
.lc-comment-form input:focus,
.lc-comment-form textarea:focus {
  border-color: var(--lc-accent, #E50914);
}
.lc-comment-form .form-submit { margin: 0; }
.lc-comment-form .submit {
  background: var(--lc-accent, #E50914);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--lc-trans, .2s ease);
  border-radius: 0;
}
.lc-comment-form .submit:hover { background: var(--lc-accent-hover, #b0060f); }

/* -----------------------------------------------------------------
   COMMENT NAVIGATION — lc-comment-nav
   Paginated comments "older / newer" links.
   ----------------------------------------------------------------- */
.lc-comment-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--lc-border, #333);
  font-size: .82rem;
  color: var(--lc-text-muted, #9a9a9a);
}
.lc-comment-nav a {
  color: var(--lc-accent, #E50914);
  text-decoration: none;
}
.lc-comment-nav a:hover { text-decoration: underline; }

/* -----------------------------------------------------------------
   COMMENT REPLY BUTTON — lc-comment__reply
   Inline reply link inside each comment.
   ----------------------------------------------------------------- */
.lc-comment__reply {
  background: none;
  border: 1px solid var(--lc-border, #333);
  color: var(--lc-text-muted, #9a9a9a);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 10px;
  cursor: pointer;
  transition: border-color var(--lc-trans, .2s ease), color var(--lc-trans, .2s ease);
}
.lc-comment__reply:hover {
  border-color: var(--lc-accent, #E50914);
  color: var(--lc-accent, #E50914);
}

/* -----------------------------------------------------------------
   NEWSLETTER MODAL FORM — lc-newsletter-ajax / lc-newsletter-modal__form
   Form element inside the newsletter popup overlay.
   ----------------------------------------------------------------- */
.lc-newsletter-ajax,
.lc-newsletter-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.lc-newsletter-msg {
  font-size: .82rem;
  min-height: 1.2em;
  color: var(--lc-text-muted, #9a9a9a);
}
.lc-newsletter-msg.is-success { color: #27c24c; }
.lc-newsletter-msg.is-error   { color: var(--lc-accent, #E50914); }

/* -----------------------------------------------------------------
   WIKI SECTION MODIFIER VARIANTS
   lc-wiki-section is the base (styled in le-corp-wiki.css).
   These variants add section-specific spacing or behaviour.
   ----------------------------------------------------------------- */
.lc-wiki-section--cast    { padding-top: var(--lc-gap, 20px); }
.lc-wiki-section--children { padding-top: var(--lc-gap, 20px); }
.lc-wiki-section--episodes { padding-top: var(--lc-gap, 20px); }
.lc-wiki-section--gallery  { padding-top: var(--lc-gap, 20px); }
.lc-wiki-section--news     { padding-top: var(--lc-gap, 20px); }

/* -----------------------------------------------------------------
   WIKI ARCHIVE RESULTS — lc-wiki-archive__results
   The <main> content column inside the wiki archive two-column layout.
   ----------------------------------------------------------------- */
.lc-wiki-archive__results {
  min-width: 0;
}

/* -----------------------------------------------------------------
   WIKI REVIEWS SECTION HEADING — lc-wiki-reviews-section__heading / __count
   Rendered in single-lecorp_wiki.php alongside .lc-db-reviews-heading.
   ----------------------------------------------------------------- */
.lc-wiki-reviews-section__heading {
  font-family: var(--lc-font-head, 'Oswald', sans-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lc-text, #f0f0f0);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lc-wiki-reviews-section__count {
  font-size: .88rem;
  font-weight: 400;
  font-family: var(--lc-font-ui, sans-serif);
  color: var(--lc-text-muted, #9a9a9a);
  letter-spacing: 0;
}

/* -----------------------------------------------------------------
   WIKI CATBANNER BODY — lc-wiki-catbanner__body
   Inner content column in the category/wiki hero banner
   (rendered by category-hero.php).
   ----------------------------------------------------------------- */
.lc-wiki-catbanner__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px 0 0;
}

/* -----------------------------------------------------------------
   WIKI GALLERY MORE OVERLAY — lc-wiki-gallery__more-overlay
   Dark overlay on the last visible gallery item showing "+N more".
   ----------------------------------------------------------------- */
.lc-wiki-gallery__more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-family: var(--lc-font-head, 'Oswald', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--lc-trans, .2s ease);
}
.lc-wiki-gallery__more-overlay:hover { background: rgba(0, 0, 0, .55); }
.lc-wiki-gallery__more-overlay small {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--lc-font-ui, sans-serif);
  color: rgba(255, 255, 255, .75);
}

/* -----------------------------------------------------------------
   WIKI LIGHTBOX NAVIGATION — img-wrap / prev / next
   Complete the lightbox component (base .lc-wiki-lightbox and .lc-wiki-lightbox__close
   are already in le-corp-wiki.css).
   ----------------------------------------------------------------- */
.lc-wiki-lightbox__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-height: 90vh;
}
.lc-wiki-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.lc-wiki-lightbox__prev,
.lc-wiki-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--lc-trans, .2s ease);
  border-radius: 0;
}
.lc-wiki-lightbox__prev { left: 16px; }
.lc-wiki-lightbox__next { right: 16px; }
.lc-wiki-lightbox__prev:hover,
.lc-wiki-lightbox__next:hover {
  background: var(--lc-accent, #E50914);
  border-color: var(--lc-accent, #E50914);
}

/* -----------------------------------------------------------------
   WIKI RATING FORM — lc-wiki-rating-form (base class)
   The wrapper for the star rating + comment form component.
   Child elements (lc-wiki-rating-form__*) are in le-corp-wiki.css.
   ----------------------------------------------------------------- */
.lc-wiki-rating-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 860px) {
  .lc-wiki-archive__results { min-width: 0; }
}

@media (max-width: 600px) {
  .lc-wiki-lightbox__prev { left: 6px; }
  .lc-wiki-lightbox__next { right: 6px; }
  .lc-wiki-gallery__more-overlay { font-size: 1.2rem; }
}
