/* Common styles for salary.itsallaboutthing.com - 2026 Optimized */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #34a853;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #202124;
  --text-secondary: #5f6368;
  --border: #dadce0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 8px rgba(60,64,67,.1);
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 16px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

nav a:hover { background: #e8f0fe; color: var(--primary); }
nav a.active { background: var(--primary); color: #fff; font-weight: 600; }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 20px 0 12px;
  color: var(--text);
  word-break: keep-all;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.input-group { margin-bottom: 20px; }
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="number"], select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  transition: border-color 0.2s;
  background: #fff;
}

input[type="number"]:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

.btn-calc {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}

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

#result { display: none; margin-top: 28px; animation: fadeUp 0.4s ease; }

.result-box {
  background: #f0f7ff;
  border: 1.5px solid #c2dbff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.total-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin: 8px 0 4px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e8eaed;
  font-size: 0.95rem;
}

.info-row:last-of-type { border-bottom: none; }

.guide-section {
  margin-top: 40px;
}

.guide-section h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}

.guide-section h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--text);
}

.guide-section p, .guide-section li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.guide-section ul, .guide-section ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.tip-box {
  background: #e8f5e9;
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.tip-box strong { color: #1b5e20; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.faq-a { color: var(--text-secondary); font-size: 0.95rem; }

footer {
  background: #202124;
  color: #9aa0a6;
  padding: 48px 20px 32px;
  margin-top: 60px;
}

footer a {
  color: #e8eaed;
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover { color: #fff; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 32px;
}

.footer-links a {
  background: rgba(255,255,255,0.06);
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid #3c4043;
  max-width: 800px;
  margin: 0 auto;
}

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

@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  .card { padding: 20px 16px; }
  nav { gap: 4px; padding: 10px 8px; }
  nav a { padding: 7px 10px; font-size: 0.85rem; }
}
