/* Basic Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background-color: #000;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
  margin-bottom: 0.8em;
  line-height: 1.2;
}
h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
}
h3 {
    font-size: 1.5em;
}

a {
  color: #e74c3c; /* A consistent link color */
  text-decoration: none;
}
a:hover {
  color: #c0392b;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Slightly more opaque for readability */
  backdrop-filter: blur(5px); /* Optional: frosted glass effect */
  z-index: 1000;
  text-transform: uppercase;
  padding: 10px 0; /* Adjusted padding */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Key for alignment */
  padding: 0 20px;
}

.header-logo {
  height: 50px; /* Control logo size */
  width: auto;
  margin-right: 20px;
}

header nav {
  display: flex;
  gap: 25px; /* Adjust spacing between navigation links */
}

header nav a {
  color: #fff;
  font-weight: bold;
  font-size: 1em; /* Adjusted font size */
  padding: 5px 0;
  transition: color 0.3s ease;
}

header nav a:hover,
header nav a.active-link { /* Style for active link if implemented */
  color: #e74c3c;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
}

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher img {
  width: 28px; /* Slightly smaller flags */
  height: auto;
  margin-left: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.language-switcher img:hover {
  border-color: #fff;
}

/* Cart Indicator */
.cart-indicator {
    font-size: 1.2em;
    color: #fff;
}
#cart-count {
    font-weight: bold;
    margin-left: 4px;
}


/* Main Content Styles */
main {
  margin-top: 70px; /* Adjusted for fixed header height */
  padding-bottom: 80px; /* Space for fixed footer */
}

section {
  position: relative;
  padding: 60px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* Prevents background bleed with negative margins */
}

/* Remove margin between sections - use carefully */
/* section + section { margin-top: -5px; } */ /* This can cause layout issues, better to ensure backgrounds meet */

/* Section Specific Backgrounds & Styles */
#home {
  background-image: url('koncert_umunija.jpg');
  height: calc(100vh - 70px); /* Full viewport height minus header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0; /* Overrides main's margin-top for this specific section */
  padding-top: 70px; /* Account for fixed header */
}
#home h2 { font-size: 2.8em; }
#home p { font-size: 1.2em; max-width: 600px; }


#discography { background-image: url('discography_background.jpg'); }
#videos { background-image: url('events-bkg.jpg'); }
#booking { background-image: url('video-bkg.jpg'); }
#press { background-image: url('S.A.R.S. Press Kit.png'); background-size: auto; background-color: rgba(255, 255, 255, 0.05); }
#social { background-image: url('social_background.jpg'); }


/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  padding: 0 10px; /* Add some padding so items don't touch edges */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px; /* Space between items */
}

.carousel-item {
  flex-shrink: 0; /* Prevent items from shrinking */
  width: 280px; /* Base width for items */
  text-align: center;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Square images for album art */
  object-fit: cover; /* Crop image to fit, no distortion */
  display: block;
  border-radius: 4px; /* Slightly rounded corners */
  margin-bottom: 10px;
}

.carousel-item h3 {
  margin-top: 10px;
  font-size: 1.1em;
  color: #fff;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0; /* Align to left */
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 5px; /* Small padding for buttons */
  pointer-events: none; /* So buttons don't block clicks if track is wider */
}

.carousel-button {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2.5em;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  pointer-events: all; /* Make buttons clickable */
}
.carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}
.carousel-button--left { margin-left: 10px; }
.carousel-button--right { margin-right: 10px; }


/* Video Container Styles */
.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.video-container iframe {
  width: 100%;
  max-width: 480px; /* Max width for individual videos */
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
  height: auto; /* Let height adjust based on aspect ratio */
  border-radius: 4px;
}

/* Social Links Styles */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-links a {
  display: inline-block; /* Allows transform */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links img {
  display: block;
  width: 45px; /* Adjusted size */
  height: 45px;
}

.social-links a:hover {
  transform: scale(1.15);
  filter: brightness(1.3);
}

/* Tour Dates Styles */
#performances { font-size: 1.1em; } /* Base font size for this section */

.tour-dates {
  list-style: none;
  text-transform: uppercase;
  margin-top: 20px;
  padding: 0;
  max-width: 700px; /* Constrain width for better readability */
  margin-left: auto;
  margin-right: auto;
}

.tour-dates li {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute space */
  margin-bottom: 15px;
  padding: 12px 15px;
  font-size: 1.1em; /* Relative to section font size */
  background: rgba(20, 20, 20, 0.8); /* Darker, slightly transparent background */
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.tour-dates li strong {
  min-width: 80px; /* Ensure date part has enough space */
  margin-right: 15px;
  color: #e74c3c; /* Highlight date */
}
.tour-dates li span { /* For event name/location */
    flex-grow: 1;
    text-align: left;
}

.tour-dates img {
  width: 30px; /* Slightly smaller flags */
  height: auto;
  margin-left: 15px;
}

.tour-nav {
  margin: 30px 0 10px;
  text-align: center;
}
.tour-button  {
  font-size: 1.1em;
  text-transform: uppercase;
  color: #fff;
  background-color: #e74c3c;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.tour-button:hover {
  background-color: #c0392b;
  color: #fff;
}

/* Press Kit Link */
.press-download-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: white;
  border-radius: 5px;
  font-weight: bold;
}
.press-download-link:hover {
  background-color: #c0392b;
  color: white;
}

/* Booking Info Styles */
.booking-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 30px auto;
  gap: 30px; /* Space between contact cards */
  max-width: 1000px;
}

