/* ProjectVote Standalone WordPress Plugin Styles */
#projectvote-app-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}
#projectvote-app-root *, #projectvote-app-root *::before, #projectvote-app-root *::after {
  box-sizing: border-box;
}

/* Header & Banner */
.pv-header-banner {
  text-align: center;
  margin-bottom: 24px;
}
.pv-header-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.pv-header-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 12px auto;
}
.pv-metadata-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}

/* Search & Filters */
.pv-controls-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s;
}
.pv-search-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.pv-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pv-cat-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  transition: all 0.15s;
}
.pv-cat-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Grid of 24 Projects */
.pv-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 80px;
}
.pv-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.pv-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pv-card.selected {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}
.pv-card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pv-card:hover .pv-card-media img {
  transform: scale(1.05);
}
.pv-card-fallback-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}
.pv-card-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-family: monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
}
.pv-card-content {
  padding: 16px;
}
.pv-card-meta {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}
.pv-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.pv-card-tagline {
  font-size: 12px;
  color: #475569;
  margin: 0 0 12px 0;
  line-height: 1.5;
}
.pv-card-team {
  font-size: 11px;
  color: #94a3b8;
}
.pv-card-footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
}
.pv-btn-details {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.pv-btn-vote {
  flex: 2;
  padding: 8px 14px;
  background: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
}
.pv-btn-vote.selected {
  background: #059669;
}

/* Floating Bottom Selection Bar */
.pv-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.pv-bottom-count {
  font-size: 14px;
  font-weight: 700;
}
.pv-btn-cast {
  padding: 10px 20px;
  background: #10b981;
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Modals */
.pv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}
.pv-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
}
.pv-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
}

/* Success View */
.pv-success-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  max-width: 650px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Organizer Top Bar */
.pv-admin-topbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  border: 1px solid #334155;
}
.pv-admin-topbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pv-admin-badge {
  background: #4f46e5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pv-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-admin-btn {
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pv-admin-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}
.pv-admin-btn.primary {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
}
.pv-admin-btn.primary:hover {
  background: #4338ca;
  color: #ffffff;
}

/* Organizer Chip in Banner */
.pv-organizer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.pv-organizer-chip:hover {
  background: #e0e7ff;
  color: #312e81;
  border-color: #a5b4fc;
}

/* Floating Organizer Button */
.pv-floating-admin-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.2s;
}
.pv-floating-admin-btn:hover {
  background: #f8fafc;
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

/* In-Page Leaderboard Table & Items */
.pv-lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}
.pv-lb-rank {
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  width: 28px;
  text-align: center;
}
.pv-lb-rank.gold { color: #d97706; }
.pv-lb-rank.silver { color: #64748b; }
.pv-lb-rank.bronze { color: #b45309; }
.pv-lb-info {
  flex: 1;
  min-width: 0;
}
.pv-lb-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-lb-meta {
  font-size: 11px;
  color: #64748b;
}
.pv-lb-bar-container {
  width: 100px;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.pv-lb-bar {
  height: 100%;
  background: #4f46e5;
  border-radius: 4px;
}
.pv-lb-votes {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
  min-width: 60px;
}

/* Full Leaderboard Dashboard */
.pv-dashboard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.pv-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.pv-dash-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-dash-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}
.pv-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pv-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.pv-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
}
.pv-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}
.pv-stat-val.accent {
  color: #4f46e5;
}

/* Top 3 Podium */
.pv-podium-section {
  margin-bottom: 28px;
}
.pv-podium-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}
@media (max-width: 768px) {
  .pv-podium-grid {
    grid-template-columns: 1fr;
  }
}
.pv-podium-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.pv-podium-card:hover {
  transform: translateY(-2px);
}
.pv-podium-card.gold {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  order: 2;
}
.pv-podium-card.silver {
  border: 2px solid #94a3b8;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  order: 1;
}
.pv-podium-card.bronze {
  border: 2px solid #d97706;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  order: 3;
}
@media (max-width: 768px) {
  .pv-podium-card.gold { order: 1; }
  .pv-podium-card.silver { order: 2; }
  .pv-podium-card.bronze { order: 3; }
}
.pv-podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.pv-podium-badge.gold { background: #fef3c7; color: #b45309; }
.pv-podium-badge.silver { background: #f1f5f9; color: #475569; }
.pv-podium-badge.bronze { background: #ffedd5; color: #9a3412; }
.pv-podium-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px auto;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pv-podium-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}
.pv-podium-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}
.pv-podium-votes {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.pv-podium-pct {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Full-Screen Presentation Mode */
.pv-presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at top, #1e1b4b 0%, #020617 100%);
  color: #ffffff;
  padding: 32px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pv-pres-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pv-pres-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pv-pres-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pv-pres-btn {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.pv-pres-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}
.pv-pres-btn.active {
  background: #6366f1;
  border-color: #818cf8;
}
.pv-pres-podium-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  align-items: flex-end;
  width: 100%;
}
@media (max-width: 800px) {
  .pv-pres-podium-wrap {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
.pv-pres-card {
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pv-pres-card:hover {
  transform: translateY(-4px);
}
.pv-pres-card.gold {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.25);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  order: 2;
  padding: 32px 24px;
}
.pv-pres-card.silver {
  border: 2px solid #94a3b8;
  box-shadow: 0 0 30px rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  order: 1;
}
.pv-pres-card.bronze {
  border: 2px solid #d97706;
  box-shadow: 0 0 30px rgba(217, 119, 6, 0.15);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  order: 3;
}
@media (max-width: 800px) {
  .pv-pres-card.gold { order: 1; }
  .pv-pres-card.silver { order: 2; }
  .pv-pres-card.bronze { order: 3; }
}
.pv-pres-curtain {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #1e1b4b, #1e1b4b 10px, #0f172a 10px, #0f172a 20px);
  border-radius: 16px;
  border: 2px dashed #f59e0b;
}



