/* ============================================================
   ShinobiKage — components.css
   Cards, buttons, chips, meta, comments, section labels
   ============================================================ */

/* ── Section labels ───────────────────────────────────────── */
.sk-section-label {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand-orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sk-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,140,0,0.4) 0%, transparent 100%);
}
.sk-section { margin-bottom: 0; }
.sk-section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

/* ── Cards grid ───────────────────────────────────────────── */
.sk-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 576px) {
  .sk-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sk-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sk-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.sk-card {
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
  color: inherit;
}
.sk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.sk-card:hover .sk-card__thumb img { transform: scale(1.04); }

.sk-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-inset);
}
.sk-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}
.sk-card__thumb .sk-chip {
  position: absolute;
  top: 12px; left: 12px;
}

.sk-card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.sk-card__title {
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-strong);
  line-height: 1.2;
}
.sk-card:hover .sk-card__title { color: var(--brand-orange-light); }
.sk-card__deck {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sk-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Video card ────────────────────────────────────────────── */
.sk-card--video .sk-card__thumb::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.sk-card--video .sk-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(201, 168, 76, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sk-card--video .sk-card__play::before {
  content: "";
  border-left: 18px solid var(--bg-base);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.sk-card--video .sk-card__duration {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(11,11,13,0.85);
  color: var(--text-base);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Event card ───────────────────────────────────────────── */
.sk-card--event {
  flex-direction: row;
  align-items: stretch;
  border-left: 2px solid var(--brand-orange);
}
.sk-card--event .sk-card__date {
  flex: 0 0 88px;
  background: var(--bg-inset);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sk-card--event .sk-card__date-day {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--brand-orange);
  line-height: 1;
}
.sk-card--event .sk-card__date-month {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Chips / tags ──────────────────────────────────────────── */
.sk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--brand-orange);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.sk-chip--breaking { background: rgba(184, 150, 60, 0.18); color: var(--ember); }
.sk-chip--info { background: rgba(96, 165, 250, 0.15); color: var(--info); }

/* ── Buttons ───────────────────────────────────────────────── */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}
.sk-btn--primary {
  background: var(--brand-orange);
  color: var(--bg-base);
}
.sk-btn--primary:hover {
  background: var(--brand-orange-light);
  box-shadow: var(--glow-brand);
  color: var(--bg-base);
}
.sk-btn--primary:active { transform: scale(0.98); background: var(--brand-orange-dark); }

.sk-btn--secondary {
  background: transparent;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}
.sk-btn--secondary:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--brand-orange);
}

.sk-btn--ghost {
  background: var(--bg-elevated);
  color: var(--text-base);
  border: 1px solid var(--border-subtle);
}
.sk-btn--ghost:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

/* ── Meta row (author, date, read time) ──────────────────── */
.sk-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.sk-meta-row__sep { color: var(--text-quaternary); }

/* ── Author box ───────────────────────────────────────────── */
.sk-author-box {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 32px 0;
}
.sk-author-box__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--ember));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 22px;
  color: var(--bg-base);
  flex: 0 0 auto;
}
.sk-author-box__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text-strong);
  margin: 0 0 4px;
}
.sk-author-box__bio { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── Comments / discussion ────────────────────────────────── */
.sk-discussion { margin-top: 48px; max-width: var(--max-article); margin-left: auto; margin-right: auto; }
.sk-discussion__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sk-discussion__count {
  background: var(--bg-elevated);
  color: var(--brand-orange);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

.sk-comment {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.sk-comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sk-comment__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--ember));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--bg-base);
  font-size: 14px;
  flex: 0 0 auto;
}
.sk-comment__author { font-weight: 600; color: var(--text-base); font-size: 14px; }
.sk-comment__time { color: var(--text-muted); font-size: 12px; }
.sk-comment__body { color: var(--text-base); font-size: 16px; line-height: 1.6; }
.sk-comment__actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}
.sk-comment__action {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
}
.sk-comment__action:hover { color: var(--brand-orange); }

.sk-comment--reply { margin-left: 24px; border-left: 2px solid var(--border-subtle); }

/* ── Cookie banner ────────────────────────────────────────── */
.sk-cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: var(--shadow-elevated);
  z-index: 200;
  max-width: 480px;
  margin-left: auto;
  display: none;
}
@media (min-width: 768px) {
  .sk-cookie-banner { bottom: 24px; right: 24px; left: auto; }
}
.sk-cookie-banner.is-visible { display: block; }
.sk-cookie-banner__text { font-size: 14px; color: var(--text-base); margin-bottom: 16px; }
.sk-cookie-banner__text a { color: var(--brand-orange); text-decoration: underline; }
.sk-cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── YouTube placeholder (pre-consent) ────────────────────── */
.sk-yt-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-inset);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background-size: cover;
  background-position: center;
}
.sk-yt-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,11,13,0.55);
}
.sk-yt-placeholder__inner { position: relative; z-index: 1; text-align: center; }
.sk-yt-placeholder__play {
  width: 64px; height: 64px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--glow-brand);
}
.sk-yt-placeholder__play::before {
  content: "";
  border-left: 20px solid var(--bg-base);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.sk-yt-placeholder__title { color: var(--text-base); font-weight: 600; }
.sk-yt-placeholder__note { color: var(--text-muted); font-size: 12px; margin-top: 8px; }

/* ── Swirl divider ────────────────────────────────────────── */
.sk-swirl-divider {
  display: block;
  margin: 48px auto;
  width: 48px; height: 48px;
  opacity: 0.7;
}

/* ── Pagination ───────────────────────────────────────────── */
.sk-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.sk-pagination a, .sk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-base);
}
.sk-pagination a:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.sk-pagination .is-active {
  background: var(--brand-orange);
  color: var(--bg-base);
  border-color: var(--brand-orange);
}
.pager__item--current > a, .pager__item--current > span { background: var(--brand-orange); color: var(--bg-base); border-color: var(--brand-orange); }

