/* ==================================================
   Sikika Dark Theme
   다크 네이비 + 신뢰감 있는 블루 포인트
================================================== */

body.wp-theme-sikika {
    /* 전체 페이지 */
    --site-bg-color: #0a0f1a;
    --site-text-color: #dbe3ee;

    /* 헤더 */
    --header-bg-color: #0d1422;
    --header-text-color: #f8fafc;

    /* 메뉴 */
    --menu-item-color: #b8c4d4;
    --menu-item-hover-color: #ffffff;
    --menu-item-font-size: 15px;
    --menu-item-font-weight: 500;
    --submenu-bg-color: #121c2d;

    /* 상단 Hero 영역 */
    --hero-gradient-start-color: #0d1422;
    --hero-gradient-end-color: #15264a;
    --hero-highlight-color: #38bdf8;
    --hero-text-color: #f8fafc;
    --hero-dim-color: #94a3b8;

    /* 푸터 */
    --footer-bg-color: #070b12;
    --footer-text-color: #94a3b8;

    /* 일반 링크 */
    --link-color: #60a5fa;
    --link-hover-color: #93c5fd;

    /* 버튼 */
    --button-bg-color: #2563eb;
    --button-text-color: #ffffff;
    --button-hover-bg-color: #1d4ed8;
    --button-hover-text-color: #ffffff;
    --button-border-color: #3b82f6;

    --button-shadow:
        0 10px 24px rgb(37 99 235 / 34%),
        0 2px 8px rgb(0 0 0 / 45%);
}
/*
 * Sikika Child - SiteTierList styles
 *
 * 카드/메인 섹션/히어로/상세 페이지/하단 고정바 전용 스타일.
 * PokaTheme 전용 헤더와 의존성은 제거하고 Sikika에서 충돌하지 않도록
 * stl- 접두사 범위 안에서만 동작하도록 정리했습니다.
 */

/* =============================================================================
   0. Module variables and Sikika-safe reset
   ============================================================================= */

:root {
  --stl-card-bg: #ffffff;
  --stl-card-border: #e5e7eb;
  --stl-card-muted-border: #f1f5f9;
  --stl-card-text: #4b5563;
  --stl-card-label-bg: #252525;
  --stl-card-label-text: #ffffff;
  --stl-code-color: #ef4444;
  --stl-detail-color: #111111;
  --stl-go-color: #ef4444;
  --stl-logo-bg: #050505;
  --stl-logo-border: #d8ca73;
  --stl-hero-start: #111827;
  --stl-hero-end: #2451d6;
  --stl-fixed-bar-bg: #eef3f8;
  --stl-fixed-bar-border: #dfe7ef;
  --stl-fixed-button-bg: #41bf4b;
}

.stl-site-card-grid,
.stl-site-card-grid *,
.stl-site-card,
.stl-site-card *,
.stl-main-section,
.stl-main-section *,
.stl-hero-banner,
.stl-hero-banner *,
.stl-single-site,
.stl-single-site *,
.stl-bottom-fixed-review,
.stl-bottom-fixed-review * {
  box-sizing: border-box;
}

.stl-site-card-grid,
.stl-main-section,
.stl-hero-banner,
.stl-single-site,
.stl-bottom-fixed-review {
  font-family: inherit;
}

.stl-site-card a,
.stl-hero-banner a,
.stl-bottom-fixed-review a {
  text-decoration: none !important;
}

.stl-site-card img,
.stl-single-site img,
.stl-bottom-fixed-review img {
  max-width: 100%;
  margin: 0;
  border: 0;
}

/* =============================================================================
   1. SiteTierList card grid
   ============================================================================= */

.stl-site-card-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 24px 0;
}

.stl-site-card-grid--cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stl-site-card-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stl-site-card-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stl-site-card-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stl-site-card-grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .stl-site-card-grid,
  .stl-site-card-grid--cols-4,
  .stl-site-card-grid--cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stl-site-card-grid,
  .stl-site-card-grid--cols-3,
  .stl-site-card-grid--cols-4,
  .stl-site-card-grid--cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stl-site-card-grid,
  .stl-site-card-grid--cols-1,
  .stl-site-card-grid--cols-2,
  .stl-site-card-grid--cols-3,
  .stl-site-card-grid--cols-4,
  .stl-site-card-grid--cols-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =============================================================================
   2. Individual card
   ============================================================================= */

