/* Hype Mekan Konya - Optimized Ultra-Sleek Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ig-pink: #e1306c;
  --ig-purple: #833ab4;
  --ig-orange: #f56040;
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --cyber-gradient: linear-gradient(135deg, #e1306c 0%, #833ab4 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-body);
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* FIXED MOBILE BOTTOM NAV */
nav.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  z-index: 50 !important;
}

/* Typography */
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.font-body {
  font-family: var(--font-body);
}

/* Clean Panels */
.clean-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dark .clean-panel {
  background: #0f141e;
  border: 1px solid rgba(30, 41, 59, 0.7);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-nav {
  background: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Compact Instagram Story Ring */
.story-ring {
  background: var(--ig-gradient);
  padding: 1.5px;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.story-ring:hover {
  transform: scale(1.05);
}

/* Dynamic Gradients */
.gradient-text {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyber-gradient-bg {
  background: var(--ig-gradient);
}

/* Card Hover Effects */
.card-hover {
  will-change: transform;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
}

/* Active Press Shrink */
.active-press {
  transition: transform 0.08s ease;
}
.active-press:active {
  transform: scale(0.94);
}

/* Floating Emoji Particle Animation */
@keyframes float-up-fade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.2);
  }
}

.hype-particle {
  position: fixed;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  z-index: 250;
  animation: float-up-fade 0.6s ease-out forwards;
}

/* Custom Fast Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.5);
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal Backdrops & Animations */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reels-overlay {
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 200;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal {
  animation: modal-appear 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile & Desktop Reels Container */
.reels-phone-container {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: #000000;
}

@media (min-width: 640px) {
  .reels-phone-container {
    height: 80vh;
    max-height: 80vh;
    max-width: 360px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(225, 48, 108, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}
