/* =============================================================================
   thatsandrew.me — Minimalist Artist Landing Page Stylesheet
   Design Direction D: Minimalist structure with strong electronic artist identity
   ============================================================================= */

:root {
  /* Restrained Dark Palette */
  --bg-main: #101114;
  --bg-card: #222328;
  --bg-card-hover: #29292E;
  --bg-card-secondary: #191A1E;
  
  --text-primary: #FFFFFF;
  --text-secondary: #A6A7AD;
  --text-muted: #73747B;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-event: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden], .section[hidden] {
  display: none !important;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  padding: 40px 20px 48px;
}

/* Main Container: Mobile-first & Desktop Centering (max ~460px) */
.page-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 auto;
}

/* =============================================================================
   A. ARTIST HEADER
   ============================================================================= */
.artist-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0 4px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  background-color: var(--bg-card);
}

.artist-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.artist-name {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

.artist-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  line-height: 1.3;
}

.artist-genre {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =============================================================================
   SECTIONS: HEADINGS & LISTS
   ============================================================================= */
.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding-left: 2px;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  list-style: none;
}

/* =============================================================================
   B. UPCOMING EVENTS
   ============================================================================= */
.event-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-event);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Interactive Event Card with Valid Ticket URL */
a.event-card {
  cursor: pointer;
}

a.event-card:hover, a.event-card:focus-visible {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Inactive Event Card (no ticket URL yet) */
div.event-card {
  cursor: default;
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.event-title-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  min-width: 0;
}

.event-date-highlight {
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-title-divider {
  color: var(--text-muted);
}

.event-title-text {
  color: var(--text-primary);
}

.event-dev-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: 4px;
}

.event-location {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.event-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.event-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: 2px;
}

.event-action svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

a.event-card:hover .event-action svg {
  transform: translate(2px, -2px);
}

.event-action-disabled {
  color: var(--text-muted);
}

/* =============================================================================
   LATEST SET & PERMANENT LINKS (MUSIC & SOCIALS)
   ============================================================================= */
.latest-set-card {
  border-color: var(--border-event);
  background: linear-gradient(180deg, #25262c 0%, #222328 100%);
}

a.latest-set-card:hover, a.latest-set-card:focus-visible {
  border-color: var(--border-hover);
  background: linear-gradient(180deg, #2c2d34 0%, #29292e 100%);
}

.link-card {
  width: 100%;
  min-height: 60px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

/* Active Clickable Card */
a.link-card {
  cursor: pointer;
}

a.link-card:hover, a.link-card:focus-visible {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

a.link-card:hover .link-arrow-icon {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

/* Inactive Card (empty URL placeholder) */
div.link-card {
  cursor: default;
  opacity: 0.72;
}

.link-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

a.link-card:hover .link-icon-box {
  color: var(--text-primary);
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}

.link-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.link-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.link-arrow-box {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-arrow-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-arrow-inactive {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =============================================================================
   D. FOOTER
   ============================================================================= */
.page-footer {
  text-align: center;
  padding-top: 16px;
  margin-top: auto;
}

.footer-domain {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* =============================================================================
   ACCESSIBILITY & FOCUS STYLES
   ============================================================================= */
a:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
