/* Vote Page Styles */
.vote-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.vote-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand), rgba(108,240,194,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vote-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-preview-section {
  padding: 2rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108,240,194,0.2);
  border-color: var(--brand);
}

.portfolio-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108,240,194,0.3);
  background: linear-gradient(135deg, var(--card), rgba(108,240,194,0.1));
}

.portfolio-card.selected::before {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(108,240,194,0.4);
}

.portfolio-preview {
  width: 100%;
  height: 300px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.portfolio-preview iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  background: var(--surface);
}

.portfolio-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--card));
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-card-body {
  padding: 1.5rem;
}

.portfolio-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.portfolio-card-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.portfolio-card-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--brand);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-card-link:hover {
  background: var(--brand);
  color: var(--bg);
  transform: translateX(4px);
}

.select-button {
  width: 100%;
  padding: 12px;
  margin-top: 1rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-button:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.select-button.selected {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.submit-section {
  text-align: center;
  padding: 2rem 0;
  margin: 2rem 0;
}

.submit-button {
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--brand), rgba(108,240,194,0.8));
  color: var(--bg);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(108,240,194,0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,240,194,0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.leaderboard-section {
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--border);
}

.leaderboard-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.leaderboard-container {
  max-width: 600px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.leaderboard-item:hover {
  transform: translateX(4px);
  border-color: var(--brand);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(135deg, rgba(108,240,194,0.2), rgba(108,240,194,0.05));
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(108,240,194,0.2);
}

.leaderboard-item.rank-2 {
  background: linear-gradient(135deg, rgba(108,240,194,0.15), rgba(108,240,194,0.05));
}

.leaderboard-item.rank-3 {
  background: linear-gradient(135deg, rgba(108,240,194,0.1), rgba(108,240,194,0.05));
}

.leaderboard-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 40px;
}

.leaderboard-name {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-left: 1rem;
}

.leaderboard-votes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.leaderboard-votes-count {
  color: var(--brand);
}

.vote-message {
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(108,240,194,0.1);
  border: 2px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  font-weight: 500;
}

@media (max-width: 768px) {
  .vote-title {
    font-size: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .leaderboard-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .leaderboard-rank {
    margin-bottom: 0.5rem;
  }
}

