/* Root Variable Definitions */
:root {
  --brand-primary: #8DE0D0;
  --brand-secondary: #FFB3C6;
  --brand-accent: #FFD166;
  --brand-dark: #2D2D2D;
  --brand-light: #F9F9F7;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', 'Pretendard', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

/* Claymorphism Effects */
.clay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  box-shadow: inset 2px 2px 5px rgba(255,255,255,0.4), 
              inset -2px -2px 5px rgba(0,0,0,0.1), 
              4px 4px 10px rgba(0,0,0,0.1);
}

.clay-button:active {
  transform: scale(0.95);
}

.clay-card {
  background: white;
  padding: 2rem;
  border-radius: 3rem;
  border: 2px border-white/50;
  backdrop-filter: blur(12px);
  box-shadow: 10px 10px 30px rgba(0,0,0,0.05), 
              inset 2px 2px 10px rgba(255,255,255,0.7);
}

/* Navigation Blur */
.nav-blur {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Buttons */
.floating-button {
  width: 2.12rem;
  height: 2.12rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .floating-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08), 
                inset 0 2px 2px white;
  }
}

.floating-button:hover {
  transform: scale(1.1);
}

/* YouTube Preview Overlay */
.video-preview-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-preview-container:hover .play-button {
    background: rgba(141, 224, 208, 0.95); /* brand-primary */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #2D2D2D; /* brand-dark */
    margin-left: 5px;
}

/* Loading Spinner (Clay style) */
#games-loader {
    display: none;
    justify-content: center;
    padding: 2rem 0;
}

.clay-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 
        8px 8px 12px rgba(0, 0, 0, 0.05),
        -8px -8px 12px rgba(255, 255, 255, 0.9),
        inset 4px 4px 6px rgba(0, 0, 0, 0.02),
        inset -4px -4px 6px rgba(255, 255, 255, 0.9);
    position: relative;
    animation: rotate 1s linear infinite;
}

.clay-spinner::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Slider specific styles */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  transition: transform 2s ease-in-out, opacity 1s ease-in-out;
  z-index: 2;
}

.slide.exit {
  opacity: 1;
  transform: translateX(-100%);
  transition: transform 2s ease-in-out, opacity 1s ease-in-out;
  z-index: 1;
}

/* Custom shadow utilities to match Tailwind config */
.shadow-soft {
  box-shadow: 0 10px 30px rgba(141, 224, 208, 0.2);
}

.shadow-clay {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.shadow-inset {
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.05), 
              inset -6px -6px 12px rgba(255,255,255,0.8);
}
