/* =========================================
   XIVIX Typography & Layout System
   ========================================= */

/* 기본 타이포그래피 설정 */
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  word-break: keep-all;
  margin: 0;
}

/* 모바일 스타일 (Mobile First) */
@media (max-width: 768px) {
  .content-wrapper {
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: -0.02em;
    padding: 0 16px;
  }
}

/* PC 스타일 (Desktop) */
@media (min-width: 769px) {
  .content-wrapper {
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
  }
}

/* =========================================
   Visual Hierarchy Elements
   ========================================= */

/* 리스트 공통 스타일 */
ul.ordered-list, ul.emphasis-list, ul.check-list {
  list-style: none;
  padding-left: 0;
}

ul.ordered-list li, ul.emphasis-list li, ul.check-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0;
}

/* 링크 스타일 */
a {
  color: #03C75A;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

a.secondary {
  color: #FF6B35;
}

/* 핵심 메시지 강조 */
strong, b {
  font-weight: 700;
  color: #000;
}

.dark strong, .dark b {
  color: #fff;
}

/* =========================================
   XIVIX Custom Components
   ========================================= */

/* Gradient text effect */
.xivix-gradient-text {
  background: linear-gradient(135deg, #03C75A 0%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.xivix-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button pulse animation */
.xivix-btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(3, 199, 90, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(3, 199, 90, 0);
  }
}

/* Loading spinner */
.xivix-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glass morphism effect */
.xivix-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
   Form Elements
   ========================================= */

input, select, textarea {
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 199, 90, 0.2);
}

/* =========================================
   Scrollbar Styling
   ========================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.dark ::-webkit-scrollbar-thumb {
  background: #555;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* =========================================
   Code Block Styling
   ========================================= */

pre {
  border-radius: 8px;
  overflow-x: auto;
}

code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* =========================================
   Dark Mode Support
   ========================================= */

@media (prefers-color-scheme: dark) {
  body:not(.light) {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  body:not(.light) strong, body:not(.light) b {
    color: #fff;
  }

  body:not(.light) a {
    color: #05d662;
  }
}

/* =========================================
   Animation Utilities
   ========================================= */

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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