/* =========================================
   CFF HUB 2026 - CORE STYLES
   Theme: Midnight Ocean (Glassmorphism)
   ========================================= */

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --cff-bg: #0f0f1a;
  --cff-glass: rgba(255, 255, 255, 0.05);
  --cff-glass-border: rgba(255, 255, 255, 0.1);
  --cff-primary: #9333ea;  /* Purple 600 */
  --cff-accent: #f97316;   /* Orange 500 */
}

/* 1. SCROLLBAR MODERN (Minimalist & Haptic Feel) [web:21][web:25] */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hide Scrollbar Utility (untuk Carousel Horizontal) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 2. GLASSMORPHISM UTILITIES [web:23][web:27] */
.glass-panel {
  background: var(--cff-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cff-glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(147, 51, 234, 0.3); /* Purple Glow */
}

/* 3. MICRO-INTERACTIONS & ANIMATIONS [web:22][web:30] */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0px rgba(147, 51, 234, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(147, 51, 234, 0); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Page Transitions (Masuk dari bawah & Fade) */
.page-enter {
  animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 4. UTILITY HELPERS */
/* Mencegah Text Selection agar terasa seperti Native App */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Tap Highlight (Hilangkan kotak biru saat tap di Android) */
* {
  -webkit-tap-highlight-color: transparent;
}
