/* Custom Styles for Mario Kart Tour Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --mario-red: #E60012;
  --mario-red-dark: #B8000E;
  --mario-yellow: #FFD700;
  --mario-yellow-dark: #E6C200;
  --luigi-green: #28B463;
  --luigi-green-dark: #1E8449;
  --peach-pink: #FF66A6;
  --speed-blue: #00A8FF;
  --speed-blue-dark: #0088CC;
  --dark-bg: #0B0E14;
  --card-bg: #151B26;
  --card-border: #232D3F;
}

body {
  font-family: 'Kanit', 'Outfit', sans-serif;
  background-color: var(--dark-bg);
  color: #F3F4F6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0B0E14;
}
::-webkit-scrollbar-thumb {
  background: var(--mario-red);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF2E3E;
}

/* Typography Headings */
.font-outfit {
  font-family: 'Outfit', 'Kanit', sans-serif;
}

/* Mario Gradient & Color Utilities */
.bg-mario-red { background-color: var(--mario-red); }
.text-mario-red { color: var(--mario-red); }
.border-mario-red { border-color: var(--mario-red); }

.bg-mario-yellow { background-color: var(--mario-yellow); }
.text-mario-yellow { color: var(--mario-yellow); }

.bg-luigi-green { background-color: var(--luigi-green); }
.text-luigi-green { color: var(--luigi-green); }

.bg-speed-blue { background-color: var(--speed-blue); }
.text-speed-blue { color: var(--speed-blue); }

.bg-gradient-mario {
  background: linear-gradient(135deg, #E60012 0%, #FF5252 50%, #FF9100 100%);
}

.bg-gradient-hero {
  background: radial-gradient(circle at 50% 20%, rgba(230, 0, 18, 0.25) 0%, rgba(11, 14, 20, 0.95) 70%),
              linear-gradient(180deg, rgba(0, 168, 255, 0.15) 0%, rgba(11, 14, 20, 1) 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FF9900 100%);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #00A8FF 0%, #0055FF 100%);
}

.bg-gradient-green {
  background: linear-gradient(135deg, #28B463 0%, #117A65 100%);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF066 0%, #FFD700 50%, #FF9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-mario {
  background: linear-gradient(135deg, #FF4D4D 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Checkered Flag Pattern Border */
.checkered-pattern-sm {
  background-image: 
    linear-gradient(45deg, #ffffff 25%, transparent 25%), 
    linear-gradient(-45deg, #ffffff 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #ffffff 75%), 
    linear-gradient(-45deg, transparent 75%, #ffffff 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  opacity: 0.15;
}

.checkered-bar {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    #ffffff 12px,
    #000000 12px,
    #000000 24px
  );
}

/* Speed lines background effect */
.speed-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 12px
  );
}

/* Glowing Effects & Cards */
.mario-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mario-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 18, 0.5);
  box-shadow: 0 12px 30px -10px rgba(230, 0, 18, 0.3);
}

.glow-red {
  box-shadow: 0 0 25px rgba(230, 0, 18, 0.4);
}

.glow-gold {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.glow-blue {
  box-shadow: 0 0 25px rgba(0, 168, 255, 0.4);
}

/* Buttons Styling */
.btn-mario {
  background: linear-gradient(180deg, #FF2E3E 0%, #E60012 100%);
  box-shadow: 0 6px 0 #9E000C, 0 10px 20px rgba(230, 0, 18, 0.4);
  transition: all 0.15s ease-in-out;
}

.btn-mario:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FF4553 0%, #F50014 100%);
  box-shadow: 0 8px 0 #9E000C, 0 14px 25px rgba(230, 0, 18, 0.5);
}

.btn-mario:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #9E000C, 0 4px 10px rgba(230, 0, 18, 0.3);
}

.btn-gold {
  background: linear-gradient(180deg, #FFE135 0%, #FFBD00 100%);
  color: #111;
  box-shadow: 0 6px 0 #B88600, 0 10px 20px rgba(255, 215, 0, 0.3);
  transition: all 0.15s ease-in-out;
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFEE55 0%, #FFCA00 100%);
  box-shadow: 0 8px 0 #B88600, 0 14px 25px rgba(255, 215, 0, 0.4);
}

.btn-gold:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #B88600, 0 4px 10px rgba(255, 215, 0, 0.2);
}

.btn-blue {
  background: linear-gradient(180deg, #33B9FF 0%, #0091EA 100%);
  box-shadow: 0 6px 0 #005F99, 0 10px 20px rgba(0, 168, 255, 0.3);
  transition: all 0.15s ease-in-out;
}

.btn-blue:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #59C6FF 0%, #009DF0 100%);
  box-shadow: 0 8px 0 #005F99, 0 14px 25px rgba(0, 168, 255, 0.4);
}

.btn-blue:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #005F99, 0 4px 10px rgba(0, 168, 255, 0.2);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 15px rgba(230, 0, 18, 0.6)); }
  50% { opacity: 1; filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9)); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel {
  background: rgba(21, 27, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Item Hover Overlay */
.gallery-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-thumbnail:hover {
  border-color: var(--mario-yellow);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25);
}

.gallery-thumbnail img {
  transition: transform 0.5s ease;
}

.gallery-thumbnail:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.9) 0%, rgba(11, 14, 20, 0.2) 60%, rgba(11, 14, 20, 0) 100%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal Specific Styling */
#lightbox-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox-modal.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#lightbox-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lightbox-content-box {
  max-width: 90vw;
  max-height: 85vh;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(230, 0, 18, 0.3);
}

/* Responsive Embed Container */
.aspect-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.aspect-video-container iframe,
.aspect-video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}