.stl-site-card {
  display: flex;
  width: 100%;
  max-width: 370px;
  min-width: 0;
  height: auto;
  margin: 0 auto;
  padding: 0 0 12px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stl-card-border);
  border-radius: 9px;
  background: var(--stl-card-bg);
  box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
  color: var(--stl-card-text);
  isolation: isolate;
}

.stl-site-card-grid .stl-site-card {
  max-width: 100%;
  height: 100%;
}

.stl-site-card__logo-wrap {
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--stl-card-muted-border);
  background: var(--stl-card-bg);
}

.stl-site-card__logo-box {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1.24 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--stl-logo-border);
  background: var(--stl-logo-bg);
  box-shadow:
    inset 0 0 24px rgb(255 238 121 / 32%),
    0 2px 10px rgb(0 0 0 / 8%);
}

.stl-site-card__logo-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
  line-height: 0;
}

.stl-site-card__logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-position: center;
  transition: transform 220ms ease;
}

.stl-site-card:hover .stl-site-card__logo-box img {
  transform: scale(1.018);
}

.stl-site-card--fit-cover .stl-site-card__logo-box img {
  object-fit: cover;
}

.stl-site-card--fit-contain .stl-site-card__logo-box img {
  object-fit: contain;
  background: var(--stl-logo-bg);
}

.stl-site-card__logo-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgb(255 238 121 / 24%), transparent 22%),
    radial-gradient(circle at 80% 20%, rgb(255 238 121 / 12%), transparent 22%),
    linear-gradient(135deg, #050505, #111827);
  color: #f9e27b;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-align: center;
  word-break: keep-all;
}

/* =============================================================================
   3. Card information table
   ============================================================================= */

.stl-site-card__info {
  margin: 0 16px 12px;
  overflow: hidden;
  border: 1px solid var(--stl-card-border);
  border-radius: 7px;
  background: var(--stl-card-bg);
}

.stl-site-card__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 42px;
}

.stl-site-card__row + .stl-site-card__row {
  border-top: 1px solid var(--stl-card-border);
}

.stl-site-card__label,
.stl-site-card__value {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.stl-site-card__label {
  background: var(--stl-card-label-bg);
  color: var(--stl-card-label-text);
}

.stl-site-card__value {
  background: var(--stl-card-bg);
  color: var(--stl-card-text);
  overflow-wrap: anywhere;
}

.stl-site-card__value--code {
  color: var(--stl-code-color);
  font-size: 18px;
  font-weight: 900;
}

/* =============================================================================
   4. Card action buttons
   ============================================================================= */

.stl-site-card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
  padding: 0 16px;
}

.stl-site-card__btn {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  word-break: keep-all;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.stl-site-card__btn:hover,
.stl-site-card__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(15 23 42 / 12%);
}

.stl-site-card__btn:focus-visible {
  outline: 3px solid rgb(37 99 235 / 35%);
  outline-offset: 2px;
}

.stl-site-card__btn--detail {
  border: 2px solid var(--stl-detail-color);
  background: #ffffff;
  color: var(--stl-detail-color) !important;
}

.stl-site-card__btn--detail:hover,
.stl-site-card__btn--detail:focus-visible {
  border-color: var(--stl-detail-color);
  background: var(--stl-detail-color);
  color: #ffffff !important;
}

.stl-site-card__btn--go {
  border: 2px solid var(--stl-go-color);
  background: #ffffff;
  color: var(--stl-go-color) !important;
}

.stl-site-card__btn--go:hover,
.stl-site-card__btn--go:focus-visible {
  border-color: var(--stl-go-color);
  background: var(--stl-go-color);
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .stl-site-card {
    max-width: 100%;
    border-radius: 8px;
  }

  .stl-site-card__logo-wrap {
    padding: 12px 12px 8px;
  }

  .stl-site-card__info {
    margin: 0 12px 10px;
  }

  .stl-site-card__row {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 40px;
  }

  .stl-site-card__label,
  .stl-site-card__value {
    font-size: 15px;
  }

  .stl-site-card__value--code {
    font-size: 17px;
  }

  .stl-site-card__actions {
    padding: 0 12px;
  }

  .stl-site-card__btn {
    min-height: 46px;
    font-size: 17px;
  }
}

/* =============================================================================
   5. Main page sections
   ============================================================================= */

