/* CSS Variables */
:root {
  --primary-color: #86926c;
  --primary-hover: #667153;
  --primary-light: #dbd2ae;
  --primary-border: black;
  
  --bg-primary: #897063;
  --bg-secondary: #dbd3ae;
  --bg-card: #86926c;
  --bg-hover: #26262c;
  
  --text-primary: white;
  --text-secondary: #e8c88c;
  --text-muted: #848494;
  
  --border-color: black;
  --shadow-sm: 0 1.5px 0px black;
  --shadow-md: 0 3px 0px black;
  --shadow-lg: 0 5px 0px black;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --transition-fast: 350ms ease;
  --transition-base: 450ms ease;
  --transition-slow: 650ms ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-secondary);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: start;
}

.logo-img {
  height: 95px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.header-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 2px 1.5px 0px black;
  margin: 0;
  white-space: nowrap;
}
  /* Easter Egg Emote */
.logo-easter-egg {
  position: absolute;
  bottom: -1.5rem;
  left: 25px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1000;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.header-logo:hover .logo-easter-egg {
  opacity: 1;
  transform: translateY(-5px);
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Award Show Page Styles */
.login-prompt {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.login-prompt-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

img, video {
  max-width: 100%;
  height: auto;
}

.login-prompt h2 {
  font-size: 2rem;
  font-weight: 650;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-shadow: 2px 1px 0px black;
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.award-show-info {
  background-color: var(--primary-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.award-show-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 2px 1px 0px black;
}

.award-show-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.stream-details {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stream-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.detail-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
}

.detail-content strong {
  display: block;
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-content p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.watch-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #da9e9e;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  width: fit-content;
  margin: auto;
}

.watch-stream-btn:hover {
  background-color: #c87776;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.twitch-icon {
  flex-shrink: 0;
}

.closing-message {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
}

/* Participating Artists Section */
.participating-artists-section {
  background: var(--bg-secondary);
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-color);
}

.participating-artists-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  text-shadow: 2px 1px 0px black;
}

.artists-carousel {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: default;
  scrollbar-color: white transparent;
}

.artists-carousel::-webkit-scrollbar {
  height: 8px;
}

.artists-carousel::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.artists-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-md);
}

.artists-track {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  min-width: max-content;
}

.participating-artist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.participating-artist:hover {
  transform: translateY(-2px);
}

.artist-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--transition-base);
  border-width: 3px;
  border-style: solid;
}

.participating-artist:hover .artist-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 8px currentColor;
  transition: scale 800ms ease;
}

.artist-name {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.participating-artist:hover .artist-name {
  opacity: 1;
}

/* Artist border colors */
.artist-border-1 { border-color: #ff8280; }
.artist-border-2 { border-color: #5c16c5; }
.artist-border-3 { border-color: #fdfb8a; }
.artist-border-4 { border-color: #1c8516; }
.artist-border-5 { border-color: #0b9b39; }
.artist-border-6 { border-color: #434343; }
.artist-border-7 { border-color: #d21fb1; }
.artist-border-8 { border-color: #a970ff; }
.artist-border-9 { border-color: #153d00; }
.artist-border-10 { border-color: #8732fd; }
.artist-border-11 { border-color: #a970ff; }
.artist-border-12 { border-color: #5c895c; }
.artist-border-13 { border-color: #112e1f; }
.artist-border-14 { border-color: #aa6826; }
.artist-border-15 { border-color: #5e20ba; }
.artist-border-16 { border-color: #74008b; }
.artist-border-17 { border-color: #99a3d0; }
.artist-border-18 { border-color: #00f593; }
.artist-border-19 { border-color: #24074e; }
.artist-border-20 { border-color: #000000; }
.artist-border-21 { border-color: #5c16c5; }
.artist-border-22 { border-color: #000000; }
.artist-border-23 { border-color: #ffa3ee; }
.artist-border-24 { border-color: #d6930e; }
.artist-border-25 { border-color: #008c7a; }
.artist-border-26 { border-color: #ff00d0; }
.artist-border-27 { border-color: #fb39ac; }
.artist-border-28 { border-color: #1445ad; }
.artist-border-29 { border-color: #fbb3ff; }

/* Footer */
#footer {
  text-align: center;
}

.tmc-callout {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  background-image: linear-gradient(to bottom, #5F4E45, #0F0C0B);
}

.tmc-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.tmc-callout p {
  margin-bottom: 0.5rem;
}

.tmc-callout img {
  width: 65px;
  height: auto;
  opacity: 0.5;
  transition: all var(--transition-base);
}

.tmc-callout a:hover img {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sticky-header {
    padding: 0.75rem;
    grid-template-columns: auto 1fr auto; /* Logo, votes, buttons */
    gap: 0.5rem; /* Reduce gap on mobile */
  }
  
  .logo-img {
    height: 40px; /* Smaller on mobile */
  }
  
  .header-center {
    justify-self: center;
  }
  
  /* Make votes display more compact on mobile */
  .votes-remaining {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
  }
  
  /* Make header actions more compact */
  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 0.5rem; /* Reduce gap between buttons */
  }
  
  /* Make logout button smaller on mobile */
  .logout-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Make login button smaller on mobile too */
  .login-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Make twitch icon smaller on mobile */
  .login-btn .twitch-icon {
    width: 16px;
    height: 16px;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .artist-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .login-prompt {
    padding: 2rem 1rem;
  }
  
  .login-prompt h2 {
    font-size: 1.5rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .vote-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
    justify-content: center;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
  }
  
  .toast {
    width: 100%;
  }
}

/* Even smaller screens - make it stack */
@media (max-width: 480px) {
  .sticky-header {
    grid-template-columns: 1fr; /* Stack everything */
    grid-template-rows: auto auto;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .header-logo {
    justify-self: center;
    grid-column: 1;
    grid-row: 1;
  }
  
  .header-center {
    display: none; 
  }
  
  .header-actions {
    justify-self: center;
    grid-column: 1;
    grid-row: 2;
  }
  
  .vote-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .artist-avatar {
    width: 80px;
    height: 80px;
  }
  
  .artists-track {
    gap: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode adjustments (already using dark theme by default) */
@media (prefers-color-scheme: light) {
  /* Users who prefer light mode will still get dark mode for now */
  /* You could add light mode variables here if desired */
}
