/* STUDIO JU AI Design System */

/* ========== Font & Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* ========== Color System ========== */
:root {
  /* Background */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-border: #333333;
  
  /* Orange */
  --orange: #FF8C42;
  --orange-hover: #FFa05c;
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-disabled: #666666;
}

/* Light Mode */
:root.light-mode {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-border: #E0E0E0;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-disabled: #999999;
}

/* ========== Layout ========== */
.container-mobile {
  max-width: 400px;
  margin: 0 auto;
  padding: 16px 20px;
}

.container-desktop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* ========== Typography ========== */
.text-header {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.text-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.text-small {
  font-size: 12px;
  line-height: 1.5;
}

.text-button {
  font-size: 14px;
  font-weight: 700;
}

/* ========== Components ========== */
.btn-primary {
  background: var(--orange);
  color: #000000;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.input-field {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  width: 100%;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--orange);
}

.input-field::placeholder {
  color: var(--text-disabled);
}

.card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--bg-border);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

/* ========== Orange Text ========== */
.orange-text {
  color: var(--orange);
}

/* ========== Spacing ========== */
.spacing-xs { margin-bottom: 8px; }
.spacing-sm { margin-bottom: 12px; }
.spacing-md { margin-bottom: 16px; }
.spacing-lg { margin-bottom: 20px; }
.spacing-xl { margin-bottom: 32px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* 모바일 큰 글씨 */
    line-height: 1.8; /* 모바일 넓은 줄간격 */
  }
  
  .text-header { font-size: 18px; }
  .text-body { font-size: 16px; }
  .text-small { font-size: 14px; }
  
  .container-desktop {
    max-width: 100%;
    padding: 16px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 14px; /* PC 밀도 높게 */
    line-height: 1.6;
  }
  
  .container-mobile {
    max-width: 600px;
  }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-disabled);
}

/* ========== Loading Animation ========== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ========== Utilities ========== */
.text-orange { color: var(--orange); }
.text-secondary { color: var(--text-secondary); }
.text-disabled { color: var(--text-disabled); }

.bg-dark { background: var(--bg-primary); }
.bg-dark-secondary { background: var(--bg-secondary); }

.border-dark { border-color: var(--bg-border); }
.border-orange { border-color: var(--orange); }

/* ========== List Styles ========== */
.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.bullet-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 10px;
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  z-index: 1000;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-border);
  transform: scale(1.1);
}

/* ========== Download Button ========== */
.download-btn {
  background: var(--orange);
  color: #000000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}
