/* global style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Intimate, Warm & Futuristic */
  --bg-dark: #0a0510; /* Very deep purple/black */
  --bg-panel: rgba(20, 10, 30, 0.6);
  --accent-primary: #ff2a6d; /* Neon warm pink/red */
  --accent-secondary: #05d9e8; /* Electric blue contrast */
  --text-main: #ffffff;
  --text-muted: #a09cb0;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 10, 30, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --glow-primary: 0 0 20px rgba(255, 42, 109, 0.4);
  --glow-secondary: 0 0 20px rgba(5, 217, 232, 0.4);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: -2;
}

/* Ambient Background blur that changes color (simulated by a div) */
.ambient-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 42, 109, 0.15) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  transition: background 2s ease;
}

/* Utility Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #d91b5c);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--glow-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 42, 109, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Input Fields */
input[type="text"], 
input[type="url"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
  outline: none;
}

input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
}

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

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

/* Mobile Adjustments */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 16px;
  }
}

/* Search Dropdown */
.search-results-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--glow-primary);
  display: none;
  margin-top: 8px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.search-result-item:hover {
  background: rgba(255, 42, 109, 0.2);
}
.search-result-item img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}
.search-result-info h5 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.search-result-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Queue List */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 0.9rem;
}
.queue-item-info {
  display: flex;
  flex-direction: column;
}
.queue-item-info span {
  font-size: 0.75rem;
  color: var(--accent-secondary);
}
.queue-remove-btn {
  background: transparent;
  border: none;
  color: #ff4757;
  cursor: pointer;
  font-size: 1.2rem;
}
.search-bar-wrapper {
  position: relative;
  width: 100%;
}

