/* ============================================
   GIGATLAS — Neo-Brutalist Design System
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds */
  --cream: #F5F0EB;
  --white: #FFFFFF;

  /* Text */
  --black: #1A1A1A;
  --gray: #555555;
  --muted: #888888;
  --light: #aaaaaa;

  /* Accents */
  --orange: #E8652D;
  --green: #2DB87A;
  --yellow: #E8B82D;
  --teal: #3AAFB0;
  --lavender: #B8B0F5;

  /* Borders & Shadows */
  --border: 3px solid #1A1A1A;
  --border-soft: 2px solid #D5D0CB;
  --shadow: 5px 5px 0px #1A1A1A;
  --shadow-lg: 7px 7px 0px #1A1A1A;
  --shadow-sm: 3px 3px 0px #1A1A1A;

  /* Radius */
  --r: 20px;
  --r-sm: 16px;
  --r-xs: 12px;
  --r-pill: 100px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background: var(--white);
  border-bottom: var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
  border-color: var(--black);
  background: var(--cream);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 64px;
  border-bottom: var(--border);
  background: var(--cream);
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--black);
}

.hero-sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 440px;
}

/* KPI Bubbles */
.hero-kpis {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.bubble {
  padding: 24px 28px;
  border-radius: var(--r);
  border: var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 110px;
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.bubble:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.bubble-number {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1;
}

.bubble-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}

.bubble.orange { background: var(--orange); color: #fff; }
.bubble.green  { background: var(--green);  color: #fff; }
.bubble.yellow { background: var(--yellow); color: var(--black); }
.bubble.teal   { background: var(--teal);   color: #fff; }

/* Decorative Blobs */
.blob {
  position: absolute;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  z-index: 1;
  opacity: 0.5;
}

.blob-1 {
  width: 120px;
  height: 120px;
  background: var(--orange);
  top: 20px;
  right: 10%;
  opacity: 0.15;
}

.blob-2 {
  width: 80px;
  height: 80px;
  background: var(--yellow);
  bottom: 30px;
  right: 25%;
  border-radius: 50%;
  opacity: 0.2;
}

.blob-3 {
  width: 60px;
  height: 60px;
  background: var(--lavender);
  top: 50%;
  left: 3%;
  opacity: 0.25;
}

/* ============================================
   LABELS
   ============================================ */

.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */

.section {
  padding: 64px 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============================================
   CONCERT GRID
   ============================================ */

.concerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ============================================
   CONCERT CARD
   ============================================ */

.concert-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concert-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.concert-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--black);
}

/* Card Image */
.concert-image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  position: relative;
  border-bottom: var(--border);
}

.concert-image-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease, transform 0.4s ease;
  opacity: 0;
}

.concert-image-placeholder.loaded {
  opacity: 1;
}

.concert-card:hover .concert-image-placeholder.loaded {
  transform: scale(1.03);
}

/* Card Body */
.concert-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.concert-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 8px;
}

.concert-artist {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.concert-genre {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  background: var(--cream);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
  width: fit-content;
}

.concert-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid var(--cream);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.concert-venue {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.concert-location {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.concert-location::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.concert-time {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--cream);
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--cream);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Legacy loading class */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}

.pagination button {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  border: var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 14px 32px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.pagination button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--black);
}

.pagination button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
  border-color: #D5D0CB;
  color: var(--muted);
}

.pagination .page-info {
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--cream);
  padding: 48px 0;
  border-top: var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  max-width: 400px;
}

.footer-credit {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

.footer-credit a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.footer-credit a:hover {
  opacity: 0.7;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: center;
}

.ftag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border: 1px solid #444;
  border-radius: var(--r-pill);
  color: #888;
}

.ftag.accent {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 48px;
  }

  .concerts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 56px;
  }

  .nav-logo {
    font-size: 22px;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-kpis {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bubble {
    padding: 18px 22px;
    min-width: 95px;
  }

  .bubble-number {
    font-size: 26px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 28px;
  }

  .concerts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .concert-artist {
    font-size: 20px;
  }

  .pagination {
    gap: 12px;
    margin-top: 40px;
  }

  .pagination button {
    padding: 12px 22px;
    font-size: 12px;
  }

  .footer {
    padding: 36px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-tags {
    align-self: flex-start;
  }

  .blob { display: none; }
}

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

  .hero-kpis {
    gap: 10px;
  }

  .bubble {
    padding: 14px 16px;
    min-width: 80px;
  }

  .bubble-number {
    font-size: 22px;
  }

  .bubble-label {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}
