/* =========================================================================
   index.css — Contenido 홈 페이지 (self-contained)
   styles.css 의존 없음
   ========================================================================= */

/* ========= 1) Font & Base ========= */

@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* { box-sizing: border-box; }
html, body { font-family: 'GmarketSansMedium', sans-serif; }

body {
  background-color: #F0F6FF;
  color: #1F2937;
  margin: 0;
  padding: 0;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body.home-page {
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ========= 2) Tokens ========= */

:root {
  --c-brand:        #0A84FE;
  --c-brand-strong: #0875E0;
  --c-brand-soft:   #E8F2FF;
  --c-brand-tint:   #F2F8FF;

  --c-surface:   #FFFFFF;
  --c-surface-2: rgba(10, 132, 254, 0.05);
  --c-surface-3: rgba(10, 132, 254, 0.10);

  --c-text:       #1F2937;
  --c-text-soft:  #4B5563;
  --c-text-muted: #6B7280;

  --c-border:        #E5E7EB;
  --c-border-soft:   rgba(10, 132, 254, 0.15);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.03);
  --sh-2: 0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --sh-3: 0 14px 30px rgba(15,23,42,0.08), 0 6px 12px rgba(15,23,42,0.05);
  --sh-brand: 0 8px 22px rgba(10,132,254,0.28);

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 180ms;

  --ff-base: 'GmarketSansMedium', system-ui, -apple-system, sans-serif;
}

/* ========= 3) Container ========= */

.container {
  width: 100%;
  max-width: 760px;
  margin: 88px auto 24px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  position: relative;
}

body.home-page .container {
  background-image: url('/images/Home_Background.jpg') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: var(--sh-3) !important;
  border-radius: var(--r-xl) !important;
  
  width: 100%;
  max-width: 760px;
  aspect-ratio: 3.2 / 4;
  min-height: auto !important;
  margin: 88px auto 24px;
  padding: clamp(20px, 3vw, 32px);
  padding-top: 30% !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@supports (padding: max(0px)) {
  .container {
    padding-left: max(clamp(20px, 3vw, 32px), env(safe-area-inset-left));
    padding-right: max(clamp(20px, 3vw, 32px), env(safe-area-inset-right));
  }
}

/* ========= 4) Hero ========= */

.title-container {
  text-align: center;
  padding: 24px 0 12px;
  position: relative;
}

.subtitle {
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.2rem);
  line-height: 1.35;
  color: var(--c-brand);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
.subtitle strong { font-weight: 700; }

/* 한자 圏点 처럼 dot 위에 점 */
dot {
  text-emphasis-style: filled circle;
  -webkit-text-emphasis-style: filled circle;
  text-emphasis-color: var(--c-brand);
  -webkit-text-emphasis-color: var(--c-brand);
}

.title-container .floating-image {
  width: clamp(220px, 32vw, 300px);
  height: auto;
  margin: 24px auto 0;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.floating-image {
  animation: float 3.2s ease-in-out infinite;
}

/* ========= 5) Action buttons ========= */

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto 0;
  max-width: 360px;
}

.action-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  color: var(--c-brand-strong);
  border: 1.5px solid var(--c-brand-soft);
  border-radius: var(--r-pill);
  font-family: var(--ff-base);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  letter-spacing: -0.01em;
}
.action-buttons button:hover {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}
.action-buttons button:active { transform: translateY(0); }

/* "아카이브" 변형 — 더 차분한 톤 */
.action-buttons .btn-archive {
  background: rgba(10, 132, 254, 0.06);
  border-color: rgba(10, 132, 254, 0.15);
  color: var(--c-brand);
  font-weight: 600;
}
.action-buttons .btn-archive:hover {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.action-buttons .btn-archive svg { flex-shrink: 0; }

/* ========= 6) Social links ========= */

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.social-links a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--sh-3);
}
.social-links img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ========= 7) Footer ========= */

footer {
  max-width: 1200px;
  margin: 40px auto 88px;
  padding: 28px clamp(20px, 3vw, 32px);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.footer-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-brand-strong);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.footer-section h4::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--c-brand);
  border-radius: 2px;
}

.footer-section p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0 0 6px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: var(--c-text-soft);
  font-size: 0.9rem;
  transition: color var(--t-base) var(--ease);
}
.footer-section ul li a:hover {
  color: var(--c-brand);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--c-border);
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

/* ========= 8) Responsive ========= */

@media (max-width: 768px) {
  .container {
    margin: 80px 0 16px;
    padding: 16px 14px;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  body.home-page .container {
    margin: 0 auto !important;
    padding-top: 60vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
    aspect-ratio: auto !important;
  }

  .title-container { padding: 14px 0 8px; }
  .subtitle { font-size: 1rem; }
  .title-container .floating-image {
    width: clamp(200px, 50vw, 260px);
    margin-top: 18px;
  }

  .action-buttons {
    gap: 10px;
    margin-top: 18px;
  }
  .action-buttons button {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }
  .social-links img {
    width: 26px;
    height: 26px;
  }

  footer {
    margin: 24px 0 80px;
    padding: 22px 16px;
    border-radius: 0;
    box-shadow: none;
  }
  .footer-container { gap: 18px; }
  .footer-section h4 { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .subtitle { font-size: 0.95rem; }

  .action-buttons {
    max-width: 320px;
  }
  .action-buttons button {
    padding: 13px 16px;
  }

  .social-links { gap: 14px; }
}
