/*
Theme Name: Astra Child
Template: astra
Version: 1.1
Description: Asinayo Astra child theme — Netflix Dark Cinematic
*/

/* =============================================
   1. 다크 팔레트 변수
   ============================================= */
:root {
  --bg:       #0d0d0d;
  --surface:  #161616;
  --surface2: #1e1e1e;
  --gold:     #E8A020;
  --gold-dim: rgba(232,160,32,0.15);
  --white:    #ffffff;
  --grey:     #999999;
  --grey2:    #444444;
  --shadow:   0 8px 40px rgba(0,0,0,0.7);
  --radius:   10px;
}

html, body {
  background: var(--bg) !important;
  color: var(--white) !important;
}

/* =============================================
   2. 헤더 — 다크
   ============================================= */
.site-header,
.ast-primary-header-bar,
#masthead {
  background: #000 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: none !important;
}

.main-header-menu .menu-link,
.ast-header-custom-item a,
.site-title a,
.ast-site-identity a {
  color: var(--white) !important;
  font-weight: 700;
  transition: color 0.2s;
}

.main-header-menu .menu-link:hover,
.ast-header-custom-item a:hover {
  color: var(--gold) !important;
}

.main-header-menu .current-menu-item > .menu-link {
  color: var(--gold) !important;
}

/* =============================================
   3. 홈 히어로 — OTT 시네마틱
   ============================================= */
.asinayo-home-hero {
  position: relative;
  min-height: 88vh;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  margin-bottom: 0;
}

.asinayo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.20) 30%,
    rgba(0,0,0,0.68) 65%,
    #0d0d0d 100%
  );
  z-index: 1;
}

.asinayo-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 56px 76px;
  max-width: 700px;
  text-align: left;
}

.asinayo-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.asinayo-home-hero h1 {
  font-size: clamp(42px, 6.5vw, 80px);
  line-height: 1.06;
  font-weight: 900;
  margin: 0 0 18px;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  word-break: keep-all;
}

.asinayo-subtitle {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .asinayo-home-hero {
    min-height: 72vh;
    background-position: 60% 10%;
  }
  .asinayo-hero-inner {
    padding: 0 22px 52px;
  }
  .asinayo-home-hero h1 {
    font-size: clamp(34px, 9vw, 52px);
  }
}

/* =============================================
   4. 콘텐츠 허브 컨테이너
   ============================================= */
.asinayo-hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 36px 80px;
  background: var(--bg);
}

/* =============================================
   5. 섹션 타이틀 행
   ============================================= */
.asinayo-hub-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 18px;
}

.asinayo-hub-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
}

.asinayo-hub-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-left: auto;
  transition: color 0.2s;
  white-space: nowrap;
}

.asinayo-hub-more:hover {
  color: var(--white);
}

/* =============================================
   6. 카드 그리드 — 포스터 비율
   ============================================= */
.asinayo-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

/* =============================================
   7. 카드 — 이미지 풀블리드 + 텍스트 오버레이
   ============================================= */
.asinayo-hub-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.asinayo-hub-card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 24px 64px rgba(0,0,0,0.85);
}

/* 링크 = 카드 전체 영역 */
.asinayo-hub-card-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
}

/* 썸네일 이미지 */
.asinayo-hub-card-link img,
.asinayo-hub-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.asinayo-hub-card:hover .asinayo-hub-card-link img,
.asinayo-hub-card:hover .asinayo-hub-card-img-el {
  transform: scale(1.09);
}

/* 이미지 없을 때 플레이스홀더 */
.asinayo-hub-card-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    #1a1a2e 0%,
    #16213e 45%,
    #0f3460 100%
  );
}

/* 텍스트 오버레이 */
.asinayo-hub-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 56px 14px 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.62) 50%,
    transparent 100%
  );
}

/* 카테고리 레이블 */
.asinayo-hub-cat {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* 카드 제목 — 최대 2줄 */
.asinayo-hub-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.44;
  color: var(--white);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}

/* =============================================
   8. 반응형 — 모바일 수평 스크롤 (넷플릭스)
   ============================================= */
@media (max-width: 1100px) {
  .asinayo-hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
}

