/* ============================================================
   Showcase Pages — Authors & Artists
   Horizontal card layout — image left, info right
   Category-colored accents
   ============================================================ */

:root {
  --sc-text: #1a1a1a;
  --sc-text-secondary: #666;
  --sc-text-muted: #999;
  --sc-bg: #fafaf8;
  --sc-card-bg: #fff;
  --sc-card-border: #eae8e3;
  --sc-serif: 'Playfair Display', 'IBM Plex Serif', Georgia, serif;
  --sc-sans: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark {
  --sc-text: #e8e6e1;
  --sc-text-secondary: #9a9590;
  --sc-text-muted: #6b6660;
  --sc-bg: #131416;
  --sc-card-bg: #1c1d21;
  --sc-card-border: #2a2b30;
}

/* Category accent colors — set via data-category on the card */
.sc-card[data-category="anime"] {
  --sc-cat: #c9a84c;
  --sc-cat-soft: #faf4e4;
  --sc-cat-dark: #d4af5a;
}

.sc-card[data-category="games"],
.sc-card[data-category="game"] {
  --sc-cat: #4a9fd4;
  --sc-cat-soft: #e8f4fc;
  --sc-cat-dark: #7dbde8;
}

.sc-card[data-category="technology"] {
  --sc-cat: #c22248;
  --sc-cat-soft: #fce8ed;
  --sc-cat-dark: #e04a6a;
}

.sc-card[data-category="finance"] {
  --sc-cat: #3f8a55;
  --sc-cat-soft: #e6f4ea;
  --sc-cat-dark: #5fb876;
}

.sc-card[data-category="unskripted"] {
  --sc-cat: #8b7ad6;
  --sc-cat-soft: #eeebfa;
  --sc-cat-dark: #b0a3e8;
}

.sc-card[data-category="manga"] {
  --sc-cat: #d94a68;
  --sc-cat-soft: #fce8ed;
  --sc-cat-dark: #e87590;
}

/* Fallback */
.sc-card {
  --sc-cat: #888;
  --sc-cat-soft: #f0f0f0;
  --sc-cat-dark: #aaa;
}

/* Dark mode: use the brighter variant */
body.dark .sc-card[data-category="anime"] {
  --sc-cat: #d4af5a;
}

body.dark .sc-card[data-category="games"],
body.dark .sc-card[data-category="game"] {
  --sc-cat: #7dbde8;
}

body.dark .sc-card[data-category="technology"] {
  --sc-cat: #e04a6a;
}

body.dark .sc-card[data-category="finance"] {
  --sc-cat: #5fb876;
}

body.dark .sc-card[data-category="unskripted"] {
  --sc-cat: #b0a3e8;
}

body.dark .sc-card[data-category="manga"] {
  --sc-cat: #e87590;
}

/* ---- Page ---- */
.sc-page {
  background: var(--sc-bg);
  min-height: 100vh;
}

/* ---- Header ---- */
.sc-header {
  padding: 100px 0 50px;
  text-align: center;
}

.sc-header__label {
  display: inline-block;
  font-family: var(--sc-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}

.sc-header__title {
  font-family: var(--sc-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--sc-text);
  margin: 0 0 16px;
  line-height: 1.1;
}

.sc-header__subtitle {
  font-family: var(--sc-sans);
  font-size: 16px;
  color: var(--sc-text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.sc-header__line {
  width: 48px;
  height: 2px;
  background: #c9a84c;
  margin: 32px auto 0;
}

/* ---- Grid ---- */
.sc-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---- Card (horizontal) ---- */
.sc-card {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-card-border);
  text-decoration: none !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--sc-cat);
}

body.dark .sc-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* ---- Image Side ---- */
.sc-card__image {
  width: 190px;
  min-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.sc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-card:hover .sc-card__image img {
  transform: scale(1.08);
}

/* ---- Footer action with arrow ---- */
.sc-card__footer {
  margin-top: auto;
  padding-top: 8px;
}

.sc-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sc-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sc-cat);
  transition: gap 0.3s ease;
}

.sc-card:hover .sc-card__action {
  gap: 12px;
}

.sc-card__action-arrow {
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--sc-cat);
  position: relative;
  transition: width 0.3s ease;
}

.sc-card__action-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--sc-cat);
  border-right: 1.5px solid var(--sc-cat);
}

.sc-card:hover .sc-card__action-arrow {
  width: 28px;
}

/* ---- Info Side ---- */
.sc-card__body {
  flex: 1;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* Category badge — top right of body */
.sc-card__category {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--sc-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sc-cat);
  background: var(--sc-cat-soft);
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
}

body.dark .sc-card__category {
  background: rgba(255, 255, 255, 0.08);
}

.sc-card__name {
  font-family: var(--sc-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--sc-text);
  margin: 0 0 2px;
  line-height: 1.3;
  padding-right: 80px;
}

.sc-card__handle {
  font-family: var(--sc-sans);
  font-size: 13px;
  color: var(--sc-text-muted);
  margin-bottom: 8px;
  display: block;
}

.sc-card__bio {
  font-family: var(--sc-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--sc-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ---- Empty State ---- */
.sc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.sc-empty__icon {
  font-size: 48px;
  color: var(--sc-card-border);
  margin-bottom: 16px;
}

.sc-empty__text {
  font-family: var(--sc-serif);
  font-size: 18px;
  color: var(--sc-text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sc-header {
    padding: 80px 0 36px;
  }

  .sc-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    padding: 30px 16px 60px;
    gap: 20px;
  }

  .sc-card__image {
    width: 150px;
    min-height: 190px;
  }

  .sc-card__body {
    padding: 18px 18px;
  }

  .sc-card__name {
    font-size: 18px;
    padding-right: 70px;
  }

  .sc-card__bio {
    -webkit-line-clamp: 5;
  }

  .sc-card__action-arrow {
    width: 24px;
  }
}

@media (max-width: 420px) {
  .sc-card__image {
    width: 120px;
    min-height: 170px;
  }

  .sc-card__body {
    padding: 12px 12px;
  }

  .sc-card__name {
    font-size: 15px;
    padding-right: 56px;
    margin: 0 0 1px;
  }

  .sc-card__handle {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .sc-card__category {
    top: 10px;
    right: 10px;
    font-size: 8px;
    padding: 3px 7px;
  }

  .sc-card__bio {
    -webkit-line-clamp: 4;
    font-size: 12px;
  }

  .sc-card__footer {
    padding-top: 6px;
  }

  .sc-card__action {
    font-size: 10px;
  }

  .sc-card__action-arrow {
    width: 16px;
  }
}