@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* Main retro styling */
.retro-header {
  background: linear-gradient(45deg, #FF1493, #00CED1, #FFD700);
  background-size: 400% 400%;
  animation: gradient-shift 4s ease infinite;
  padding: 30px;
  border-radius: 15px;
  border: 3px solid #FFFF00;
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.retro-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.05) 2px,
    rgba(255, 255, 255, 0.05) 4px
  );
  pointer-events: none;
}

.retro-title {
  text-shadow: 3px 3px 0 #FF1493, 6px 6px 0 #00CED1;
  animation: text-glow 2s ease-in-out infinite alternate;
}

.retro-panel {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.9), rgba(60, 30, 90, 0.9));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Pixel Buscemi */
.pixel-buscemi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #8B4513, #D2691E);
  border: 2px solid #FFD700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  margin-top: 10px;
}

.pixel-buscemi:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.buscemi-skateboard {
  animation: skateboard-roll 3s linear infinite;
}

.buscemi-text {
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 0 black;
}

/* Floating background shapes */
.floating-shape {
  position: absolute;
  background: linear-gradient(45deg, #FF1493, #00CED1);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape-2 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  animation-delay: 2s;
}

.floating-shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

/* Transform button styling */
.transform-button {
  box-shadow: 0 0 20px rgba(255, 192, 203, 0.5);
  border: 3px solid #FFD700;
  animation: button-pulse 2s infinite;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.transform-button:hover {
  animation: button-wiggle 0.5s ease-in-out;
  box-shadow: 0 0 30px rgba(255, 192, 203, 0.8);
}

/* Cringe slider */
.cringe-slider {
  background: linear-gradient(to right, #00FF00, #FFFF00, #FF8000, #FF0000);
  height: 8px;
  border-radius: 5px;
  appearance: none;
  outline: none;
}

.cringe-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFD700;
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.cringe-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFD700;
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Animations */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes text-glow {
  from { text-shadow: 3px 3px 0 #FF1493, 6px 6px 0 #00CED1; }
  to { text-shadow: 3px 3px 0 #00CED1, 6px 6px 0 #FF1493, 0 0 20px #FFD700; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes skateboard-roll {
  0% { transform: translateX(0px) rotate(0deg); }
  25% { transform: translateX(5px) rotate(90deg); }
  50% { transform: translateX(0px) rotate(180deg); }
  75% { transform: translateX(-5px) rotate(270deg); }
  100% { transform: translateX(0px) rotate(360deg); }
}

@keyframes button-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes button-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}

/* Retro scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(45deg, #FF1493, #00CED1);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 6px;
  border: 2px solid #FF1493;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

/* Custom input styling */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  border-color: #00FFFF !important;
}

/* Responsive design */
@media (max-width: 1024px) {
  .retro-title {
    font-size: 2.5rem;
  }
  
  .floating-shape {
    display: none;
  }
}

@media (max-width: 768px) {
  .retro-title {
    font-size: 2rem;
  }
  
  .pixel-buscemi {
    font-size: 16px;
    padding: 8px 16px;
  }
}

/* Easter egg styles */
.konami-active {
  animation: rainbow-chaos 1s infinite;
}

@keyframes rainbow-chaos {
  0% { filter: hue-rotate(0deg) brightness(1); }
  25% { filter: hue-rotate(90deg) brightness(1.5); }
  50% { filter: hue-rotate(180deg) brightness(1); }
  75% { filter: hue-rotate(270deg) brightness(1.5); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}

/* Tooltip styling */
.tooltip {
  position: relative;
  border-bottom: 1px dotted #FFD700;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #FFD700;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
}