/* Scottish Pies Voting Platform ("The Pie Charts") Styles */

:root {
  --scot-blue: #0065bd;
  --scot-dark-blue: #004c8f;
  --crust-gold: #f59e0b;
  --crust-amber: #d97706;
  --crust-dark: #78350f;
  --crust-cream: #fef3c7;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
}

/* Tartan decorative accent line */
.tartan-bar {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #0065bd 0px,
    #0065bd 30px,
    #004c8f 30px,
    #004c8f 40px,
    #d97706 40px,
    #d97706 50px,
    #0065bd 50px,
    #0065bd 80px,
    #ffffff 80px,
    #ffffff 84px,
    #15803d 84px,
    #15803d 114px
  );
}

/* Card hover glow */
.pie-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.pie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.3);
}

/* Vote button active states */
.vote-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-btn:active {
  transform: scale(0.92);
}

.vote-btn.voted {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

/* Rank Medals */
.rank-badge-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #78350f;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.rank-badge-2 {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
}

.rank-badge-3 {
  background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%);
  color: #431407;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.4);
}

/* Golden Laurels Trophy Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.trophy-float {
  animation: float 3s ease-in-out infinite;
}

/* Modal Backdrop Blur */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Category Filter Active Indicator */
.cat-pill.active {
  background-color: #d97706;
  color: #ffffff;
  border-color: #f59e0b;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
