/* Custom styles for The Traitors site */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #0D0D0D, #0D0D0D 50%, rgba(107, 28, 35, 0.1));
  min-height: 100vh;
  overflow-x: hidden;
}

/* Text gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #C9A227 0%, #E8C55F 50%, #C9A227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-gold {
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.border-gold-glow {
  box-shadow: 0 0 10px -2px rgba(201, 162, 39, 0.3);
}

/* Smooth animations */
@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: slide-up 0.8s ease-out forwards;
  opacity: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 28, 35, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B1C23;
}

/* Spoiler blur */
.spoiler {
  filter: blur(4px);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.spoiler:hover,
.spoiler.revealed {
  filter: blur(0);
}

/* Tabs styling */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-button:hover {
  color: #C9A227;
}

.tab-button.active {
  color: #C9A227;
  border-bottom-color: #C9A227;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: bold;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-toggle {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.3);
}

/* Progress bars */
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6B1C23, #C9A227);
  transition: width 0.5s ease;
}

/* Mobile menu transition */
@media (max-width: 768px) {
  #mobile-nav {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #C9A227;
  color: #0D0D0D;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 1rem;
}

/* Responsive design adjustments */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
