/* === Reset i font === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9f9fb;
  color: #333;
  line-height: 1.6;
  transition: 0.3s;
  overflow-x: hidden;
}

body.dark-mode {
  background: #0d0d0d;
  color: #f0f0f0;
}

/* === Header === */
header {
  background: #fff;
  color: #333;
  padding-bottom: 4rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

body.dark-mode header {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: inherit;
  flex-wrap: wrap;
  gap: 10px;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 150, 255, 0.4));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

body.dark-mode .nav-links a:hover {
  background: rgba(255, 0, 255, 0.1);
  color: #ff00ff;
}

/* === Przyciski trybu i języka === */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

.mode-btn:hover {
  transform: scale(1.2);
}

.language-switch {
  display: flex;
  border-radius: 20px;
  background: #f0f0f0;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.lang-btn {
  flex: 1;
  padding: 0.4rem 0.8rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  transition: 0.3s;
}

.lang-btn.active {
  background: #007bff;
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: #e0e0e0;
}

body.dark-mode .mode-btn {
  background: #ff00ff;
  color: #fff;
}

body.dark-mode .lang-btn {
  background: transparent;
  color: #eee;
}

body.dark-mode .language-switch {
  background: #222;
  box-shadow: 0 0 6px rgba(255, 0, 255, 0.2);
}

body.dark-mode .lang-btn.active {
  background: #ff00ff;
  color: #fff;
}

/* === Hero === */
.hero {
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg,#e6f3ff,#f9e6ff);
  border-radius: 20px;
  max-width: 1000px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

body.dark-mode .hero {
  background: linear-gradient(135deg,#222,#111);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

.hero h1 {
  font-size: 2.8rem;
  color: #007bff;
  margin-bottom: 1rem;
  font-weight: 700;
}

body.dark-mode .hero h1 {
  color: #00f7ff;
}

/* === Sekcje === */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #7d3cff;
}

body.dark-mode .section h2 {
  color: #ff00ff;
}

/* === Albumy i Nowości === */
.albums, .news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: stretch;
}

/* === Kafelki albumów i news === */
.album, .news-item {
  background: linear-gradient(135deg,#fdfdfd,#e6f3ff);
  padding: 1.2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 540px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

body.dark-mode .album,
body.dark-mode .news-item {
  background: linear-gradient(135deg,#111,#222);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* === Album content flex === */
.album h3, .album p, .news-item h3, .news-item p {
  flex-shrink: 0;
}

.album img, .news-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.album img:hover, .news-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* === Album buttons === */
.album-buttons {
  margin-top: 1rem; 
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.news-item .album-buttons {
  margin-top: 1.5rem; 
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #007bff;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background: #7d3cff;
  box-shadow: 0 4px 15px rgba(125,60,255,0.4);
  transform: scale(1.05);
}

body.dark-mode .btn {
  background: #ff00ff;
  color: #fff;
}

body.dark-mode .btn:hover {
  background: #00f7ff;
  color: #000;
  transform: scale(1.05);
}

/* === Tracklisty i listy === */
.tracklist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
  margin-top: 1.2rem;
  padding-left: 0;
  opacity: 0;
}

.tracklist.open {
  max-height: 1000px;
  padding-left: 1rem;
  opacity: 1;
}

.tracklist li {
  list-style: none;
  counter-increment: li-counter;
  position: relative;
  padding-left: 55px;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-align: left;
  transition: color 0.5s ease, transform 0.3s ease;
  transform: translateY(2px); 
}

.tracklist li::before {
  content: counter(li-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #007bff;
  background: #e0e0ff;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.5s ease, background 0.5s ease;
}

.tracklist li:hover {
  transform: translateX(5px) translateY(2px); 
  color: #007bff;
}

.tracklist li:hover::before {
  color: #fff;
  background: #007bff;
}

body.dark-mode .tracklist li {
  color: #eee;
}

body.dark-mode .tracklist li::before {
  color: #ff00ff;
  background: #222;
  top: 50%;
  transform: translateY(-50%);
}

/* === Animacje === */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsywność === */
@media (max-width: 1024px) {
  .promo.featured {
    flex-direction: column;
    align-items: center;
  }

  .promo-img, .promo-text {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .logo img {
    height: 60px;
  }

  .albums, .news {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

/* === Footer === */
footer {
  background: #fff;
  color: #333;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

body.dark-mode footer {
  background: #111;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

footer .footer-links a {
  color: inherit;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: 500;
}

footer .footer-links a:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

body.dark-mode footer .footer-links a:hover {
  background: rgba(255, 0, 255, 0.1);
  color: #ff00ff;
}

footer .footer-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
/* === Dropdown menu pod "Muzyka" === */
.nav-links li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff; /* białe tło */
  top: 100%;
  left: 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* subtelny cień */
  z-index: 999;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333; /* ciemny tekst jak reszta strony */
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0; /* delikatne podświetlenie */
  color: #000;
}

/* Pokazuj menu po najechaniu */
.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Drobne wyrównanie */
.nav-links > li > a {
  position: relative;
  padding: 10px 15px;
  display: inline-block;
}
/* Podstawowe style dropdown */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  display: none; /* ukryte domyślnie */
  position: absolute;
  top: 100%; /* rozwija się poniżej przycisku */
  left: 50%; /* punkt startowy środka */
  transform: translateX(-50%); /* wyśrodkowanie względem przycisku */
  background-color: #fff; /* lub inne dopasowane do motywu */
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 160px; /* minimalna szerokość menu */
}

.navbar .dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: #333;
  text-decoration: none;
  text-align: center; /* wyśrodkowanie tekstu */
}

.navbar .dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* Pokazanie menu po najechaniu */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
}
/* === FOOTER === */
.footer {
  background: #111;
  color: #ddd;
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 100px;
  filter: drop-shadow(0 0 6px rgba(0,150,255,0.5));
  margin-bottom: 10px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #007bff;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: #007bff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #00aaff;
}

/* === Dark / Light Mode === */
body.dark-mode .footer {
  background: #0d0d0d;
  color: #ccc;
  box-shadow: 0 -5px 20px rgba(255, 0, 255, 0.1);
}

body:not(.dark-mode) .footer {
  background: #f4f4f4;
  color: #333;
}

body:not(.dark-mode) .footer-section h3 {
  color: #111;
}

body:not(.dark-mode) .footer-section ul li a:hover {
  color: #007bff;
}
/* === Footer efekty jak w headerze === */
footer {
  transition: 0.3s;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode footer {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

footer a {
  transition: 0.3s;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-weight: 500;
}

footer a:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  transform: scale(1.05);
}

body.dark-mode footer a:hover {
  background: rgba(255, 0, 255, 0.1);
  color: #ff00ff;
}

.footer-logo img {
  filter: drop-shadow(0 0 6px rgba(0, 150, 255, 0.4));
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}



