/* finder.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f2eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 40px 20px;
  color: #2a2722;
}

.finder-container {
  max-width: 1200px;
  margin: 0 auto;
}

.finder-header {
  text-align: center;
  margin-bottom: 40px;
}

.finder-header h1 {
  font-size: 2rem;
  color: #4f6b4f;
  margin-bottom: 8px;
}

.finder-controls {
  background: white;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.control-group {
  margin-bottom: 28px;
}

.control-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #4f6b4f;
}

.brew-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.method-btn {
  background: #f0ede8;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  color: #2a2722;
}

.method-btn.active {
  background: #4f6b4f;
  color: white;
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flavor-tag {
  background: #f0ede8;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.flavor-tag.selected {
  background: #9c8b6b;
  color: white;
}

.hint {
  font-size: 0.8rem;
  color: #7d766d;
  margin-top: 8px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.coffee-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.2s;
  cursor: pointer;
}

.coffee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.coffee-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2a2722;
}

.coffee-meta {
  font-size: 0.8rem;
  color: #7d766d;
  margin-bottom: 12px;
}

.coffee-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.coffee-tag {
  background: #f0ede8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .brew-methods {
    flex-direction: column;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* 描述文字 */
.coffee-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a5a5a;
  margin: 12px 0;
  padding: 8px 0;
  border-top: 1px solid #f0ede8;
  border-bottom: 1px solid #f0ede8;
}

/* 哲學區域 */
.philosophy-section {
  margin-top: 12px;
}
.philosophy-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9c8b6b;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.philosophy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.philosophy-tag {
  background: #f0ede8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #4f6b4f;
}

/* 匹配分數 */
.match-score {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9c8b6b;
  margin: 8px 0 4px;
  text-align: right;
}

/* 描述文字 */
.coffee-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a5a5a;
  margin: 12px 0;
  padding: 8px 0;
  border-top: 1px solid #f0ede8;
  border-bottom: 1px solid #f0ede8;
}

/* 哲學區域 */
.philosophy-section {
  margin-top: 12px;
}
.philosophy-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9c8b6b;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.philosophy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.philosophy-tag {
  background: #f0ede8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #4f6b4f;
}