/*
Theme Name: GeneratePress Child
Description: 미래지향적 디지털 도구 허브 - GeneratePress 차일드 테마
Author: Custom
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */

:root {
  /* Dark mode (default) */
  --bg-primary:        #050c18;
  --bg-secondary:      #080f1e;
  --bg-card:           rgba(255, 255, 255, 0.03);
  --bg-card-hover:     rgba(255, 255, 255, 0.06);
  --bg-nav:            rgba(5, 12, 24, 0.85);

  --accent-primary:    #00c8ff;
  --accent-secondary:  #a78bfa;
  --accent-green:      #34d399;
  --accent-orange:     #fb923c;
  --accent-pink:       #f472b6;

  --text-primary:      #e2e8f0;
  --text-secondary:    #94a3b8;
  --text-muted:        #475569;

  --border-color:      rgba(0, 200, 255, 0.1);
  --border-hover:      rgba(0, 200, 255, 0.35);

  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover:      0 12px 40px rgba(0, 200, 255, 0.12);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-full: 100px;

  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system,
               BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;

  --transition:      all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s  cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:  1280px;
  --nav-height: 64px;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-primary:       #f0f4f9;
  --bg-secondary:     #ffffff;
  --bg-card:          rgba(255, 255, 255, 0.85);
  --bg-card-hover:    rgba(255, 255, 255, 1);
  --bg-nav:           rgba(240, 244, 249, 0.9);

  --accent-primary:   #0284c7;
  --accent-secondary: #7c3aed;

  --text-primary:     #0f172a;
  --text-secondary:   #475569;
  --text-muted:       #94a3b8;

  --border-color:     rgba(0, 0, 0, 0.08);
  --border-hover:     rgba(2, 132, 199, 0.35);

  --shadow-card:      0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-hover:     0 8px 32px rgba(2, 132, 199, 0.12);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--text-primary); }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: rgba(0, 200, 255, 0.2);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. GENERATEPRESS LAYOUT OVERRIDES
   ============================================================ */

.grid-container {
  max-width: var(--max-width) !important;
  margin-left: auto  !important;
  margin-right: auto !important;
  padding-left:  24px !important;
  padding-right: 24px !important;
}

/* Remove default GP page background / padding */
.separate-containers .inside-article,
.separate-containers .site-main > .widget,
.separate-containers .site-main > .page-header {
  background: transparent;
  padding: 0;
}

.entry-content { max-width: 100%; }

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */

#site-header,
.site-header {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: var(--nav-height);
  padding: 0 24px !important;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Nav takes all remaining space so menu can center within it */
#site-navigation {
  flex: 1 !important;
  display: flex !important;
  min-width: 0;
}

/* Site title / logo */
.site-title a,
.site-branding .site-title a {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(130deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description { display: none !important; }

/* Navigation container */
#site-navigation,
.main-navigation {
  background: transparent !important;
  border: none !important;
}

.inside-navigation {
  background: transparent !important;
  padding: 0 !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* Nav menu list — flex: 1 + justify-content: center = 가운데 정렬 */
.main-navigation .nav-menu,
.main-navigation ul.menu {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  flex: 1 !important;
  order: 2;  /* DOM 순서 무관하게 가운데 배치 */
}

/* 햄버거 버튼: 왼쪽 끝 */
.menu-toggle {
  order: 1;
}

/* 다크모드 토글: 오른쪽 끝 */
.header-actions {
  order: 3;
  flex-shrink: 0;
  margin-left: 0;
}

/* Nav links */
.main-navigation .nav-menu > li > a,
.main-navigation ul.menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a,
.main-navigation .nav-menu > li.current-page-ancestor > a {
  color: var(--accent-primary) !important;
  background: rgba(0, 200, 255, 0.08);
}

/* Dropdown */
.main-navigation ul ul {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px;
  min-width: 200px;
  top: calc(100% + 6px);
}

.main-navigation ul ul li a {
  padding: 9px 13px !important;
  border-radius: 8px;
  color: var(--text-secondary) !important;
}

.main-navigation ul ul li a:hover {
  color: var(--accent-primary) !important;
  background: rgba(0, 200, 255, 0.06);
}

/* Header right-side action area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Dark/light mode toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.3);   /* 더 선명하게 */
  background: rgba(0, 200, 255, 0.06);
  color: var(--accent-primary);               /* 항상 cyan 색상 */
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(2, 132, 199, 0.3);
  background: rgba(2, 132, 199, 0.06);
  color: var(--accent-primary);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 200, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.theme-toggle svg {
  stroke: currentColor;
  fill: none;
  pointer-events: none;
  display: block;
  flex-shrink: 0;
}

/* 다크모드: 달 보임, 태양 숨김 */
:root .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* 라이트모드: 태양 보임, 달 숨김 */
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* GP mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 10px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  font-size: 0 !important; /* hide text */
}

.menu-toggle::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 48px;
  overflow: hidden;
}

/* Animated dot-grid background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 200, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
  animation: hero-grid-drift 30s linear infinite;
}

/* Glow blob */
.hero-section::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes hero-grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 36px 36px; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Main heading */
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  background: linear-gradient(140deg, var(--text-primary) 20%, var(--accent-primary) 60%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Search bar */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 5px 5px 20px;
  transition: var(--transition);
}

.hero-search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-width: 0;
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--accent-primary);
  color: #050c18;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--accent-secondary);
  color: #fff;
  transform: scale(1.03);
}