.stl-main-section {
  width: 100%;
  margin: 34px 0 42px;
  color: var(--site-text-color, #111827);
}

.stl-main-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.stl-main-section__head h2 {
  margin: 0 !important;
  color: var(--site-text-color, #111827) !important;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.stl-main-section .stl-site-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.stl-main-section .stl-site-card:hover {
  transform: translateY(-5px);
  border-color: #d1d5db;
  box-shadow: 0 18px 38px rgb(15 23 42 / 14%);
}

@media (max-width: 560px) {
  .stl-main-section {
    margin: 26px 0 34px;
  }

  .stl-main-section__head h2 {
    font-size: 22px;
  }
}

/* =============================================================================
   6. Hero banner
   ============================================================================= */

.stl-hero-banner {
  width: 100%;
  margin: 24px 0 36px;
  padding: 42px 44px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--stl-hero-start), var(--stl-hero-end));
  box-shadow: 0 20px 45px rgb(15 23 42 / 16%);
  color: #ffffff;
}

.stl-hero-banner__content {
  position: relative;
  z-index: 1;
}

.stl-hero-banner h1 {
  margin: 0 0 14px !important;
  color: #ffffff !important;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.stl-hero-banner p {
  max-width: 760px;
  margin: 0 !important;
  color: #dbeafe !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.stl-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stl-hero-banner__btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.stl-hero-banner__btn:focus-visible {
  outline: 3px solid rgb(255 255 255 / 55%);
  outline-offset: 3px;
}

.stl-hero-banner__btn--primary {
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #111827 !important;
}

.stl-hero-banner__btn--primary:hover,
.stl-hero-banner__btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgb(0 0 0 / 18%);
}

.stl-hero-banner__btn--secondary {
  border: 2px solid rgb(255 255 255 / 55%);
  background: transparent;
  color: #ffffff !important;
}

.stl-hero-banner__btn--secondary:hover,
.stl-hero-banner__btn--secondary:focus-visible {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 12%);
}

