/* css/style.css */
:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --primary: #6366f1;
  --accent: #f43f5e;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --gold: #fbbf24;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px;
}

.view { padding-bottom: 12px; }

/* Header */
.logo {
  text-align: center;
  font-size: 3.0rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 0;
}
.tagline {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 5px;
  margin-bottom: 40px;
}

.sub-title {
  text-align: center;
  margin: 0 0 18px 0;
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Cards */
.action-card,
.result-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.action-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  text-align: center;
}
.helper-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
  margin-bottom: 0;
}

/* Buttons & Inputs */
.btn {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-text {
  background: transparent;
  color: var(--text-dim);
  border: none;
  text-decoration: underline;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
}
.btn-compact { padding: 14px 12px; font-size: 1rem; border-radius: 12px; }

.input-group { display: flex; gap: 8px; align-items: center; }
input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  outline: none;
}
input:focus { border-color: rgba(99,102,241,0.9); }

.error-text {
  margin: 10px 0 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* Picker Selects */
.picker { margin-top: 16px; }
.select-wrap { margin-top: 8px; }
.select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  outline: none;
}
.select:focus { border-color: rgba(99,102,241,0.9); }

.divider {
  height: 1px;
  background: #334155;
  margin: 18px 0;
  opacity: 0.8;
}

/* 버튼이 너무 붙어 보이는 문제 해결 */
.main-action .picker:last-of-type { margin-bottom: 60px; }
.main-action .btn.btn-primary { margin-top: 50px; }


/* Result Design */
.code-box {
  text-align: center;
  border: 2px solid var(--primary);
  position: relative;
}
.code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin: 10px 0;
  letter-spacing: 2px;
}
.label {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-copy {
  background: #334155;
  color: var(--text-main);
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-copy:active { transform: scale(0.98); }

.copy-toast {
  margin: 10px 0 0 0;
  min-height: 1.1em;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Result Content */
.result-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 6px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.result-content .item { border-bottom: 1px solid #334155; padding: 18px 0; }
.result-content .item:last-child { border-bottom: none; }
.value { font-size: 1.15rem; font-weight: 500; margin: 8px 0 0 0; }

/* AdSense Slot (Strategic Separation) */
.ad-container {
  margin: 22px 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.ad-label {
  font-size: 0.6rem;
  color: #444;
  text-align: center;
  padding: 4px;
  background: #111;
}
.ad-placeholder {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* Footer */
.result-footer {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.85);
}


