/*
 Theme Name:   Astra Child - TVWIKI
 Theme URI:    https://asseenontvguys.com
 Description:  TVWIKI SEO 랜딩 차일드 테마 v3
 Author:       TVWIKI
 Template:     astra
 Version:      3.0.0
 Text Domain:  astra-child
*/

/* ===== DESIGN SYSTEM v3 - Slate Blue ===== */
:root {
  --tv-bg: #f8fafc;
  --tv-bg-alt: #f1f5f9;
  --tv-surface: #ffffff;
  --tv-border: #e2e8f0;
  --tv-border-light: #f1f5f9;
  --tv-text: #334155;
  --tv-text-muted: #64748b;
  --tv-heading: #0f172a;
  --tv-primary: #3b82f6;
  --tv-primary-dark: #2563eb;
  --tv-primary-light: #dbeafe;
  --tv-accent: #06b6d4;
  --tv-accent-light: #cffafe;
  --tv-success: #10b981;
  --tv-warning: #f59e0b;
  --tv-danger: #ef4444;
  --tv-hero-from: #0f172a;
  --tv-hero-to: #1e293b;
  --tv-radius: 12px;
  --tv-radius-lg: 16px;
  --tv-radius-xl: 20px;
  --tv-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --tv-shadow-md: 0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.03);
  --tv-shadow-lg: 0 10px 25px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.04);
  --tv-font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --tv-max-w: 1120px;
  --tv-content-w: 780px;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body.tvwiki-page {
  font-family: var(--tv-font) !important;
  background: var(--tv-bg) !important;
  color: var(--tv-text) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Hide WP defaults */
.tvwiki-page .ast-primary-header-bar,
.tvwiki-page header.site-header,
.tvwiki-page .ast-above-header-wrap,
.tvwiki-page .ast-below-header-wrap,
.tvwiki-page .site-footer,
.tvwiki-page .ast-footer-overlay,
.tvwiki-page #ast-scroll-top,
.tvwiki-page .ast-small-footer { display: none !important; }

.tvwiki-page .site-content,
.tvwiki-page .ast-container,
.tvwiki-page #content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

.tvwiki-page .ast-separate-container .ast-article-single,
.tvwiki-page .ast-separate-container .entry-content { 
  max-width: 100% !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
.tvwiki-page .entry-header { display: none !important; }
.tvwiki-page .post-navigation, .tvwiki-page .ast-comment-box { display: none !important; }

/* ===== SITE HEADER ===== */
.tv-header {
  background: var(--tv-hero-from);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tv-header-inner {
  max-width: var(--tv-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.tv-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-logo span { color: var(--tv-primary); }
.tv-nav { display: flex; gap: 8px; align-items: center; }
.tv-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .2s;
}
.tv-nav a:hover, .tv-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.tv-nav-cta {
  background: var(--tv-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}
.tv-nav-cta:hover {
  background: var(--tv-primary-dark) !important;
}

/* Mobile nav */
.tv-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 8px; }
@media (max-width: 768px) {
  .tv-nav-toggle { display: block; }
  .tv-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--tv-hero-from);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .tv-nav.open { display: flex; }
  .tv-nav a { padding: 12px 16px; }
}

/* ===== HERO ===== */
.tv-hero {
  background: linear-gradient(135deg, var(--tv-hero-from) 0%, #1e3a5f 50%, var(--tv-hero-to) 100%);
  padding: 80px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(6,182,212,.1) 0%, transparent 50%);
  pointer-events: none;
}
.tv-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: .3px;
}
.tv-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -.03em;
}
.tv-hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.tv-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tv-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}
.tv-btn-primary {
  background: var(--tv-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,.35);
}
.tv-btn-primary:hover {
  background: var(--tv-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
  color: #fff;
}
.tv-btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.tv-btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.tv-btn-ghost {
  background: transparent;
  color: var(--tv-primary);
  border: 1px solid var(--tv-border);
}
.tv-btn-ghost:hover {
  background: var(--tv-primary-light);
  border-color: var(--tv-primary);
}

/* ===== SECTIONS ===== */
.tv-section {
  padding: 72px 24px;
}
.tv-section-alt {
  background: var(--tv-bg-alt);
}
.tv-section-dark {
  background: var(--tv-hero-from);
  color: rgba(255,255,255,.8);
}
.tv-section-dark h2, .tv-section-dark h3 { color: #fff; }
.tv-section-inner {
  max-width: var(--tv-max-w);
  margin: 0 auto;
}
.tv-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.tv-section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tv-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.tv-section-dark .tv-section-label { color: var(--tv-accent); }

/* ===== TYPOGRAPHY ===== */
.tv-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tv-heading);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.tv-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tv-heading);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.tv-section-subtitle {
  font-size: 1.05rem;
  color: var(--tv-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CARDS ===== */
.tv-card {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  padding: 32px;
  transition: all .3s ease;
}
.tv-card:hover {
  border-color: var(--tv-primary);
  box-shadow: var(--tv-shadow-lg);
  transform: translateY(-2px);
}
.tv-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.tv-card-icon-blue { background: var(--tv-primary-light); color: var(--tv-primary); }
.tv-card-icon-cyan { background: var(--tv-accent-light); color: var(--tv-accent); }
.tv-card-icon-green { background: #d1fae5; color: var(--tv-success); }
.tv-card-icon-amber { background: #fef3c7; color: var(--tv-warning); }

/* ===== GRID ===== */
.tv-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .tv-grid-3 { grid-template-columns: 1fr; }
  .tv-grid-2 { grid-template-columns: 1fr; }
}

/* ===== STATS ===== */
.tv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tv-stat {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--tv-radius);
}
.tv-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tv-stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
@media (max-width: 768px) {
  .tv-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TABLE ===== */
.tv-table-wrap {
  overflow-x: auto;
  border-radius: var(--tv-radius-lg);
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
}
.tv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.tv-table th {
  background: var(--tv-hero-from);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}
.tv-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--tv-border-light);
  color: var(--tv-text);
}
.tv-table tbody tr:hover td { background: #f8fafc; }
.tv-table tbody tr:last-child td { border-bottom: none; }

/* ===== CTA BANNER ===== */
.tv-cta-banner {
  background: linear-gradient(135deg, var(--tv-primary) 0%, #1d4ed8 100%);
  border-radius: var(--tv-radius-xl);
  padding: 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tv-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
}
.tv-cta-banner h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  position: relative;
}
.tv-cta-banner p {
  color: rgba(255,255,255,.8);
  margin: 0 0 28px;
  font-size: 1rem;
  position: relative;
}
.tv-cta-banner .tv-btn {
  background: #fff;
  color: var(--tv-primary-dark);
  position: relative;
}
.tv-cta-banner .tv-btn:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
}

/* ===== FAQ ACCORDION ===== */
.tv-faq details {
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  margin-bottom: 12px;
  background: var(--tv-surface);
  overflow: hidden;
  transition: border-color .2s;
}
.tv-faq details:hover { border-color: var(--tv-primary); }
.tv-faq details[open] { border-color: var(--tv-primary); }
.tv-faq summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s;
  color: var(--tv-heading);
  line-height: 1.5;
}
.tv-faq summary::-webkit-details-marker { display: none; }
.tv-faq summary:hover { background: var(--tv-bg-alt); }
.tv-faq summary::after {
  content: '+';
  font-size: 1.3em;
  font-weight: 400;
  color: var(--tv-text-muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: color .2s;
}
.tv-faq details[open] summary::after {
  content: '\2212';
  color: var(--tv-primary);
}
.tv-faq details[open] summary { background: var(--tv-bg-alt); }
.tv-faq .tv-faq-a {
  padding: 0 24px 20px;
  color: var(--tv-text);
  font-size: .95rem;
  line-height: 1.85;
}

/* ===== INFO BOXES ===== */
.tv-infobox {
  padding: 20px 24px;
  border-radius: var(--tv-radius);
  margin: 24px 0;
  font-size: .95rem;
  line-height: 1.8;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tv-infobox-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.tv-infobox-blue { background: #eff6ff; border-left: 4px solid var(--tv-primary); }
.tv-infobox-green { background: #f0fdf4; border-left: 4px solid var(--tv-success); }
.tv-infobox-amber { background: #fffbeb; border-left: 4px solid var(--tv-warning); }
.tv-infobox-red { background: #fef2f2; border-left: 4px solid var(--tv-danger); }

/* ===== INTERNAL LINK CARD ===== */
.tv-linkcard {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  padding: 24px;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--tv-surface);
  transition: all .25s;
  margin: 24px 0;
}
.tv-linkcard:hover {
  border-color: var(--tv-primary);
  box-shadow: var(--tv-shadow-md);
  transform: translateX(4px);
}
.tv-linkcard-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--tv-primary-light);
  color: var(--tv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tv-linkcard-body { flex: 1; }
.tv-linkcard-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--tv-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tv-linkcard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tv-heading);
  margin: 2px 0;
}
.tv-linkcard-desc {
  font-size: .85rem;
  color: var(--tv-text-muted);
  line-height: 1.5;
}
.tv-linkcard-arrow {
  color: var(--tv-text-muted);
  font-size: 1.2rem;
  transition: transform .2s;
}
.tv-linkcard:hover .tv-linkcard-arrow { transform: translateX(4px); color: var(--tv-primary); }

/* ===== CONTENT ARTICLE ===== */
.tv-article {
  max-width: var(--tv-content-w);
  margin: 0 auto;
  padding: 48px 24px;
}
.tv-article h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--tv-heading);
  margin: 56px 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--tv-border);
  letter-spacing: -.02em;
  line-height: 1.3;
}
.tv-article h2:first-child { margin-top: 0; }
.tv-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tv-heading);
  margin: 40px 0 12px;
  padding-left: 16px;
  border-left: 4px solid var(--tv-primary);
  letter-spacing: -.01em;
}
.tv-article p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--tv-text);
  margin-bottom: 20px;
  word-break: keep-all;
}
.tv-article strong { color: var(--tv-heading); }
.tv-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tv-radius);
  margin: 24px 0;
  box-shadow: var(--tv-shadow-md);
}
.tv-article ul, .tv-article ol { margin: 16px 0 24px 20px; }
.tv-article li {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 8px;
  color: var(--tv-text);
}
.tv-article blockquote {
  background: var(--tv-bg-alt);
  border-left: 4px solid var(--tv-primary);
  border-radius: 0 var(--tv-radius) var(--tv-radius) 0;
  padding: 20px 28px;
  margin: 28px 0;
  font-style: italic;
}
.tv-article blockquote p { color: var(--tv-text-muted); margin-bottom: 0; }