@media (max-width: 560px) {
  .stl-hero-banner {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .stl-hero-banner h1 {
    font-size: 28px;
  }

  .stl-hero-banner p {
    font-size: 15px;
  }

  .stl-hero-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stl-hero-banner__btn {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

#stl-section-top,
#stl-section-verify {
  scroll-margin-top: 90px;
}

/* =============================================================================
   7. Single stl_site detail page
   ============================================================================= */

body.single-stl_site .stl-single-site {
  width: 100%;
  padding: 45px 0 120px;
  background: var(--site-bg-color, #ffffff);
  color: var(--site-text-color, #111827);
}

body.single-stl_site .stl-single-site__inner {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

body.single-stl_site .stl-single-site__title {
  margin: 0 0 28px;
  color: var(--site-text-color, #111827);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
}

body.single-stl_site .stl-single-site__thumb {
  margin: 0 0 32px;
}

body.single-stl_site .stl-single-site__thumb img {
  display: block;
  width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border-radius: 14px;
}

body.single-stl_site .stl-single-site__content {
  color: var(--site-text-color, #111827);
  font-size: 18px;
  line-height: 1.8;
}

body.single-stl_site .stl-single-site__content img {
  display: block;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

/* Sikika 기본 단일 템플릿을 사용하는 경우의 폭 보정 */
body.single-stl_site .entry-title,
body.single-stl_site .post-title,
body.single-stl_site .wp-block-post-title,
body.single-stl_site main > h1 {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.single-stl_site .entry-content,
body.single-stl_site .post-content,
body.single-stl_site .site-main > article,
body.single-stl_site main > article {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.single-stl_site .entry-content img,
body.single-stl_site .post-content img {
  display: block;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 768px) {
  body.single-stl_site .stl-single-site {
    padding: 30px 0 100px;
  }

  body.single-stl_site .stl-single-site__title {
    font-size: 32px;
  }

  body.single-stl_site .stl-single-site__content {
    font-size: 16px;
  }
}

/* =============================================================================
   8. Bottom fixed review/join bar
   ============================================================================= */

body.single-stl_site {
  padding-bottom: 110px;
}

body.single-stl_site .stl-bottom-fixed-review {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: block !important;
  width: 100%;
  padding: 15px 0;
  border-top: 1px solid var(--stl-fixed-bar-border);
  background: var(--stl-fixed-bar-bg);
  box-shadow: 0 -6px 22px rgb(15 23 42 / 12%);
}

body.single-stl_site .stl-bottom-fixed-review .container {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.stl-bottom-fixed-review__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.stl-bottom-fixed-review__brand {
  display: flex;
  width: 110px;
  flex: 0 0 110px;
  align-items: center;
  justify-content: center;
}

.stl-bottom-fixed-review__brand img {
  display: block;
  max-height: 46px;
  object-fit: contain;
}

.stl-bottom-fixed-review__brand strong {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.stl-bottom-fixed-review__info {
  min-width: 0;
  flex: 1;
}

.stl-bottom-fixed-review__name {
  color: #334155;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.stl-bottom-fixed-review__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.stl-bottom-fixed-review__code span {
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}

.stl-bottom-fixed-review__code strong {
  color: #ff3333;
  font-size: 22px;
  font-weight: 900;
}

.stl-bottom-fixed-review__btn {
  display: inline-flex;
  min-width: 124px;
  height: 68px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 20px;
  background: var(--stl-fixed-button-bg);
  color: #ffffff !important;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.stl-bottom-fixed-review__btn:hover,
.stl-bottom-fixed-review__btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.96);
  box-shadow: 0 8px 18px rgb(15 23 42 / 18%);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  body.single-stl_site {
    padding-bottom: 95px;
  }

  body.single-stl_site .stl-bottom-fixed-review {
    padding: 12px 0;
  }

  body.single-stl_site .stl-bottom-fixed-review .container {
    width: calc(100% - 24px);
  }

  .stl-bottom-fixed-review__inner {
    gap: 12px;
  }

  .stl-bottom-fixed-review__brand {
    width: 74px;
    flex-basis: 74px;
  }

  .stl-bottom-fixed-review__brand img {
    max-height: 34px;
  }

  .stl-bottom-fixed-review__name {
    font-size: 20px;
  }

  .stl-bottom-fixed-review__code span {
    font-size: 13px;
  }

  .stl-bottom-fixed-review__code strong {
    font-size: 18px;
  }

  .stl-bottom-fixed-review__btn {
    min-width: 92px;
    height: 56px;
    padding: 0 20px;
    border-radius: 16px;
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .stl-bottom-fixed-review__brand {
    display: none;
  }

  .stl-bottom-fixed-review__name {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stl-bottom-fixed-review__btn {
    min-width: 82px;
    height: 50px;
    padding: 0 14px;
    font-size: 19px;
  }
}

/* =============================================================================
   9. Accessibility / reduced motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stl-site-card,
  .stl-site-card__logo-box img,
  .stl-site-card__btn,
  .stl-hero-banner__btn,
  .stl-bottom-fixed-review__btn {
    transition: none !important;
  }
}
/* ==================================================
   SiteTierList - Sikika 톤 통일
================================================== */

.stl-site-card {
    background: #f8fafc;
    border: 1px solid #253451;
    border-radius: 15px;
    box-shadow:
        0 16px 36px rgb(0 0 0 / 28%),
        0 0 0 1px rgb(255 255 255 / 3%);
}

.stl-site-card__logo-wrap {
    background: #f8fafc;
    border-bottom-color: #dbe3ee;
}

/* 골드를 유지하되 조금 차분하게 */
.stl-site-card__logo-box {
    border-color: #c7aa55;
    box-shadow:
        inset 0 0 20px rgb(199 170 85 / 18%),
        0 3px 12px rgb(15 23 42 / 16%);
}

/* 순수 검정 대신 홈페이지 네이비 */
.stl-site-card__label {
    background: #14213d;
    color: #ffffff;
}

.stl-site-card__value {
    background: #f8fafc;
    color: #334155;
}

/* 가입코드는 골드 포인트 */
.stl-site-card__value--code {
    color: #b98527;
}

/* 상세보기 */
.stl-site-card__btn--detail {
    border-color: #14213d;
    background: #ffffff;
    color: #14213d !important;
}

.stl-site-card__btn--detail:hover {
    border-color: #14213d;
    background: #14213d;
    color: #ffffff !important;
}

/* 가입하기: 빨강 대신 메인 블루 */
.stl-site-card__btn--go {
    border-color: #315bd6;
    background: #315bd6;
    color: #ffffff !important;
}

.stl-site-card__btn--go:hover {
    border-color: #416df0;
    background: #416df0;
    color: #ffffff !important;
}