/* Rune recommendation page styles */

/* accordion for rune registration */
.accordion {
  margin-top: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion-header {
  padding: 0.5rem 1rem;
  background: #e7f1ff;
  color: #2d3436;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: #b3d4fc;
}

.accordion-header::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.accordion-header.active::after {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0.5rem;
}

.accordion-content.active {
  display: block;
}
.section-block {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--section-border);
  border-radius: 8px;
  background: var(--section-bg);
}

.section-title {
  font-family: 'mabinogi_classic';
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--button-bg);
  padding-bottom: 0.3rem;
}
.job-card {
  background: var(--container-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}

.job-score {
  background: #dfe6e9;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}

.job-runes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.job-runes .rune-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}


.rune-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border: 1px solid #dfe6e9;
}

.rune-item small {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: white;
}


.rune-grade-유니크 small {
	color: #5C4A35 !important;
}

.owned-tier-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.owned-tier-table th,
.owned-tier-table td {
  border: 1px solid #dfe6e9;
  padding: 0.3rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.synergy-list {
  list-style: none;
  padding-left: 1rem;
}

.synergy-list li {
  margin-bottom: 0.3rem;
}

.synergy-matched {
  color: #2ecc71;
  font-weight: bold;
}

.synergy-recommend {
  color: #3498db;
}
/* 보유 룬별 직업 티어 카드 스타일 */
.owned-card {
  background: var(--container-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.owned-header {
  font-weight: bold;
  font-size: 1rem;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-icon {
  width: 1.2rem;
  height: 1.2rem;
  background-size: cover;
  flex-shrink: 0;
}

.badge {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-left: 0.5rem;
}

.progress-bar .fill {
  height: 100%;
  background: var(--button-bg);
}

/* 점수 구간별 색상 정의 */
.progress-bar .fill.low {
  background: #e74c3c; /* 0-49점: 빨강 */
}
.progress-bar .fill.medium {
  background: #f1c40f; /* 50-74점: 노랑 */
}
.progress-bar .fill.high {
  background: #2ecc71; /* 75-100점: 초록 */
}