/*
Theme Name: FlyPHX Dawn
Description: Dawn sky aviation blog theme — Hello Elementor child
Author: FlyPHX
Version: 2.0
Template: hello-elementor
Text Domain: flyphx-dawn
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --sky-deep:    #020818;
  --sky-mid:     #04122e;
  --accent:      #7ec8f4;
  --gold:        #f0c060;
  --white:       #f0f6ff;
  --body-text:   #c8ddf0;
  --muted:       #8ab4d4;
  --card-bg:     rgba(5,25,60,0.60);
  --card-border: rgba(126,200,244,0.18);
  --radius:      16px;
  --font-head:   'Lora', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --read-width:  680px;
  --wide-width:  1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  background: var(--sky-deep);
  color: var(--body-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#flyphx-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.elementor-section, .elementor-container,
#page, .site-content, .entry-content, article {
  position: relative; z-index: 10;
}

h1,h2,h3,h4 { color: var(--white); line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }

/* NAV */
.site-header, .elementor-location-header {
  background: linear-gradient(to bottom, rgba(2,8,24,.9), transparent) !important;
  backdrop-filter: blur(4px);
  position: fixed !important;
  top: 0; left: 0; right: 0; z-index: 200;
}
.site-navigation a, .elementor-nav-menu a {
  color: var(--muted) !important;
  font-size: .9rem; letter-spacing: .05em; transition: color .2s;
}
.site-navigation a:hover, .elementor-nav-menu a:hover { color: var(--white) !important; }

.site-title a, .elementor-site-title a {
  font-weight: 900; font-size: 1.5rem; letter-spacing: .08em;
  background: linear-gradient(90deg, var(--accent), var(--white), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.elementor-button {
  border-radius: 40px !important; font-weight: 600 !important;
  letter-spacing: .04em !important; transition: transform .25s, box-shadow .25s !important;
}
.elementor-button--primary {
  background: linear-gradient(135deg,#1a6fba,#0a3d7a) !important;
  border: 1px solid rgba(126,200,244,.3) !important;
  box-shadow: 0 4px 24px rgba(30,111,186,.45) !important;
}
.elementor-button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(30,111,186,.6) !important;
}

/* GLASS CARD — Elementor 위젯 CSS Class에 "fp-card" 입력 */
.fp-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius) !important;
  backdrop-filter: blur(12px) !important;
  padding: 28px !important;
  transition: transform .3s, box-shadow .3s !important;
}
.fp-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.5) !important;
}

/* HERO TITLE — Elementor Heading CSS Class에 "fp-hero-title" 입력 */
.fp-hero-title .elementor-heading-title {
  font-family: var(--font-head) !important;
  font-size: clamp(3rem,10vw,7rem) !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg,#7ec8f4 0%,#f0f6ff 40%,#f0c060 100%);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 40px rgba(126,200,244,.35));
}

/* POST CARDS */
.fp-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px; padding: 20px 0;
}
.fp-post-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); backdrop-filter: blur(12px);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  text-decoration: none; display: block; color: inherit;
}
.fp-post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.5); color: inherit; }
.fp-post-card__thumb img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .4s; }
.fp-post-card:hover .fp-post-card__thumb img { transform: scale(1.04); }
.fp-post-card__body { padding: 22px; }
.fp-post-card__cat { font-size: .72rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.fp-post-card__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.fp-post-card__excerpt { font-size: .875rem; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fp-post-card__meta { font-size: .78rem; color: var(--muted); margin-top: 14px; opacity: .7; }

/* ARCHIVE */
.fp-archive { max-width: var(--wide-width); margin: 120px auto 80px; padding: 0 24px; }
.fp-archive__label { font-size: .75rem; letter-spacing: .28em; color: var(--accent); text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.fp-archive__title { font-family: var(--font-head); font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 700; color: var(--white); margin-bottom: 48px; }

/* PAGINATION */
.fp-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.fp-pagination a, .fp-pagination span { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--muted); font-size: .85rem; backdrop-filter: blur(8px); transition: .2s; }
.fp-pagination a:hover, .fp-pagination .current { background: rgba(126,200,244,.15); color: var(--white); border-color: var(--accent); }

/* FOOTER */
.site-footer, .elementor-location-footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--card-border);
  padding: 50px 40px; text-align: center;
  background: linear-gradient(to top, rgba(2,8,24,.92), transparent);
}
.site-footer p { color: var(--muted); font-size: .85rem; }

@media (max-width: 640px) {
  .fp-archive { margin-top: 80px; }
  .site-footer { padding: 40px 20px; }
}

/* ── 로고 크기 제한 ── */
.site-header img,
.elementor-location-header img,
.custom-logo,
header img {
  max-height: 48px !important;
  width: auto !important;
}

/* ── 헤더 레이아웃 정리 ── */
.elementor-location-header .elementor-section {
  background: transparent !important;
}

/* ── 기존 Elementor 푸터 로고 숨기기 ── */
.elementor-location-footer img {
  max-height: 60px !important;
  width: auto !important;
}


/* ── 카드 텍스트 강제 표시 ── */
.fp-post-card__title {
  color: #f0f6ff !important;
  font-size: 1.1rem !important;
}
.fp-post-card__cat {
  color: #7ec8f4 !important;
}
.fp-post-card__meta {
  color: #8ab4d4 !important;
  opacity: 1 !important;
}
.fp-post-card {
  background: rgba(5,25,60,0.75) !important;
  border: 1px solid rgba(126,200,244,0.25) !important;
}

/* ── 페이지 하단 흰색 전환 배경 ── */
body::after {
  content: '';
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 35vh;
  background: linear-gradient(to bottom, transparent, rgba(240,246,255,0.06) 60%, rgba(220,235,255,0.12));
  pointer-events: none;
  z-index: 1;
}

/* ── 콘텐츠 영역 하단 페이드 배경 ── */
.fp-archive {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10,30,70,0.3) 30%,
    rgba(20,50,100,0.5) 70%,
    rgba(240,246,255,0.85) 100%
  );
  border-radius: 24px;
  padding: 40px 40px 80px !important;
}

/* ── 하단 콘텐츠에서 텍스트 색상 자동 전환 ── */
.fp-archive__title,
.fp-archive__label {
  color: #f0f6ff;
}