/* ── Search modal ─────────────────────────────────────────── */
.sk-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.sk-search-overlay.is-open { display: flex; }
.sk-search-overlay__close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-base);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.sk-search-overlay__form {
  width: 90%; max-width: 640px;
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 24px;
}
.sk-search-overlay input {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-base);
  padding: 14px 18px 14px 48px;
  border-radius: 4px;
  font-size: 17px;
  font-family: var(--font-body);
}

/* ── Forms base ──────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-base);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-focus);
}
label { color: var(--text-base); margin-bottom: 6px; display: block; font-weight: 600; font-size: 14px; }
fieldset { border: 1px solid var(--border-subtle); border-radius: 6px; padding: 16px; margin: 0 0 1em; }
legend { padding: 0 8px; color: var(--text-muted); }

/* Drupal ckeditor form expectations */
form .form-item { margin-bottom: 16px; }
.form-textarea-wrapper textarea { min-height: 120px; }

/* ── Drupal admin overrides ─────────────────────────────── */
.region--content > .block-system-main-block { padding: 0; }
ul.primary { padding: 0; }
.tabs.primary { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs.primary li a {
  padding: 8px 16px;
  border-radius: 4px 4px 0 0;
  background: var(--bg-surface);
  color: var(--text-base);
}
.tabs.primary li.is-active a { background: var(--brand-orange); color: var(--bg-base); }
/* ── Hero content ────────────────────────────────────────── */
.sk-hero__content {
  margin: 15px auto 0;
  text-align: center;
  max-width: 640px;
}
.sk-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text-strong);
  text-transform: uppercase;
}
.sk-hero__tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}
.sk-text--orange {
  color: var(--brand-orange);
}
.sk-hero .sk-btn {
  margin-top: 8px;
}

/* ── Nav reset: remove bullets, inline layout ────────────── */
.sk-nav ul,
.sk-nav__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sk-nav li,
.sk-nav__item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sk-nav li::marker,
.sk-nav__item::marker {
  display: none !important;
  content: none !important;
}
.sk-nav a,
.sk-nav__link {
  text-decoration: none;
}

/* ── Mobile nav reset ────────────────────────────────────── */
.sk-nav-mobile ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sk-nav-mobile li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sk-nav-mobile li::marker {
  display: none !important;
  content: none !important;
}

/* ── Account menu in header (when rendered as block) ────── */
.sk-header__branding ul,
.sk-header__branding li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sk-header__branding li::marker {
  display: none !important;
  content: none !important;
}
/* ============================================================
   Fix: character card images, sakura petals, admin toolbar
   ============================================================ */

/* ── Character card: show full body, not cropped ─────────── */
/* ── Sakura petals: CSS-only (no emoji dependency) ──────── */
.sk-leaf {
  width: 12px;
  height: 12px;
  background: radial-gradient(ellipse at 30% 30%, #FBB6CE, #F8A5B7);
  border-radius: 50% 0 50% 0;
  box-shadow: 0 0 8px rgba(248, 165, 183, 0.3);
  font-size: 0; /* hide emoji if any */
}
.sk-leaf--1 { width: 14px; height: 14px; }
.sk-leaf--2 { width: 10px; height: 10px; }
.sk-leaf--3 { width: 16px; height: 16px; }
.sk-leaf--4 { width: 9px; height: 9px; }
.sk-leaf--5 { width: 12px; height: 12px; }
.sk-leaf--6 { width: 11px; height: 11px; }
.sk-leaf--7 { width: 15px; height: 15px; }
.sk-leaf--8 { width: 10px; height: 10px; }

@keyframes sk-petal-fall {
  0% {
    transform: translateY(-40px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.75;
  }
  30% {
    transform: translateY(30vh) translateX(50px) rotate(130deg);
    opacity: 0.6;
  }
  55% {
    transform: translateY(60vh) translateX(-30px) rotate(250deg);
    opacity: 0.45;
  }
  80% {
    transform: translateY(85vh) translateX(20px) rotate(320deg);
    opacity: 0.2;
  }
  100% {
    transform: translateY(105vh) translateX(-10px) rotate(400deg);
    opacity: 0;
  }
}

/* ── Admin toolbar: standardní Drupal chování ─────────────
   NESKRYVAT toolbar přes CSS — selektor [class*="toolbar-"]
   matchuje i <body> a skryje celou stránku (display:none).
   Čistý vzhled bez toolbaru se řeší odebráním permission
   "access toolbar" u dané role, ne CSS. */

/* ── Wind gallery: ensure it stays inside article body ─── */
.sk-article-gallery {
  max-width: var(--max-article);
  margin: 0 auto;
}

/* ── Character cards: dark background, smaller, face-focused ── */
.sk-card--character .sk-card__thumb {
  aspect-ratio: auto;
  max-height: 320px;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sk-card--character .sk-card__thumb img {
  object-fit: contain;
  max-height: 300px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.sk-card--character .sk-card__body {
  text-align: center;
}
.sk-card--character .sk-card__title {
  font-size: 20px;
  letter-spacing: 1.5px;
}