.hero-search-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ============================================================
   6. TOOLS CATEGORY SECTION
   ============================================================ */

.tools-section {
  padding: 44px 24px 52px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.97rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 5-column grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* ============================================================
   7. TOOL CATEGORY CARDS
   ============================================================ */

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
}

/* Subtle shimmer on hover */
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-accent, var(--accent-primary));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--card-accent, var(--accent-primary)),
    0 6px 24px rgba(0, 200, 255, 0.08);
  color: var(--text-primary);
}

.tool-card:hover::after { opacity: 1; }

/* Icon box */
.tool-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: rgba(var(--card-accent-rgb, 0, 200, 255), 0.1);
  color: var(--card-accent, var(--accent-primary));
  transition: var(--transition);
}

.tool-card:hover .tool-card-icon {
  background: rgba(var(--card-accent-rgb, 0, 200, 255), 0.18);
  transform: scale(1.08) rotate(-2deg);
}

.tool-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

/* Category label EN */
.tool-card-en {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, var(--accent-primary));
  margin-bottom: 5px;
}

.tool-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.2;
}

.tool-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* Footer row */
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.tool-card-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--card-accent-rgb, 0, 200, 255), 0.1);
  color: var(--card-accent, var(--accent-primary));
  transition: var(--transition);
}

.tool-card:hover .tool-card-arrow {
  background: var(--card-accent, var(--accent-primary));
  color: #050c18;
  transform: translateX(3px);
}

.tool-card-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ============================================================
   8. FEATURES / WHY SECTION
   ============================================================ */

.features-section {
  padding: 48px 24px 56px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: rgba(0, 200, 255, 0.08);
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   9. TOOL CATEGORY PAGE (page-tools.php)
   ============================================================ */

.page-tools-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-tools-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.page-tools-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-tools-breadcrumb a {
  color: var(--text-muted);
}

.page-tools-breadcrumb a:hover { color: var(--accent-primary); }

.page-tools-breadcrumb span { opacity: 0.4; }

.page-tools-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-tools-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* Grid of individual tool cards — 2열 고정 */
.tool-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 72px;
}

.tool-item-card {
  display: flex;
  flex-direction: column;   /* 세로 레이아웃 (아이콘 위, 텍스트 아래) */
  align-items: flex-start;
  gap: 0;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.tool-item-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.tool-item-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

.tool-item-card:hover::after { opacity: 1; }

.tool-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.08);
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-bottom: 18px;
  transition: var(--transition);
}

.tool-item-card:hover .tool-item-icon {
  background: rgba(0, 200, 255, 0.15);
  transform: scale(1.05);
}

.tool-item-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.tool-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tool-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   10. SINGLE TOOL PAGE
   ============================================================ */

.tool-page-wrap {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 24px;
}

.tool-page-header {
  margin-bottom: 32px;
}

.tool-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.tool-page-header p {
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.tool-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.tool-input,
.tool-textarea,
.tool-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 0.93rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.tool-textarea { min-height: 160px; resize: vertical; }

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

.tool-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.tool-btn-primary {
  background: var(--accent-primary);
  color: #050c18;
}

.tool-btn-primary:hover {
  background: var(--accent-secondary);
  color: #fff;
  transform: translateY(-1px);
}

.tool-btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.tool-btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tool-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-top: 20px;
  min-height: 60px;
  word-break: break-word;
}

/* ============================================================
   11. FOOTER
   ============================================================ */

#site-footer,
.site-footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color);
  padding-top: 0 !important;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(130deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-policy a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-policy {
  display: flex;
  gap: 18px;
}

.footer-policy a:hover { color: var(--accent-primary); }

/* Override GP default footer padding */
.site-footer .inside-site-footer {
  padding: 0 !important;
  text-align: left !important;
}

/* ============================================================
   12. GENERAL UTILITY
   ============================================================ */

.gradient-text {
  background: linear-gradient(130deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 58px; }

  /* Show hamburger */
  .menu-toggle {
    display: flex !important;
  }

  /* Mobile nav */
  .main-navigation .nav-menu,
  .main-navigation ul.menu {
    display: none !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    gap: 3px;
    box-shadow: var(--shadow-card);
    flex: none !important;  /* 모바일에서 flex:1 해제 */
  }

  .main-navigation.toggled .nav-menu,
  .main-navigation.toggled ul.menu {
    display: flex !important;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-items-grid {
    grid-template-columns: 1fr;  /* 모바일: 1열 */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-section {
    padding: 48px 20px 40px;
    min-height: 340px;
  }

  .inside-header {
    padding: 0 16px !important;
  }
}

@media (max-width: 520px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 8px;
  }

  .hero-search input {
    width: 100%;
    padding: 4px 0;
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }
}
