/* ==========================================================================
   CIRCLE. HUB &mdash; MINIMAL EDITORIAL SERVICE GATEWAY
   Typography: Pretendard | Palette: Warm Red / Architectural Neutral
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT DEFINITION (Pretendard)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. CSS PROPERTIES & VARIABLES
   -------------------------------------------------------------------------- */
@property --amplitude {
  syntax: "<length>";
  initial-value: 0px;
  inherits: false;
}

@property --scale {
  syntax: "<number>";
  initial-value: 1;
  inherits: false;
}

:root {
  /* LIGHT THEME */
  --bg-color: #f7f6f2;
  --text-main: #141615;
  --text-sub: #4b524e;
  --text-muted: #79827d;
  
  --border-line: rgba(20, 22, 21, 0.12);
  --border-hover: rgba(217, 72, 56, 0.45);
  
  --red-accent: #d94838;
  --red-deep: #ba3022;
  --red-glow: rgba(217, 72, 56, 0.25);
  --red-tint: rgba(217, 72, 56, 0.08);

  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-color: #0e1110;
  --text-main: #f2f5f3;
  --text-sub: #b2bcb6;
  --text-muted: #6e7974;
  
  --border-line: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(242, 100, 84, 0.6);
  
  --red-accent: #f26454;
  --red-deep: #d94838;
  --red-glow: rgba(242, 100, 84, 0.35);
  --red-tint: rgba(242, 100, 84, 0.12);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: 500;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

::selection {
  background-color: var(--red-accent);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-accent);
  box-shadow: 0 0 10px var(--red-glow);
}

.brand-title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border-line);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-btn {
  font-size: 0.85rem;
  color: var(--text-sub);
  padding: 6px 14px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  transition: all var(--transition);
}

.tool-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. RED BREATHING CIRCLE STAGE (Visible in Light & Dark Mode)
   -------------------------------------------------------------------------- */
.circle-stage {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 40px;
  overflow: visible;
  pointer-events: none;
}

.circle-glow-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 72, 56, 0.12) 0%, transparent 70%);
  filter: blur(50px);
}

[data-theme="dark"] .circle-glow-bg {
  background: radial-gradient(circle, rgba(242, 100, 84, 0.28) 0%, transparent 70%);
}

.circle-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Light Mode: Use Multiply blend mode so red circles are rich, deep, and clearly visible */
.circle {
  position: absolute;
  height: 125px;
  width: 125px;
  border-radius: 99999px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(185, 28, 28, 0.88) 0%,
    rgba(225, 29, 72, 0.72) 40%,
    rgba(244, 63, 94, 0.5) 80%
  );
  --angle: 90deg;
  --amplitude: 110px;
  --scale: 1.5;
  --offset: 30deg;
  transform: translate(
    calc(cos(var(--angle)) * var(--amplitude)),
    calc(sin(var(--angle)) * var(--amplitude) * -1)
  ) scale(var(--scale)) rotate(calc(-1 * var(--angle) + 17deg));
  mix-blend-mode: multiply;
  animation: expandRedLarge 4.2s cubic-bezier(0.8, 0, 0.2, 1) infinite alternate;
  filter: drop-shadow(0 6px 20px rgba(185, 28, 28, 0.22));
}

/* Dark Mode: Use Screen blend mode so it glows brightly on dark background */
[data-theme="dark"] .circle {
  background: radial-gradient(
    circle at 50% 0%,
    oklch(0.24 0.08 25),
    oklch(0.48 0.20 28),
    oklch(0.68 0.22 30)
  );
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 28px rgba(242, 100, 84, 0.5));
}

.circle:nth-child(1) { --angle: calc(0deg + var(--offset)); }
.circle:nth-child(2) { --angle: calc(60deg + var(--offset)); }
.circle:nth-child(3) { --angle: calc(120deg + var(--offset)); }
.circle:nth-child(4) { --angle: calc(180deg + var(--offset)); }
.circle:nth-child(5) { --angle: calc(240deg + var(--offset)); }
.circle:nth-child(6) { --angle: calc(300deg + var(--offset)); }

@keyframes expandRedLarge {
  0% {
    --amplitude: 95px;
    --scale: 1.15;
  }
  50% {
    --amplitude: 65px;
    --scale: 2.15;
  }
  100% {
    --amplitude: 115px;
    --scale: 2.15;
  }
}

/* --------------------------------------------------------------------------
   7. HERO INTRO
   -------------------------------------------------------------------------- */
.hero-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.notice-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--red-accent);
  margin-bottom: 12px;
}

.main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 14px;
}

.main-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. SERVICES DIRECTORY (CLEAN LIST FORMAT - NON-CARD / NON-CAPSULE)
   -------------------------------------------------------------------------- */
.services-directory {
  margin-bottom: 50px;
}

.directory-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 0;
}

.dir-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-list-group {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 12px;
  border-bottom: 1px solid var(--border-line);
  transition: background-color var(--transition), border-color var(--transition);
}

.service-item:hover {
  background-color: var(--red-tint);
  border-color: var(--border-hover);
}

.item-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.item-num {
  font-size: 1.1rem;
  color: var(--red-accent);
  padding-top: 2px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.item-status {
  font-size: 0.78rem;
  color: var(--red-accent);
  border: 1px solid var(--red-accent);
  padding: 1px 6px;
  border-radius: 2px;
}

.item-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
}

.item-url {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
}

.item-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  padding-left: 20px;
}

.service-item:hover .item-arrow {
  color: var(--red-accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9. DOMAIN NOTICE BAR
   -------------------------------------------------------------------------- */
.domain-notice-bar {
  border: 1px solid var(--border-line);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 40px;
  background-color: var(--bg-color);
}

.notice-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.notice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.notice-text span {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.btn-copy-address {
  padding: 9px 18px;
  border-radius: 4px;
  background: var(--text-main);
  color: var(--bg-color);
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.btn-copy-address:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. TOAST
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text-main);
  color: var(--bg-color);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  animation: toastFadeIn 0.2s ease-out;
  z-index: 999;
}

.toast.show {
  display: block;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .page-wrap {
    padding: 24px 16px 60px;
  }
  
  .circle-stage {
    height: 260px;
    margin: 20px 0 10px;
  }

  .circle {
    height: 90px;
    width: 90px;
  }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 8px;
  }

  .item-arrow {
    padding-left: 0;
  }

  .notice-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
