/* 
  Voting / Recommendation Section Styles
*/

.voting-section {
  padding: 5rem 0;
  background-color: var(--bg-beige);
}

.recommend-form {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input, 
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--bg-off-white);
  color: var(--text-charcoal);
}

.form-input:focus, 
.form-textarea:focus {
  border-color: var(--accent-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
}

.form-submit:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.voting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vote-card {
  background-color: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal);
}

.vote-card:hover {
  transform: translateY(-3px);
}

.vote-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.vote-card-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vote-card-category {
  display: inline-block;
  background-color: var(--bg-beige);
  color: #888;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vote-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #ddd;
  background-color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.vote-btn.upvote:hover, 
.vote-btn.upvote.voted {
  background-color: #E8F5E9;
  border-color: #4CAF50;
  color: #4CAF50;
}

.vote-btn.downvote:hover, 
.vote-btn.downvote.voted {
  background-color: #FFEBEE;
  border-color: #E53935;
  color: #E53935;
}

.vote-count {
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #999;
  font-size: 1rem;
  grid-column: 1 / -1;
}
