/* Global Styles */
:root {
  --primary-color: #1db954;
  --primary-hover: #1ed760;
  --dark-bg: #121212;
  --dark-card: #181818;
  --dark-text: #b3b3b3;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #1db954 0%, #191414 100%);
  --glass-bg: rgba(24, 24, 24, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--dark-bg);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  flex: 1;
  padding-top: 80px; /* Navbar height */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.text-spotify {
  color: var(--primary-color);
}

.text-secondary-c {
  color: var(--dark-text);
}

/* Glassmorphism */
.glass-effect {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-effect-footer {
  background: var(--dark-card);
  border-top: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.3);
}

/* Buttons */
.btn-spotify {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-spotify:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(29, 185, 84, 0.15) 0%,
    rgba(18, 18, 18, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Search Input */
.search-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.search-input {
  background: var(--dark-card);
  border: 2px solid var(--glass-border);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  padding-right: 140px; /* Space for button */
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-input:focus {
  background: var(--dark-card);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.15);
  color: var(--white);
}

/* .search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 40px;
} */

/* Result Card */
.result-card {
  /* display: none; - Managed by parent #result-content */
  animation: slideUp 0.5s ease;
}

.bg-dark-card {
  background-color: var(--dark-card);
}

.br-10 {
  border-radius: 10px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.album-art {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(29, 185, 84, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

/* Footer links hover */
.hover-white:hover {
  color: var(--white) !important;
}

/* Loading Spinner */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.spotify-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(29, 185, 84, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal and Progress Bar */
.modal-content.glass-card {
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.progress {
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.progress-bar {
  background-color: var(--primary-color);
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}
