/* =======================================
   Base Styling
======================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

/* Backdrop when menu open */
body.menu-open::after {
  content: "";
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  pointer-events: none; /* ✅ allows clicks through */
}


a {
  color: #1E88E5;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
  color: #0d47a1;
}

a:focus,
button:focus {
  outline: 2px solid #2196F3;
}

/* Headings */
h1, h2 {
  font-size: calc(1.3125rem + .75vw);
  font-weight: bold;
  color: var(--bs-heading-color);
  margin-bottom: 8px;
  margin-top: 30px;
}

h3 {
  font-weight: bold;
  color: #101010;
  margin-bottom: 10px;
}

/* Navbar container spacing */
.navbar {
  padding-left: 12px;
  padding-right: 12px;
  align-items: center;
}

.logo-img {
  height: 50px;               /* adjust for your header height */
  width: auto;
  display: block;
 ;
}


/* Brand styling */
.navbar-brand .brand-text,
.navbar-brand {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 1.15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 10px;
  font-size: 20px;
  font-family: 'FontAwesome';
}

/* Toggler styling */
.navbar-toggler {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #69d0f3;
  color: white;
  padding: 8px;
  flex-shrink: 0;
}

/* Replace default icon with Font Awesome bars */
.navbar-toggler::after {
  content: "\f0c9";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  color: white;
  display: inline-block;
  line-height: 1;
}


/* Nav link polish */
.navbar-nav .nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff !important;
}

.navbar-nav .nav-link:hover {
  background: #69d0f3;
  color: #000 !important;
  text-decoration: none;
}

/* Social icons */
.social-icons .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.social-icons .nav-link i {
  font-size: 18px;
  color: black;
}

.social-icons .nav-link:hover,
.social-icons .nav-link:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Search input */
#search-input {
  min-width: 180px;
  max-width: 420px;
}

#clear-search {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


/* ✅ Results grid layout */
.search-results,
.list-results {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* mobile default */
  gap: 20px;
  margin: 20px auto;
  padding: 10px;
  max-width: 1200px;
}

/* Tablets: 2 columns */
@media screen and (min-width: 768px) {
  .search-results,
  .list-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptops & desktops: exactly 3 columns */
@media screen and (min-width: 1024px) {
  .search-results,
  .list-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ Song card consistency */
.song-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 12px;
  display: flex;
  align-items: center;
  min-height: 110px; /* keeps rows aligned */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.song-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.song-box img {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  margin-right: 12px;
  object-fit: cover;
}
.song-info {
  flex: 1;
  min-width: 0;
}
.song-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artist-name {
  font-size: 0.9rem;
  color: #555;
}
.duration {
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

/* ✅ Base banner style */
#results-message {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 15px auto;
  max-width: 1200px;
  text-align: center;
}

/* ✅ Category-specific colors */
.results-search {
  background: #c62828; /* red for search results */
}
.results-recent {
  background: #69d0f3; /* deep blue for recent songs */
}
.results-topzed {
  background: #000000d6; /* green for Top Zed */
}
.results-rnb {
  background: #6a1b9a; /* purple for RnB */
}





/* =======================================
   Responsive adjustments
======================================= */
@media (max-width: 768px) {
 
  

  .navbar-nav {
    width: 100%;
    margin-top: 8px;
    flex-direction: column;
    gap: 8px;
  }

  .social-icons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  /* Make search full width on mobile */
  form.d-flex {
    width: 100%;
    padding: 0 12px 12px 12px;
    margin-bottom: -10px;
  }

  #search-input {
    width: 100%;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .navbar-nav {
    flex-direction: row;
    gap: 20px;
  }

  .navbar-toggler {
    display: none;
  }
}

/* =======================================
   Search and content styles (unchanged)
======================================= */
.search-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: -50px;
  margin-top: -60px;
}

.search-bar {
  width: 75%;
  padding: 10px 40px 10px 10px;
  border: 2px solid #ccc;
  font-size: 16px;
  margin-top: 75px;
}

.search-icon {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
  pointer-events: none;
}

/* Content container */
.content-container {
  max-width: 80%;
  margin: 10px auto;
  text-align: center;
  padding: 20px;
}

/* Genre and song sections unchanged below */
.genre-container { /* ... keep existing rules ... */ }
.hero { /* ... keep existing rules ... */ }
.song-container { /* ... keep existing rules ... */ }
.song-box { /* ... keep existing rules ... */ }

/* Touch target polish */
.navbar-toggler,
.navbar-brand {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Backdrop when menu open */
body.menu-open::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}


/* =======================================
   Content Container
======================================= */
.content-container {
    max-width: 100%;    
    text-align: center;
    padding: 20px;
}

/* Welcome Section */
.welcome h1 {
    font-size: 32px;
    color: #2196F3;
    font-family: 'Times New Roman', Times, serif;
    margin-top: -100px;
}

.welcome p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

/* =======================================
   Genre & Mood Section
======================================= */
.genre-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.genre-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;;
    color: white;
    padding: 10px;
    width: 300px;
    height: 50px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: 0.3s ease-in-out;
}

.genre-box:hover {
    background-color: #333;
    transform: scale(1.05);
}

.genre-box .blue-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background-color: #2196F3;
    border-radius: 5px 0 0 5px;
}

.genre-box:hover .blue-strip {
    background-color: #0d8bf2;
}

@media screen and (max-width: 768px) {
    .genre-container {
        flex-direction: column;
        align-items: center;
    }
}



/* =======================================
   Song Section
======================================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.song-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    
}

.song-box {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: 650px;
    height: 100px;
    display: flex;
    margin-top: 15px;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.song-box:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

.song-box img {
    width: 120px;
    height: 90px;
    border-radius: 5px;
    margin-right: 10px;
}

.song-info {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    justify-content: center;
    margin-left: 50px

    flex: 1;                  /* allow text to shrink/grow within card */
  min-width: 0;             
}

.song-title {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #333;;
}

.song-title:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-share {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #25D366;
}

.whatsapp-share i {
    position: relative;
    top: -30px; /* Moves only the icon */
}

.duration i {
    font-size: 14px;
    color: #666;
    height: 30px;
}
img[loading="lazy"] {
    min-height: 80px;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

img.loaded {
    opacity: 1;
    background-color: transparent;
}
