/* import google font */
@import url('https://fonts.googleapis.com/css2?family=New+Rocker&display=swap');

/* css variables - easy to change colors */
:root {
  --bg: #0f172a;
  --card-bg: #111827;
  --accent: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

/* reset - remove default browser styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

/* special font class */
.new-rocker-regular {
  font-family: 'New Rocker', system-ui;
  font-weight: 400;
}

/* body - main background */
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  /* height: 100vh;  */

}

header {
  /* margin: 0; */
  padding: 32px;
  position:fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  background-image: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
  text-align: center;
}

/* main heading */
h1 {
  /* text-align: center; */
  font-size: 40px;
  letter-spacing: 1px;
}

/* links */
a {
  text-decoration: none;
}

/* ========== artists page styles ========== */

.main {
  margin-top: 64px;
  padding: 48px;
}

/* grid layout for artist cards */
.grid {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 0.2fr));
  gap: 32px;
}

/* individual artist card */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

/* hover effect on cards */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* card image */
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* card text content area */
.card-content {
  padding: 24px;
}

/* artist name in card */
.card-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--accent);
}

/* meta information (year, etc) */
.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* section headings */
.section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.28px;
  margin-bottom: 5px;
  color: var(--muted);
}

/* members container */
.members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* individual member tag */
.member {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* ========== artist detail page styles ========== */

/* container for detail page */
.container {
  max-width: 1100px;
  margin: auto;
}

/* back link */
.back {
  margin-bottom: 24px;
  display: block;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s ease;
}

.back:hover {
  color: var(--accent);
}

/* artist header section */
.artist-header {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* artist main image */
.artist-header img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* artist info section */
.artist-info h1 {
  font-size: 45px;
  color: var(--accent);
  margin-bottom: 8px;
}

.artist-info .meta {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* section with heading */
.section h2 {
  font-size: 19px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--muted);
}

/* event card */
.event-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* location heading in event */
.event-card h3 {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* dates list */
.dates-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.dates-list li {
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.1);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

/* blur image flagged for nudity */
img[alt="Mamonas Assassinas"] {
  filter: blur(18px);
}

/* label over the blurred image */
.card:has(img[alt="Mamonas Assassinas"]),
.artist-header:has(img[alt="Mamonas Assassinas"]) {
  position: relative;
}

.card:has(img[alt="Mamonas Assassinas"])::after,
.artist-header:has(img[alt="Mamonas Assassinas"])::after {
  content: "Sensitive content";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.card:has(img[alt="Mamonas Assassinas"])::after {
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
}

.artist-header:has(img[alt="Mamonas Assassinas"])::after {
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
}

/* ========== error page styles ========== */

/* error page container */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 24px;
}

/* error content wrapper */
.error-content {
  text-align: center;
  max-width: 700px;
  background: var(--card-bg);
  padding: 64px 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* error code number */
.error-code {
  font-size: 120px;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

/* error message heading */
.error-message {
  font-size: 28px;
  color: var(--text);
  margin: 24px 0 16px 0;
  font-weight: 600;
}

/* error description text */
.error-description {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* back to home button */
.error-back-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.error-back-btn:hover {
  transform: translateY(-2px);
}

/* ========== responsive design ========== */

/* tablet size */
@media (max-width: 900px) {
  .artist-header {
    grid-template-columns: 1fr;
  }
}

/* mobile size */
@media (max-width: 600px) {
  body {
    padding: 24px;
  }

  h1 {
    font-size: 32px;
  }

  .artist-info h1 {
    font-size: 35px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 100px;
  }

  .error-message {
    font-size: 26px;
  }

  .error-content {
    padding: 48px 32px;
  }
}


/***************************** filters *********************/
/* ========== FILTERS SECTION ========== */

.filters {
  margin: 0px 32px;
  background: var(--card-bg);
  padding: 32px;
  border-radius: 16px;
  border: 3px solid var(--border);
}

.filters-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--accent);
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.filter-group h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}

.filter-group input[type="number"],
.filter-group input[type="date"],
.filter-group input[type="text"] {
  width: 140px;
  padding: 8px 12px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-group input:focus {
  border-color: var(--accent);
}

/* CHECKBOX GROUP */

.checkbox-group {
  display: flex;
  gap: 6px;
}

.checkbox-group label {
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-group input {
  margin-right: 6px;
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

/* BUTTONS */

.filter-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.reset-btn {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

.reset-btn:hover {
  color: var(--accent);
}