/* styles.css for MusikaSource.com */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #111;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #000;
  flex-wrap: wrap;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: red;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta {
  background: red;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.products-grid, .free-downloads, .brand-list {
  padding: 4rem 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: red;
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-bar button {
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.filter-bar button:hover,
.filter-bar button.active {
  background: red;
}

/* Search input */
#searchInput {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 400px;
  width: 90%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
}

/* Grid layout */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.product-item, .free-item {
  background: #222;
  padding: 1rem;
  border-radius: 8px;
  flex: 1 1 300px;
  text-align: center;
  max-width: 100%;
}

.product-item img {
  width: 100%;
  border-radius: 4px;
}

.product-item h3, .free-item h3 {
  margin: 1rem 0;
  color: #fff;
}

.product-item button, .free-item a {
  background: red;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  margin-top: 0.5rem;
}

audio {
  margin-top: 0.5rem;
  width: 100%;
  outline: none;
}

.brand-list ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 2rem;
  margin-top: 2rem;
}

.brand-list li {
  background: #222;
  padding: 1rem 2rem;
  border-radius: 6px;
}

footer {
  background: #000;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

footer nav a {
  color: #aaa;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .cta {
    display: inline-block;
    margin-top: 1rem;
  }

  #searchInput {
    max-width: 100%;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }

  .product-item, .free-item {
    width: 90%;
  }

  .brand-list ul {
    flex-direction: column;
    align-items: center;
  }

  .filter-bar {
    flex-direction: column;
    align-items: center;
  }
}
