/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background: #252542;
    overflow-x: hidden;
    padding-top: 10%;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: brightness(50%) contrast(110%);
  }

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Logo Styling */
.logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

/* Navigation Links */
.nav-links {
    left: 4%;
    position: absolute;
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Styling for the links inside nav-links */
.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

/* Hover effect for links */
.nav-links li a:hover {
    color: #ffcc00;
}

/* Buttons Styling */
.link > a.link {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.link > a.link:hover {
    background: #e6b800;
}

/* Adjust Login Button Position */
#login-btn {
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 7.5%;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Search Bar Styling */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.search-box {
    background: #2c2c3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    width: 300px;
    transition: 0.3s;
}

.search-box:focus {
    outline: none;
    background: #3c3c4e;
    border: 1px solid #ffcc00;
}

.search-btn {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1px;
}

.search-btn:hover {
    background: #e6b800;
}

/* Map Details Box Styling */
#map-details {
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Map Header Styling */
.map-header {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Map Logo Styling */
.map-logo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* Map Info Styling */
.map-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

/* Make sure the map-title does not overlap */
.song-card h2 {
    font-size: 1.8rem;
    color: #ffcc00;
    margin: 0;
    font-weight: bold;
    word-wrap: break-word;
    margin-bottom: 20px;
    border-radius: 8px;
}

.song-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: rgba(40, 40, 58, 0.8);
    padding: 20px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateY(-5px);
}

/* Map Information Styling */
#map-details p {
    font-size: 1.2rem;
    color: white;
    opacity: 0.85;
    margin: 2px 0;
}

/* Links for View Map */
#map-details a {
    text-decoration: none;
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

#map-details a:hover {
    color: #e6b800;
}

/* Map Details Button */
#map-details button {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#map-details button:hover {
    background: #e6b800;
}

.song-card button {
    width: 100%;
    background: #ffcc00;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.song-card button:hover {
    background: #e6b800;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #ffcc00;
    color: black;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.dropdown-toggle:hover {
    background: #e6b800;
}

.dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #28283a;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(40, 40, 58, 0.95);
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

.dropdown-menu a {
    color: #fff;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 204, 0, 0.2);
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 65px;
    box-sizing: border-box;
    justify-content: center;
    align-items: stretch; /* 👈 Ensures all cards match height */
  }
  
  .song-card-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 👈 Spaces content inside */
    gap: 5px;
    background: rgba(40, 40, 58, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    width: 380px;
    max-width: 100%;
    height: 100%; /* 👈 Fill full height of grid cell */
  }
  
  .song-card-list:hover {
    transform: translateY(-5px);
  }
  
  .song-card-list p,
  .song-card-list h2,
  .song-card-list a {
    margin-bottom: 3px; /* 👈 Helps spacing between items */
  }
  
  .song-card-list form {
    margin-top: auto; /* 👈 Pushes the form to the bottom */
  }
  
  .request-grid a {
    text-decoration: none;
    color: #ffcc00;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
  }
  
  .request-grid a:hover {
    color: #e6b800;
  }
  
  @media (max-width: 360px) {
    .song-card-list {
      width: 100%;
    }
  }

  .tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
  }
  
  .tab-buttons button {
    background: #ffcc00;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    color: black;
  }
  
  .tab-buttons button:hover {
    background: #e6b800;
  }
  
  button {
    padding: 6px 12px;
    margin-top: 8px;
    background-color: #28a745;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }
  
  button:hover {
    background-color: #218838;
  }

  .fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
  }
  
  .fade-out {
    animation: fadeOut 0.3s ease forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    to {
      opacity: 0;
    }
  }

  .toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .toggle-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .toggle-buttons button.active {
    background-color: #ffcc00;
  }

  .tab-section {
    display: none;
    animation: fade 0.3s ease-in-out;
  }

  .tab-section.active {
    display: block;
  }

  @keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: #1c1c1e;
    color: #f0f0f0;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    max-width: 400px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
  }
  
  .close-button {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
  }
  
  .close-button:hover {
    color: #fff;
  }

  .changelog-container {
  max-width: 800px;
  margin: 10% auto;
  padding: 20px;
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 255, 128, 0.2);
}

  .edit-changelog-container {
  max-width: 800px;
  margin: 0% auto;
  padding: 20px;
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 255, 128, 0.2);
}

.changelog-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0;
  color: #00ff88;
}

.changelog-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
}

.changelog-entry {
  margin-bottom: 40px;
  padding: 20px;
  border-left: 4px solid #00ff88;
  background-color: #181818;
  border-radius: 6px;
  transition: transform 0.3s;
}

.changelog-entry:hover {
  transform: scale(1.02);
}

.changelog-date {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.changelog-version {
  color: #00ffcc;
  margin-top: 0;
}

.changelog-list {
  list-style-type: disc;
  padding-left: 20px;
}

.changelog-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.privacy-wrapper {
  max-width: 800px;
  padding: 40px;
  background-color: #121212;
  border: 2px solid #00ff88;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
}

.privacy-wrapper h1 {
  color: #00ff88;
  font-size: 2.8rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #00ff88;
  padding-bottom: 10px;
}

.privacy-wrapper h2 {
  color: #00ffc8;
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.privacy-wrapper p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-wrapper a {
  color: #00ffd0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.privacy-wrapper a:hover {
  color: #00ffa0;
}

.rules-wrapper {
  max-width: 900px;
  margin: 1% auto;
  padding: 30px;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 255, 128, 0.2);
}

.rules-title {
  font-size: 2.5rem;
  color: #00ff88;
  text-align: center;
  margin-bottom: 10px;
}

.rules-subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rule-item {
  background-color: #181818;
  padding: 20px;
  border-left: 4px solid #00ff88;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.rule-item:hover {
  transform: scale(1.01);
}

.rule-item h2 {
  color: #00ffcc;
  margin-top: 0;
  font-size: 1.3rem;
}

.rule-item p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0;
}

#sort-toggle-btn {
  margin-left: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background-color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s;
}

#sort-toggle-btn:hover {
  background-color: #e6b800;
}

#sort-toggle-btn i {
  font-size: 16px;
}

/* Top Banner Styles */
.top-banner {
  background: rgba(255, 196, 0, 0.1);
  border-bottom: 2px solid #ffc400;
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  position: fixed;
  top: 86px;
  z-index: 999;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(255, 187, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
}

.top-banner p {
  margin: 0;
  display: inline-block;
}

.close-banner {
  background: none;
  border: none;
  color: #ffbb00;
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 15px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-banner:hover {
  color: #ffffff;
  background-color: #ffc400;
}

/* Ensure content does not overlap with navbar + top banner */
.info-container {
  margin-top: calc(60px + 45px); /* Adjust if navbar or banner height changes */
}

/* Optional: Responsive margin tweak for smaller screens */
@media (max-width: 500px) {
  .info-container {
    margin-top: calc(50px + 50px); /* Adjust for mobile navbar/banner if needed */
  }
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}