/* CodeYou - Custom Stylesheet with Glassmorphism & Modern UI */
:root {
  --bg-dark: #070714;
  --bg-dark-card: rgba(18, 18, 38, 0.75);
  --bg-dark-card-hover: rgba(28, 28, 58, 0.85);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-dark-hover: rgba(168, 85, 247, 0.4);
  
  --bg-light: #f4f6fc;
  --bg-light-card: rgba(255, 255, 255, 0.85);
  --bg-light-card-hover: rgba(255, 255, 255, 0.98);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-light-hover: rgba(124, 58, 237, 0.35);

  --accent-gradient: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #06b6d4 100%);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #d946ef;
}

/* Base Body Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

body.dark {
  background-color: var(--bg-dark);
  color: #e2e8f0;
}

body.light {
  background-color: var(--bg-light);
  color: #1e293b;
}

/* Aurora Glow Background */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.dark .aurora-blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.25;
  border-radius: 50%;
  animation: float 20s infinite alternate ease-in-out;
}

.dark .blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.dark .blob-2 {
  top: 40%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: -5s;
}

.dark .blob-3 {
  bottom: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d946ef 0%, transparent 70%);
  animation-delay: -10s;
}

.light .aurora-blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.18;
  border-radius: 50%;
}

.light .blob-1 {
  top: -10%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
}

.light .blob-2 {
  top: 45%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Glassmorphism Classes */
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.dark .glass-card:hover {
  border-color: var(--border-dark-hover);
  box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.2);
}

.light .glass-card {
  background: var(--bg-light-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.light .glass-card:hover {
  border-color: var(--border-light-hover);
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.12);
}

.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dark .glass-nav {
  background: rgba(10, 10, 24, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

.light .glass-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

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

/* Gradient Buttons */
.btn-primary-grad {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-grad:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.45);
}

.btn-primary-grad:active {
  transform: translateY(0);
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 50;
    border-radius: 9999px;
    padding: 8px 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  
  .dark .bottom-nav {
    background: rgba(15, 15, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .light .bottom-nav {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 0;
    color: #94a3b8;
    transition: all 0.2s ease;
    border-radius: 1rem;
  }
  
  .bottom-nav-item.active {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
  }
  
  .bottom-nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.light ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

/* Modal Transitions */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
