/* 
 * Match Tool Styles 
 * Requires html[data-night="night"] for dark mode
 */

.match-area-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.area-tab {
  background: var(--classD, #f5f5f5);
  border: 1px solid var(--classC, #e0e0e0);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  color: var(--main, #333);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.area-tab:hover {
  background: var(--classC, #e0e0e0);
}

.area-tab.active {
  background: var(--theme, #3b82f6);
  color: #fff;
  border-color: var(--theme, #3b82f6);
}

.match-result-area {
  text-align: center;
}

.result-title {
  font-size: 1.5rem;
  color: var(--theme, #3b82f6);
  margin-bottom: 20px;
}

.score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.match-score {
  font-size: 4rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1;
}
html[data-night="night"] .match-score {
  color: #fb7185;
}

.match-label {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 2px;
}

.result-fortune-badge {
  display: inline-block;
  padding: 5px 25px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #fff;
}

.fortune-daji { background-color: #ef4444; } /* Red for Da Ji */
.fortune-zhongji { background-color: #f97316; }   /* Orange for Zhong Ji */
.fortune-xiaoji { background-color: #10b981; } /* Green for Xiao Ji */
.fortune-ping { background-color: #3b82f6; } /* Blue for Ping */
.fortune-xiong { background-color: #64748b; }/* Slate for Xiong */

.result-analysis {
  text-align: left;
  background: var(--classD, #f5f5f5);
  padding: 20px;
  border-radius: 8px;
  color: var(--main, #333);
  line-height: 1.8;
  border: 1px solid var(--classC);
}

.result-analysis h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--theme, #3b82f6);
}

.poem-text {
  font-size: 1.2rem;
  color: var(--main);
}

.bz-select-wrapper {
  position: relative;
  display: block;
}
.bz-select-wrapper .bz-input {
  width: 100%;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
}
.bz-select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted, #999);
}

.match-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}
.match-empty-state svg {
  margin-bottom: 15px;
  opacity: 0.5;
  color: #e11d48;
}

.recalc-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 30px;
  background: var(--classD);
  color: var(--main);
  border: 1px solid var(--classC);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}
.recalc-btn:hover {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}
