/* 메인 스타일 */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --body-bg: #ffffff;
  --body-color: #212529;
  --card-bg: #ffffff;
  --card-border: #e9ecef;
  --code-bg: #f7f7f9;
  --tooltip-bg: rgba(0, 0, 0, 0.8);
  --tooltip-color: #fff;
  --progress-bg: #e9ecef;
  --progress-bar: #4a6cf7;
  --header-height: 70px;
  --footer-height: 60px;
  --sidebar-width: 280px;
  --transition-speed: 0.3s;
}

/* 다크 모드 */
[data-theme="dark"] {
  --primary-color: #6d8bff;
  --body-bg: #121212;
  --body-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --card-border: #333;
  --code-bg: #2d2d2d;
  --tooltip-bg: rgba(255, 255, 255, 0.8);
  --tooltip-color: #000;
  --progress-bg: #333;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--body-color);
  background-color: var(--body-bg);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 헤더 스타일 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: background-color var(--transition-speed);
}

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--body-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--body-color);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.theme-toggle:hover {
  color: var(--primary-color);
}

/* 메인 콘텐츠 */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 섹션 스타일 */
section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

section:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--body-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* 카드 스타일 */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  background-color: #3a5bd9;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* 코드 블록 */
pre {
  background-color: var(--code-bg);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  position: relative;
  margin: 1.5rem 0;
}

code {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.05);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-color);
  transition: color 0.2s;
}

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

/* 툴팁 */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--primary-color);
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--tooltip-bg);
  color: var(--tooltip-color);
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 체크리스트 */
.checklist {
  list-style: none;
  margin: 1rem 0;
}

.checklist li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.checklist input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

/* 진행 상태 바 */
.progress-container {
  width: 100%;
  height: 5px;
  background-color: var(--progress-bg);
  position: fixed;
  top: var(--header-height);
  left: 0;
  z-index: 999;
}

.progress-bar {
  height: 100%;
  background-color: var(--progress-bar);
  width: 0%;
  transition: width 0.2s;
}

/* 아코디언 */
.accordion {
  margin-bottom: 1rem;
}

.accordion-header {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 1rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.accordion-content {
  padding: 1rem;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.accordion-header.active + .accordion-content {
  display: block;
}

/* 비교표 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.comparison-table th, .comparison-table td {
  padding: 0.75rem;
  border: 1px solid var(--card-border);
  text-align: left;
}

.comparison-table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.01);
}

/* 팁 박스 */
.tip-box {
  background-color: rgba(74, 108, 247, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.warning-box {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--warning-color);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* 이미지 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.screenshot {
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 푸터 */
footer {
  background-color: var(--card-bg);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--card-border);
  transition: background-color var(--transition-speed);
}

/* 반응형 디자인은 responsive.css에서 처리 */
