@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --background-color: #121212;
  --foreground-color: #f1f1f1;
  --primary-color: #9b59b6;
  --primary-hover: #8e44ad;
  --secondary-color: #1f1f1f;
  --border-radius: 4px;
}

/* Body, Header, Footer */
body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--foreground-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

header, footer {
  width: 100%;
  max-width: 1200px;
  background-color: var(--secondary-color);
  padding: 20px;
  text-align: center;
}

/* Main och Section */
main {
  width: 90%;
  max-width: 1200px;
}
section {
  padding: 80px 20px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul a {
  color: var(--foreground-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
nav ul a:hover {
  color: var(--primary-color);
}

/* Paragrafer */
p {
  font-size: 18px;
  line-height: 1.6;
}
p a {
  color: var(--foreground-color);
  text-decoration: none;
  transition: color 0.3s;
}
p a:hover {
  color: var(--primary-color);
}

/* Specifik styling för länkar i Gigs */
.event-link {
  color: var(--foreground-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.event-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Rubriker */
h2 {
  font-family: var(--font-secondary);
  font-size: 32px;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-secondary);
  font-size: 24px;
  margin-bottom: 16px;
}
h4 {
  font-family: var(--font-secondary);
  font-size: 18px;
  margin-bottom: 8px;
}

/* Back to top-knappen */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: var(--foreground-color);
  /* background-color: var(--primary-color); */
  padding: 10px 15px;
  border-radius: var(--border-radius);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: var(--primary-hover);
}

/* Media Queries */
@media (max-width: 768px) {
  header, main, footer {
    max-width: 100%;
  }
  nav ul {
    flex-direction: column;
    gap: 16px;
  }
  section {
    padding: 40px 10px;
  }
}