/* ===== BREADCRUMB ===== */
.tv-breadcrumb {
  padding: 16px 24px;
  background: var(--tv-surface);
  border-bottom: 1px solid var(--tv-border);
  font-size: .85rem;
}
.tv-breadcrumb-inner {
  max-width: var(--tv-max-w);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--tv-text-muted);
}
.tv-breadcrumb a {
  color: var(--tv-primary);
  text-decoration: none;
}
.tv-breadcrumb a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.tv-footer {
  background: var(--tv-hero-from);
  color: rgba(255,255,255,.5);
  padding: 48px 24px;
  text-align: center;
  font-size: .85rem;
  line-height: 1.8;
}
.tv-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.tv-footer a:hover { color: #fff; }
.tv-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tv-footer-copy { color: rgba(255,255,255,.35); }

/* ===== STEP LIST ===== */
.tv-steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.tv-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 24px;
  min-height: 40px;
}
.tv-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  background: var(--tv-primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tv-hero { padding: 56px 20px 64px; }
  .tv-hero h1 { font-size: 2rem; }
  .tv-hero-desc { font-size: 1rem; }
  .tv-section { padding: 48px 20px; }
  .tv-section h2 { font-size: 1.6rem; }
  .tv-card { padding: 24px; }
  .tv-cta-banner { padding: 32px 24px; }
  .tv-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tv-stat-num { font-size: 1.8rem; }
  .tv-article { padding: 32px 20px; }
  .tv-article h2 { font-size: 1.4rem; margin-top: 40px; }
  .tv-article h3 { font-size: 1.1rem; }
  .tv-linkcard { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .tv-hero h1 { font-size: 1.65rem; }
  .tv-hero-actions { flex-direction: column; align-items: center; }
  .tv-btn { width: 100%; justify-content: center; }
  .tv-section h2 { font-size: 1.35rem; }
  .tv-cta-banner h3 { font-size: 1.25rem; }
}