.booking-info .contact {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 320px; /* Max width for individual contact cards */
}
.booking-info .contact h3 { color: #e74c3c; }
.booking-info .contact p { margin: 8px 0; }


/* Shop Styles */
.shop-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0; /* Only vertical padding */
}

.product-category {
  margin-bottom: 40px;
}
.product-category h3 {
    text-align: left;
    margin-left: 10px; /* Align with grid padding */
    font-size: 1.8em;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Slightly smaller min for more items */
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background: #1a1a1a; /* Darker card background */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ccc; /* Lighter text color for dark cards */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Ensure images are square */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.product-card h4 {
  margin: 10px 0;
  font-size: 1.2em;
  color: #fff; /* Brighter title */
  flex-grow: 1; /* Allow title to take space if description is short */
}
.product-card p {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.price {
  font-weight: bold;
  color: #e74c3c; /* Highlight price */
  font-size: 1.3em;
  margin: 10px 0;
}

.buy-button {
  width: 100%;
  padding: 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: auto; /* Push button to bottom */
}

.buy-button:hover {
  background: #c0392b;
}


/* Footer Styles */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Consistent with header */
  backdrop-filter: blur(5px);
  text-align: center; /* Center align footer content */
  padding: 15px 20px;
  color: #aaa; /* Lighter footer text */
  z-index: 1000;
  font-size: 0.9em;
  display: flex; /* For aligning logo and text */
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-logo {
    width: 35px;
    height: auto;
    opacity: 0.7;
}


/* Past Dates Page Specific (if any, from original) */
.past-dates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}
.year-section {
  margin: 40px 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 20px;
}
.year-section h2 {
  text-align: left;
  margin-bottom: 20px;
  font-size: 2em;
}
.tour-dates-past li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  padding: 10px; /* Increased padding */
  background: rgba(0, 0, 0, 0.836);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tour-dates-past li img {
  width: 35px;
  height: auto;
  margin-left: 10px;
}
.tour-dates-past strong {
  min-width: 50px;
  display: inline-block;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .carousel-item {
        width: calc(50% - 10px - 10px); /* (100% / 2 items) - gap. 20px gap means 10px from each side of gap per item */
        /* Simplified: width: calc( (100% - 20px) / 2 ); for 2 items and 20px gap */
    }
     .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
  .header-content {
    position: relative; /* For absolute positioning of nav */
  }
  .header-logo {
      height: 40px;
  }
  header nav {
    display: none; /* Hidden by default, JS toggles 'active' */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    gap: 0; /* Remove gap for stacked items */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  header nav.active {
    display: flex;
  }
  header nav a {
    padding: 12px 20px;
    text-align: left; /* Align text to left */
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  header nav a:last-child {
      border-bottom: none;
  }
  .menu-toggle {
    display: block; /* Show hamburger */
  }

  #home h2 { font-size: 2em; }
  #home p { font-size: 1em; }

  .carousel { padding: 0 5px; } /* Reduce padding on mobile */
  .carousel-item {
    width: calc(100% - 10px); /* One item almost full width, considering carousel padding */
    /* For single item view: width: 100%; */
  }
  .carousel-button { font-size: 2em; padding: 3px 10px;}

  .video-container iframe { max-width: 100%; }

  .tour-dates li { font-size: 1em; flex-direction: column; align-items: flex-start; }
  .tour-dates li strong { margin-bottom: 5px; }
  .tour-dates img { margin-left: 0; margin-top: 5px;}

  .booking-info { flex-direction: column; }
  .booking-info .contact { max-width: none; /* Allow full width */ }
  
  .products {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Smaller cards on mobile */
    gap: 15px;
  }
  .product-card { padding: 15px; }

  footer {
      font-size: 0.8em;
      padding: 10px;
      flex-direction: column; /* Stack logo and text on small screens */
  }
  .footer-logo { margin-bottom: 5px; }
}

@media (max-width: 480px) {
    h2 { font-size: 1.8em; }
    .header-logo { height: 35px; margin-right: 10px; }
    .language-switcher img { width: 24px; margin-left: 6px; }
    .cart-indicator { font-size: 1em; }
    
    .carousel-item {
        width: 100%; /* Ensure single item truly fills on very small screens */
    }
    .carousel-track {
        gap: 10px; /* Reduce gap if items are 100% to avoid overflow with padding */
    }

    .products {
        /* Single column for very small screens */
        grid-template-columns: 1fr;
    }
    .product-card { font-size: 0.95em; }
    .price { font-size: 1.2em; }
    .buy-button { padding: 10px; font-size: 0.9em; }

    .social-links img { width: 35px; height: 35px; }
    .tour-button { padding: 10px 20px; font-size: 1em;}

    .modal-content {
        padding: 20px;
    }
    .modal-content h4 {
        font-size: 1.2em;
    }
    .platform-button {
        font-size: 1em;
        padding: 10px 15px;
    }
}

.listen-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.listen-button:hover {
    background-color: #45a049;
}

/* Listen Button in Carousel */
.carousel-item .listen-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.carousel-item .listen-button:hover {
    background-color: #c0392b;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: #fff;
}

.modal-content h4 {
    margin-bottom: 25px;
    font-size: 1.4em;
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.platform-button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    color: white;
}

.platform-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.platform-button.spotify { background-color: #1DB954; }
.platform-button.deezer { background-color: #FEAA2D; }
.platform-button.youtube-music { background-color: #FF0000; }