/* JoeTube Zany Theme Styles */
.joe-tube-bg {
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #feca57,
    #48dbfb,
    #ff9ff3,
    #54a0ff,
    #5f27cd,
    #1dd1a1,
    #ffeaa7
  );
  background-size: 400% 400%;
  animation: rainbow-dance 8s ease-in-out infinite;
}

@keyframes rainbow-dance {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.joe-tube-header {
  background: linear-gradient(135deg, #6c5ce7, #fd79a8, #fdcb6e);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(116, 185, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: header-glow 3s ease-in-out infinite alternate;
  font-family: 'Comic Sans MS', cursive, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

@keyframes header-glow {
  from {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3), 0 0 40px rgba(116, 185, 255, 0.2);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5), 0 0 60px rgba(116, 185, 255, 0.4);
  }
}

.joe-tube-text {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
  font-family: 'Comic Sans MS', cursive, Arial, sans-serif;
  font-weight: bold;
}

.joe-tube-subtitle {
  color: #ffeaa7;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.joe-tube-main {
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.95),
    rgba(253, 121, 168, 0.95),
    rgba(253, 203, 110, 0.95)
  );
  backdrop-filter: blur(15px);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: main-pulse 4s ease-in-out infinite;
}

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

.border-rainbow {
  border: 3px solid;
  border-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) 1;
  animation: border-dance 2s linear infinite;
}

@keyframes border-dance {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.video-container {
  position: relative;
  width: 100%;
  max-height: 50vh;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
  border-radius: 15px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: 4px solid transparent;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) padding-box,
    linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) border-box;
  animation: video-glow 3s ease-in-out infinite alternate;
}

@keyframes video-glow {
  from {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
  }
  to {
    box-shadow: 0 0 25px rgba(72, 219, 251, 0.3);
  }
}

.joe-tube-magic {
  background: linear-gradient(
    45deg,
    rgba(255, 107, 107, 0.1),
    rgba(254, 202, 87, 0.1),
    rgba(72, 219, 251, 0.1),
    rgba(255, 159, 243, 0.1)
  );
  background-size: 400% 400%;
  animation: magic-shimmer 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.joe-tube-magic::before {
  content: '✨';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  animation: sparkle 2s ease-in-out infinite;
}

.joe-tube-magic::after {
  content: '🎪';
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 16px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes magic-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Navigation Controls */
.joe-tube-button {
  background: linear-gradient(135deg, #6c5ce7, #fd79a8, #fdcb6e, #1dd1a1);
  background-size: 300% 300%;
  border: 3px solid #ffffff;
  color: #ffffff;
  transition: all 0.3s ease;
  font-family: 'Comic Sans MS', cursive, Arial, sans-serif;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: button-pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.joe-tube-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s;
  transform: translateX(-100%);
}

.joe-tube-button:hover::before {
  transform: translateX(100%);
}

.joe-tube-button:hover {
  background-position: 100% 100%;
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3), 0 0 20px rgba(253, 121, 168, 0.2);
  border-color: #ffeaa7;
}

.joe-tube-button:active {
  transform: scale(0.95) rotate(-1deg);
  animation: none;
}

@keyframes button-pulse {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Progress indicators */
.progress-dot {
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: dot-dance 3s ease-in-out infinite;
}

.progress-dot:nth-child(even) {
  animation-delay: 0.5s;
}

.progress-dot.active {
  background: linear-gradient(45deg, #1dd1a1, #48dbfb);
  transform: scale(1.3);
  box-shadow: 0 4px 20px rgba(29, 209, 161, 0.5), 0 0 30px rgba(72, 219, 251, 0.3);
  border-color: #ffeaa7;
}

.progress-dot:hover {
  transform: scale(1.4) rotate(180deg);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

@keyframes dot-dance {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* JoeTube Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
}

::-webkit-scrollbar-track {
  background: linear-gradient(45deg, #6c5ce7, #fd79a8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #1dd1a1, #48dbfb);
  border-radius: 10px;
  border: 2px solid #ffffff;
  animation: thumb-glow 2s ease-in-out infinite alternate;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff9ff3, #fdcb6e);
  box-shadow: 0 0 15px rgba(255, 159, 243, 0.5);
}

@keyframes thumb-glow {
  from {
    box-shadow: 0 0 5px rgba(29, 209, 161, 0.3);
  }
  to {
    box-shadow: 0 0 15px rgba(72, 219, 251, 0.6);
  }
}

/* Blinking cursor effect */
.joe-tube-cursor::after {
  content: '🎪';
  animation: circus-blink 1.5s infinite;
  margin-left: 5px;
}

@keyframes circus-blink {
  0%,
  50% {
    opacity: 1;
    transform: scale(1);
  }
  51%,
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Fun floating animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.joe-tube-text {
  animation: text-rainbow 4s ease-in-out infinite;
}

@keyframes text-rainbow {
  0%,
  100% {
    color: #ffffff;
  }
  50% {
    color: #e0e0e0;
  }
}

/* Mobile responsive tweaks */
@media (max-width: 768px) {
  .joe-tube-header {
    padding: 8px 12px;
  }

  .joe-tube-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  .progress-dot {
    width: 12px;
    height: 12px;
  }

  .video-container {
    max-height: 40vh;
  }
}

/* Special effects */
.joe-tube-main {
  position: relative;
}

.joe-tube-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: cosmic-spin 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes cosmic-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.carousel-slide {
  position: relative;
  z-index: 2;
}
