/**
 * Lightning Talk Circle - Fun & Exciting Design System
 * 楽しくてワクワクする、分かりやすいデザインシステム
 */

:root {
  /* 🎨 Primary Colors - メインカラー */
  --color-primary-50: #f0fdf4;
  --color-primary-100: #dcfce7;
  --color-primary-200: #bbf7d0;
  --color-primary-300: #86efac;
  --color-primary-400: #4ade80;
  --color-primary-500: #22c55e;
  --color-primary-600: #16a34a;
  --color-primary-700: #15803d;
  --color-primary-800: #166534;
  --color-primary-900: #14532d;

  /* ⚡ Accent Colors - アクセントカラー */
  --color-accent-yellow: #fbbf24;
  --color-accent-orange: #fb923c;
  --color-accent-pink: #f472b6;
  --color-accent-purple: #a78bfa;
  --color-accent-blue: #60a5fa;
  --color-accent-cyan: #22d3ee;

  /* 🌈 Gradient Presets - グラデーション */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-primary-600) 100%);
  --gradient-sunset: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  --gradient-candy: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
  --gradient-ocean: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  --gradient-rainbow: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);

  /* 📏 Spacing System - スペーシング */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-2xl: 3rem;    /* 48px */
  --spacing-3xl: 4rem;    /* 64px */

  /* 📐 Border Radius - 角丸 */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;  /* 完全な円 */

  /* 🎭 Shadows - 影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-colorful: 0 10px 30px rgba(34, 197, 94, 0.2);

  /* 🏃 Animations - アニメーション */
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  /* 🔤 Typography - タイポグラフィ */
  --font-display: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-body: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */

  /* 📊 Z-index Layers - レイヤー */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-popover: 400;
  --z-tooltip: 500;
  --z-notification: 600;
  --z-top: 999;
}

/* 🌙 Dark Mode Variables */
[data-theme="dark"] {
  --color-bg-primary: #1a1a1a;
  --color-bg-secondary: #2d2d2d;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
}

/* 🎉 Fun Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

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

@keyframes sparkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes slide-in-bottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-scale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* 🎯 Utility Classes */
.animate-bounce { animation: bounce 1s var(--animation-bounce) infinite; }
.animate-wiggle { animation: wiggle 0.5s var(--animation-elastic) infinite; }
.animate-pulse { animation: pulse 2s var(--animation-smooth) infinite; }
.animate-float { animation: float 3s var(--animation-smooth) infinite; }
.animate-sparkle { animation: sparkle 1.5s var(--animation-smooth) infinite; }

/* 🌈 Gradient Text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-rainbow {
  background: var(--gradient-rainbow);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease infinite;
}

/* 🎪 Fun Hover Effects */
.hover-grow {
  transition: transform 0.3s var(--animation-bounce);
}
.hover-grow:hover {
  transform: scale(1.1);
}

.hover-rotate {
  transition: transform 0.3s var(--animation-elastic);
}
.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-lift {
  transition: all 0.3s var(--animation-smooth);
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* 🎭 Emoji Decorations */
.emoji-spin {
  display: inline-block;
  animation: spin 2s linear infinite;
}

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

/* 📱 Responsive Utilities */
@media (max-width: 640px) {
  :root {
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
  }
}