@media (max-width: 768px) {
  .asinayo-hub {
    padding: 16px 16px 60px;
  }

  .asinayo-hub-title-row {
    margin: 42px 0 14px;
  }

  .asinayo-hub-title {
    font-size: 17px;
  }

  /* 모바일: 가로 스크롤 Netflix 스타일 */
  .asinayo-hub-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .asinayo-hub-grid::-webkit-scrollbar {
    display: none;
  }

  .asinayo-hub-card {
    flex: 0 0 44vw;
    max-width: 44vw;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .asinayo-hub-card {
    flex: 0 0 54vw;
    max-width: 54vw;
  }
}

/* =============================================
   9. Astra 레이아웃 충돌 수정
   ============================================= */
.blog .ast-row > .asinayo-hub,
.archive .ast-row > .asinayo-hub {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.asinayo-hub,
.asinayo-hub-section,
.asinayo-hub-grid,
.asinayo-hub-card,
.asinayo-hub-card-link,
.asinayo-hub-card-overlay {
  min-width: 0;
}

/* Astra 기본 루프 display 재정의 (홈에서 suppressed) */
.blog .ast-row,
.archive .ast-row {
  display: block !important;
}

/* =============================================
   10. 콘텐츠 배경 — 다크 전역
   ============================================= */
#content,
#primary,
.site-content,
.ast-container,
.entry-content-wrap,
.ast-article-single,
.ast-article-post,
.ast-blog-layout-1,
.ast-blog-layout-2 {
  background: var(--bg) !important;
}

/* =============================================
   11. 포스트 본문 — 다크
   ============================================= */
.entry-title,
.page-title {
  color: var(--white) !important;
}

.entry-content,
.entry-content p {
  color: rgba(255,255,255,0.84) !important;
  line-height: 1.9;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--white) !important;
}

.entry-content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

.entry-content figcaption {
  color: var(--grey);
  font-size: 13px;
}

/* =============================================
   12. 메타 정보
   ============================================= */
.entry-meta,
.posted-on,
.byline,
.ast-post-meta-wrap,
.ast-post-meta-wrap a {
  color: var(--grey) !important;
}

/* =============================================
   13. 푸터
   ============================================= */
.site-footer,
#colophon {
  background: #000 !important;
  color: var(--grey) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}

.site-footer a,
#colophon a {
  color: var(--grey) !important;
  transition: color 0.2s;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--white) !important;
}

/* =============================================
   14. 링크
   ============================================= */
a {
  color: var(--gold);
}

a:hover {
  color: var(--white);
}

/* =============================================
   15. 댓글
   ============================================= */
.comments-area,
.comment-respond,
#respond {
  background: var(--surface) !important;
  border-radius: var(--radius);
  padding: 28px !important;
  margin-top: 40px;
}

.comments-area h2,
.comment-respond h3,
#respond h3 {
  color: var(--white) !important;
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  background: var(--surface2) !important;
  border: 1px solid var(--grey2) !important;
  color: var(--white) !important;
  border-radius: 6px;
}

.comment-form-comment textarea::placeholder,
.comment-form input::placeholder {
  color: var(--grey) !important;
}

.comment-form .submit {
  background: var(--gold) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 10px 28px !important;
  cursor: pointer;
}

/* =============================================
   16. 아카이브 / 카테고리 페이지 카드
   ============================================= */
.ast-article-post {
  background: var(--surface) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
  transition: transform 0.22s, box-shadow 0.22s;
}

.ast-article-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
}

.ast-article-post .entry-title a {
  color: var(--white) !important;
}

.ast-article-post .entry-title a:hover {
  color: var(--gold) !important;
}

.ast-article-post .entry-summary p,
.ast-article-post .entry-content p {
  color: var(--grey) !important;
}

/* 카드 이미지 16:9 */
.ast-article-post .post-thumb-img-content,
.ast-article-post .ast-blog-featured-section {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ast-article-post .post-thumb-img-content img,
.ast-article-post .ast-blog-featured-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   17. Astra 기본 UI 다크 보정
   ============================================= */
.ast-page-builder-template,
.ast-breadcrumbs-nav,
.ast-breadcrumbs {
  background: var(--bg) !important;
  color: var(--grey) !important;
}

.ast-breadcrumbs a {
  color: var(--grey) !important;
}

.post-navigation img,
.navigation.post-navigation img {
  display: none !important;
}
