/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Contestant Card Styles */
.contestant-card {
  position: relative;
  overflow: hidden;
}

.contestant-card-content {
  display: grid;
  grid-template-columns: auto 70px 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.contestant-rank {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  min-width: 50px;
}

.contestant-photo {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.contestant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
}

.contestant-info {
  min-width: 0; /* Allows text truncation */
}

.contestant-name {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contestant-badges {
  display: inline-flex;
  gap: 0.5rem;
}

.contestant-meta {
  margin: 0.25rem 0;
  color: #666;
  font-size: 0.9rem;
}

.contestant-joined {
  margin: 0.5rem 0 0 0;
  color: #999;
  font-size: 0.85rem;
}

.contestant-votes {
  text-align: center;
  min-width: 100px;
}

.vote-count {
  font-size: 1.8rem;
  font-weight: 800;
}

.vote-label {
  color: #999;
  font-size: 0.9rem;
}

.all-time-votes {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.contestant-action {
  margin-left: 0.5rem;
}

.vote-btn {
  background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.vote-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
