/* 기본 스타일 */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #6b7280;
  --secondary-hover: #4b5563;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--background);
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 타이포그래피 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 폼 요소 */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--background);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input[type="file"] {
  padding: 0.5rem 0;
}

input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input,
.radio-group input {
  margin-right: 0.5rem;
}

small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
}

/* 헤더 */
.site-header {
  padding: 1rem 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* 푸터 */
.site-footer {
  padding: 3rem 0 1.5rem;
  background-color: var(--background-alt);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-light);
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* 영웅 섹션 */
.hero {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--background-alt);
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 기능 섹션 */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  background-color: var(--background);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* 단계 섹션 */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--background-alt);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

/* 페이지 헤더 */
.page-header {
  padding: 3rem 0;
  background-color: var(--background-alt);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* 도구 섹션 */
.tool-section {
  padding: 3rem 0;
}

.tool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.tool-sidebar {
  padding: 2rem;
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-preview {
  padding: 2rem;
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-preview h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  margin-bottom: 1.5rem;
  background-color: var(--background-alt);
  border-radius: var(--radius);
  padding: 1rem;
}

.preview-actions {
  display: flex;
  justify-content: center;
}

/* OG 미리보기 */
.og-preview {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1200 / 630;
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.og-preview-content {
  padding: 2rem;
  text-align: center;
}

/* 파비콘 미리보기 */
.favicon-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browser-tab {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid #ddd;
  min-width: 200px;
}

.browser-tab img {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

/* 애플 아이콘 미리보기 */
.apple-icon-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ios-home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f8f8f8;
  padding: 1rem;
  border-radius: 1rem;
}

.ios-home-screen img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 0.5rem;
}

.ios-home-screen span {
  font-size: 0.75rem;
  color: #333;
}

/* 정보 섹션 */
.info-section {
  padding: 3rem 0;
  background-color: var(--background-alt);
}

.info-section h2 {
  margin-bottom: 1.5rem;
}

.info-section h3 {
  margin: 2rem 0 1rem;
}

.info-section ul,
.info-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section li {
  margin-bottom: 0.5rem;
}

.code-block {
  background-color: #f1f5f9;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 사이트맵 생성기 스타일 */
.url-entry {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-alt);
  border-radius: var(--radius);
  position: relative;
}

.url-entry + .url-entry {
  border-top: 1px solid var(--border-color);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.entry-header h4 {
  margin: 0;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--error-color);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.code-preview {
  width: 100%;
  max-height: 400px;
  overflow: auto;
  background-color: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius);
  padding: 1rem;
  font-family: monospace;
}

.code-preview pre {
  margin: 0;
}

.code-preview code {
  white-space: pre;
}

/* 알림 스타일 */
.alert {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.alert-info {
  background-color: #e6f7ff;
  border-top: 1px solid #91d5ff;
  border-bottom: 1px solid #91d5ff;
  color: #0050b3;
}

.alert-success {
  background-color: #f6ffed;
  border-top: 1px solid #b7eb8f;
  border-bottom: 1px solid #b7eb8f;
  color: #135200;
}

.alert-warning {
  background-color: #fffbe6;
  border-top: 1px solid #ffe58f;
  border-bottom: 1px solid #ffe58f;
  color: #613400;
}

.alert-error {
  background-color: #fff2f0;
  border-top: 1px solid #ffccc7;
  border-bottom: 1px solid #ffccc7;
  color: #a8071a;
}

/* 반응형 */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .tool-container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .steps li {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 1rem;
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* 모바일 메뉴 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  z-index: 200;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

/* 다운로드 페이지 스타일 */
.download-container {
  text-align: center;
  padding: 3rem 0;
}

.download-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.download-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.download-link {
  display: inline-block;
  color: #4f46e5;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: underline;
  transition: color 0.3s;
}

.download-link:hover {
  color: #4338ca;
}

.return-link {
  color: #6b7280;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .download-actions {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 이 부분만 추가하고 나머지 CSS는 그대로 유지 */
.contact-email {
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* 기존 CSS 파일에 추가 */
.notice-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.notice-box p {
  margin: 0;
  color: #856404;
}

.notice-box strong {
  font-weight: 600;
}
