/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(270deg, #ffde59, #00ffab, #ff6b6b, #4facfe, #00c9ff, #ffffff, #0f0f0f);
  background-size: 1400% 1400%;
  animation: gradientFlow 25s ease infinite;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* HEADER */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgb(185, 188, 206);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  border-bottom: 3px solid gray;
  gap: 15px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 150px;
}

.nav-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background-color: #ff9900;
  color: #fff;
  outline: none;
}


/* Search Bar */
#searchBar {
  padding: 10px;
  max-width: 300px;
  width: 100%;
  border-radius: 5px;
  border: none;
  background: #2c2c2c;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 1;
  min-width: 150px;
}

/* Profile */
.profile {
  position: relative;
  flex-shrink: 0;
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile:hover img {
  transform: scale(1.1);
}

/* Tooltip */
.tooltip {
  position: absolute;
  top: 60px;
  right: 0;
  width: 220px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(32, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.profile:hover .tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tooltip h4 {
  color: #ff9900;
  margin-bottom: 5px;
}

.tooltip p {
  font-size: 0.9rem;
  color: #ccc;
}

.tooltip .social-links a {
  color: #888;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.tooltip .social-links a:hover {
  color: #00ffe1;
}

/* CONTENT AREA */
.content-area {
  flex: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* PLAYLIST */
.playlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  width: 100%;
}

.circle-card {
  background: #1e1e1e;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 220px;
}

.circle-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.circle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 255, 225, 0.25);
  background: #2a2a2a;
}

.circle-card:hover img {
  transform: scale(1.1);
}

/* FOOTER */
.footer {
  background: #0f0f0f;
  padding: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  width: 100%;
}

/* RESPONSIVE */

/* Tablets and below */
@media (max-width: 900px) {
  .header {
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  #searchBar {
    order: 2;
    max-width: 100%;
    width: 90%;
  }

  .profile {
    order: 4;
  }

  .logo {
    order: 1;
    flex-basis: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  #searchBar {
    order: 2;
    width: 95%;
    max-width: none;
  }

  .profile {
    order: 4;
    margin-top: 10px;
  }
}
/* Ensure layout fills full height */
html, body {
  height: 100%;
}

/* Layout wrapper */
.main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Let content-area grow and push footer down */
.content-area {
  flex: 1;
}

/* Remove any body padding/margin that could cause extra space */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
/* INTRO SECTION */
.intro-section {
  margin: 0 auto 30px;
  text-align: center;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 30px 20px;
  
  /* Animation properties */
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s forwards ease-out;
}

/* Keyframes for sliding in from left */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
