@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #4db6ac;
  --bg-color: #fdfaf5;
  --text-color: #333;
  --card-bg: #ffffff;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

nav {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo { font-weight: 700; color: var(--primary-color); text-decoration: none; }
nav .nav-links a { margin-left: 1.5rem; text-decoration: none; color: #666; font-size: 0.9rem; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

header { text-align: center; margin-bottom: 4rem; }
header h1 { font-size: 2.5rem; color: #455a64; margin-bottom: 1rem; }
header p { color: #78909c; }

.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  margin-bottom: 2rem;
}

h3 { color: #4db6ac; margin-bottom: 1.5rem; font-size: 1.4rem; }
.tool-desc { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; }

.input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

input, select {
  padding: 0.8rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

button {
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s;
}

button:hover { background: #3d968e; transform: translateY(-2px); }

.result-box { margin-top: 1rem; }

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.name-card {
  background: #f9f9f9;
  padding: 1.5rem;
  text-align: center;
  border-radius: 15px;
  border: 1px solid #eee;
}

.full-name { display: block; font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 0.3rem; }
.pure-name { font-size: 0.8rem; color: #999; }

.rank-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.rank-column h4 { color: #5d4037; border-bottom: 2px solid #efebe9; padding-bottom: 0.5rem; }
ol { padding-left: 1.5rem; color: #6d4c41; }
li { margin-bottom: 0.8rem; font-weight: 500; }
li small { font-weight: normal; color: #bcaaa4; }

.expert-guide {
  margin-top: 4rem;
  padding: 3rem;
  background: #f0f4f8;
  border-radius: 30px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.guide-item strong { display: block; color: #2c3e50; margin-bottom: 0.5rem; }
.guide-item p { font-size: 0.9rem; color: #546e7a; margin: 0; }

.home-link { display: block; text-align: center; margin-top: 4rem; color: #999; text-decoration: none; }

footer { text-align: center; padding: 4rem 2rem; color: #999; font-size: 0.85rem; }

@media (max-width: 600px) {
  .input-group { flex-direction: column; }
  .rank-container, .guide-grid { grid-template-columns: 1fr; }
}