/* ============================================================
   ShinobiKage — layout.css
   Page grid, header, footer, content/sidebar, container
   ============================================================ */

.sk-page { min-height: 100vh; display: flex; flex-direction: column; }

.sk-container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .sk-container { padding: 0 24px; } }

.sk-main {
  flex: 1 0 auto;
  padding: 40px 0;
}
@media (min-width: 1024px) { .sk-main { padding: 64px 0; } }

/* Header */
.sk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.sk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}
@media (min-width: 1024px) { .sk-header__inner { min-height: 64px; } }

.sk-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.sk-header__logo img { height: 32px; width: auto; }
@media (min-width: 1024px) { .sk-header__logo img { height: 40px; } }

/* Nav */
.sk-nav { display: none; }
@media (min-width: 1024px) {
  .sk-nav { display: flex; align-items: center; gap: 4px; }
}
.sk-nav__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 160ms ease;
}
.sk-nav__link:hover,
.sk-nav__link.is-active {
  color: var(--text-base);
}
.sk-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 1px;
}

/* Social icons */
.sk-header__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.sk-header__social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease;
}
.sk-header__social-link:hover {
  color: var(--brand-orange);
  background: rgba(201, 168, 76, 0.08);
}
.sk-header__social-link svg { width: 20px; height: 20px; }

/* Mobile hamburger */
.sk-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}
.sk-hamburger__bars,
.sk-hamburger__bars::before,
.sk-hamburger__bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text-base);
  border-radius: 1px;
  transition: transform 200ms;
}
.sk-hamburger__bars { position: relative; }
.sk-hamburger__bars::before { position: absolute; top: -6px; }
.sk-hamburger__bars::after { position: absolute; top: 6px; }
.sk-hamburger.is-open .sk-hamburger__bars { background: transparent; }
.sk-hamburger.is-open .sk-hamburger__bars::before { transform: translateY(6px) rotate(45deg); }
.sk-hamburger.is-open .sk-hamburger__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .sk-hamburger { display: none; } }

/* Mobile nav overlay */
.sk-nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 99;
  padding: 80px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.sk-nav-mobile.is-open { display: flex; }
.sk-nav-mobile__link {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text-base);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.sk-nav-mobile__link.is-active { color: var(--brand-orange); }

/* Hero region */
.sk-hero {
  position: relative;
  min-height: 320px;
  background: #000000;
  overflow: hidden;
}
@media (min-width: 768px) { .sk-hero { min-height: 420px; } }
.sk-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.sk-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,17,0.2) 0%, rgba(15,15,17,0.95) 95%);
}
.sk-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 16px;
  max-width: var(--max-content);
  margin: 0 auto;
}
@media (min-width: 768px) { .sk-hero__inner { padding: 80px 24px; } }

/* Content layouts */
.sk-layout-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .sk-layout-content--with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.sk-layout-content__main > .sk-section { margin-bottom: 48px; }
.sk-layout-content__main > .sk-section:last-child { margin-bottom: 0; }

/* Article body width constraint */
.sk-article__body {
  max-width: var(--max-article);
  margin: 0 auto;
}
.sk-article__body > * { margin-left: auto; margin-right: auto; }
.sk-article__body img { margin-bottom: 1em; }

/* Hero image — same width as article body */
.sk-article__hero {
  max-width: var(--max-article);
  margin-left: auto;
  margin-right: auto;
}
.sk-article__hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Author box — same width as article body */
.sk-author-box {
  max-width: var(--max-article);
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.sk-footer {
  background: var(--bg-inset);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
  margin-top: auto;
}
.sk-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .sk-footer__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .sk-footer__inner { grid-template-columns: repeat(5, 1fr); }
}
.sk-footer__col h4 {
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sk-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sk-footer__col li { margin-bottom: 8px; }
.sk-footer__col a {
  color: var(--text-muted);
  font-size: 15px;
}
.sk-footer__col a:hover { color: var(--brand-orange); }

.sk-footer__brand {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sk-footer__brand img { height: 32px; }

.sk-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-quaternary);
}
@media (min-width: 768px) {
  .sk-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.sk-footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.sk-footer__legal a { color: var(--text-quaternary); font-size: 13px; }
.sk-footer__legal a:hover { color: var(--brand-orange); }
/* Header branding wrapper */
.sk-header__branding {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sk-header__branding > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Naruto character (pops up from bottom of hero) ─────── */
.sk-naruto {
  position: absolute;
  bottom: -100%;
  right: 5%;
  width: 280px;
  height: 350px;
  z-index: 3;
  pointer-events: none;
  transition: bottom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.25));
}
.sk-naruto.is-visible {
  bottom: 0;
}
.sk-naruto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (min-width: 768px) {
  .sk-naruto { width: 350px; height: 440px; right: 8%; }
}
@media (max-width: 640px) {
  .sk-naruto { width: 180px; height: 225px; right: 2%; }
}

/* ── Header actions (account + socials + hamburger) ─────── */
.sk-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* ── Account dropdown ────────────────────────────────────── */
.sk-account {
  position: relative;
}
.sk-account__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.sk-account__toggle:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  background: rgba(201, 168, 76, 0.08);
}
.sk-account__icon {
  width: 22px;
  height: 22px;
}
.sk-account__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-orange);
}
.sk-account__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 200;
  overflow: hidden;
}
.sk-account.is-open .sk-account__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sk-account__dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-base);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
  border-bottom: 1px solid var(--border-subtle);
}
.sk-account__dropdown-item:last-child {
  border-bottom: none;
}
.sk-account__dropdown-item:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--brand-orange);
}
