/* Voting UI aligned with tickets portal */

body {
  background: #fff;
  color: #212529;
}

.hero-events {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}
.hero-events .inner {
  position: relative;
  z-index: 2;
}
.hero-events a {
  color: #fff;
}

.vote-crumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.vote-crumb a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}
.vote-crumb span { color: #6c757d; }

.event-card,
.vote-card,
.contestant-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  background: #fff;
  height: 100%;
}
.event-card:hover,
.vote-card:hover,
.contestant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.event-card .card-img-top,
.vote-card-img,
.contestant-card img.cover {
  height: 200px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}
.event-card:hover .card-img-top,
.vote-card:hover .vote-card-img,
.contestant-card:hover img.cover {
  filter: brightness(1);
}

.event-badge,
.vote-live {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  background: linear-gradient(45deg, #ff6b6b, #ff5252);
  color: #fff;
}
.event-badge.badge-open,
.badge-open {
  background: linear-gradient(45deg, #22c55e, #16a34a);
  color: #fff;
}
.event-badge.badge-closed,
.badge-closed {
  background: linear-gradient(45deg, #9e9e9e, #616161);
  color: #fff;
}
.section-meta span.meta-open {
  background: #dcfce7;
  color: #166534;
}
.section-meta span.meta-closed {
  background: #f3f4f6;
  color: #6b7280;
}
.vote-now-chip.chip-open {
  background: #22c55e;
  border-color: #16a34a;
}
.vote-now-chip.chip-closed {
  background: rgba(0,0,0,0.28);
  border-color: transparent;
}
.vote-cat-card.is-closed,
.event-card.is-closed {
  opacity: 0.78;
  filter: grayscale(20%);
}

.vote-card-body,
.event-card .card-body {
  padding: 1rem 1.1rem 1.15rem;
}
.vote-card-title,
.event-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.vote-card a,
.event-card a {
  color: inherit;
  text-decoration: none;
}

.section-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 15px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-decoration: none !important;
  color: #212529 !important;
  border: none;
  transition: 0.3s ease;
  min-height: 110px;
  height: 100%;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.section-card .arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  text-transform: uppercase;
}
.section-card h4,
.section-card h5 {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.section-meta span {
  background: #f3f0ff;
  color: #764ba2;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
}

.contestant-card {
  display: flex;
  flex-direction: column;
}
.contestant-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  z-index: 2;
}
.votes-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f0ff;
  color: #764ba2;
  font-weight: 700;
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 0.8rem;
}
.social-mini img {
  width: 28px;
  height: 28px;
}

.vote-form-card,
.how-to-vote {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.vote-form-card .form-select,
.vote-form-card .form-control {
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.85rem;
}
.how-to-vote li { margin-bottom: 0.6rem; }
.profile-shot {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.article-card img {
  height: 160px;
  object-fit: cover;
}

.navbar .btn-warning.active,
.navbar .btn-warning:hover {
  filter: brightness(0.95);
}

.vote-cat-card {
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.16);
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eee8ff;
}
.vote-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(118, 75, 162, 0.22);
}
.vote-cat-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 70%, #ec4899 100%);
  color: #fff;
  padding: 1.35rem 1.2rem 2.2rem;
  position: relative;
  min-height: 120px;
}
.vote-cat-banner .vote-now-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vote-cat-banner .vote-now-chip.chip-open {
  background: #22c55e;
  border-color: #16a34a;
}
.vote-cat-banner .vote-now-chip.chip-closed {
  background: rgba(0,0,0,0.28);
  border-color: transparent;
}
.vote-cat-banner h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0.7rem 0 0;
  position: relative;
  z-index: 1;
}
.vote-cat-banner .ballot {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 4rem;
  opacity: 0.18;
  line-height: 1;
}
.vote-avatars {
  display: flex;
  padding: 0 1.15rem;
  margin-top: -22px;
  position: relative;
  z-index: 2;
}
.vote-avatars img,
.vote-avatars .ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-left: -10px;
  background: #ede9fe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.vote-avatars img:first-child,
.vote-avatars .ph:first-child {
  margin-left: 0;
}
.vote-avatars .ph {
  display: grid;
  place-items: center;
  color: #764ba2;
  font-weight: 800;
  font-size: 0.85rem;
}
.vote-cat-body {
  padding: 0.9rem 1.2rem 1.2rem;
}
.vote-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0.75rem 0 1rem;
}
.vote-stat {
  background: #f6f3ff;
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  text-align: center;
}
.vote-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #5b21b6;
  line-height: 1.1;
}
.vote-stat small {
  color: #6c757d;
  font-weight: 600;
}
.vote-bar {
  height: 6px;
  background: #eee8ff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.vote-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #ec4899);
  border-radius: 999px;
}
.intro-vote {
  background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(236,72,153,0.08));
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 12px;
  align-items: center;
}
.intro-vote i {
  font-size: 1.6rem;
  color: #764ba2;
}
