/* ============================================================================
   Nova Portal OS — Sleek Modern Styling & Glassmorphism Design System
   ============================================================================ */

:root {
  --primary: #007AFF;
  --accent: #FF2D55;
  --bg-color: #0b0f17;
  --surface: rgba(18, 24, 38, 0.72);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size: 15px;
  --blur: 16px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --squircle: 22.5%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Glassmorphism Classes */
.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--surface-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Squircle App Icons */
.ios-squircle {
  border-radius: var(--squircle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.18s ease;
  user-select: none;
}
.ios-squircle:active {
  transform: scale(0.92);
  filter: brightness(0.9);
}

/* iPhone Simulator Bezel */
.iphone-frame {
  width: 100%;
  max-width: 390px;
  height: 780px;
  border-radius: 54px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2e39, #12151d);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.75), inset 0 0 0 2px rgba(255, 255, 255, 0.15), inset 0 0 0 7px #07090e;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 0.4s ease;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

@keyframes eqBarPulse {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.animate-eq {
  animation: eqBarPulse 0.8s ease-in-out infinite;
}

/* Wallpaper Presets */
.wp-aurora-violet {
  background: radial-gradient(circle at 20% 20%, #7b61ff 0%, transparent 45%),
              radial-gradient(circle at 80% 25%, #ff2d55 0%, transparent 50%),
              radial-gradient(circle at 50% 85%, #007aff 0%, transparent 55%),
              linear-gradient(160deg, #0d0814 0%, #170d24 55%, #080c16 100%);
}

.wp-midnight-ocean {
  background: radial-gradient(circle at 25% 15%, #00f2fe 0%, transparent 45%),
              radial-gradient(circle at 75% 65%, #4facfe 0%, transparent 50%),
              linear-gradient(170deg, #020b14 0%, #06192e 60%, #030811 100%);
}

.wp-cyber-neon {
  background: radial-gradient(circle at 20% 30%, #f72585 0%, transparent 45%),
              radial-gradient(circle at 80% 20%, #7209b7 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, #4cc9f0 0%, transparent 55%),
              linear-gradient(160deg, #050505 0%, #10002b 60%, #0a0118 100%);
}

.wp-emerald-breeze {
  background: radial-gradient(circle at 20% 20%, #10b981 0%, transparent 45%),
              radial-gradient(circle at 80% 70%, #06b6d4 0%, transparent 50%),
              linear-gradient(165deg, #041f18 0%, #083328 55%, #02120e 100%);
}

.wp-sunset-gold {
  background: radial-gradient(circle at 20% 25%, #f59e0b 0%, transparent 45%),
              radial-gradient(circle at 80% 30%, #ec4899 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, #6366f1 0%, transparent 55%),
              linear-gradient(165deg, #241018 0%, #301323 50%, #12091f 100%);
}

/* Modals & Overlays */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInUp 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
