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

:root {
  --color-bg: #0f0f1a;
  --color-card: #1a1a2e;
  --color-primary: #6c5ce7;
  --color-text: #ffffff;
  --color-subtext: #a0aec0;
  --color-btn-bg: #6c5ce7;
  --color-btn-text: #ffffff;
  --color-news-bg: #2d1b69;
  --color-news-text: #e9d5ff;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  background-image: var(--bg-mobile, none);
  background-size: cover;
  background-position: center top;
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 4rem;
}

@media (min-width: 768px) {
  body {
    background-image: var(--bg-desktop, none);
    background-position: center center;
    background-attachment: fixed;
  }
}

/* Backdrop when background image is set */
body.has-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Profile ───────────────────────────────────────────────────────────────── */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--color-subtext);
  text-align: center;
  line-height: 1.4;
}

/* ── News ──────────────────────────────────────────────────────────────────── */

.news {
  background: var(--color-news-bg);
  border-radius: 14px;
  overflow: hidden;
}

.news-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  text-decoration: none;
  color: var(--color-news-text);
  transition: opacity 0.2s;
}

.news-inner:hover { opacity: 0.85; }
.news-inner.no-link { cursor: default; }

.news-emoji { font-size: 1.1rem; flex-shrink: 0; }

.news-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.news-arrow { font-size: 1rem; flex-shrink: 0; opacity: 0.7; }

/* ── Link buttons ──────────────────────────────────────────────────────────── */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  gap: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.93;
}

.link-btn:active { transform: translateY(0); box-shadow: none; opacity: 1; }

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.link-label {
  flex: 1;
  text-align: center;
  padding-right: 22px; /* visually center the label past the icon */
}

/* ── Concerts ──────────────────────────────────────────────────────────────── */

.concerts { display: flex; flex-direction: column; gap: 0.75rem; }

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-subtext);
  text-align: center;
  margin-bottom: 0.125rem;
}

.concert-card {
  background: var(--color-card);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.concert-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  gap: 1px;
}

.concert-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.concert-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-subtext);
}

.concert-info { flex: 1; min-width: 0; }

.concert-venue {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-city {
  font-size: 0.82rem;
  color: var(--color-subtext);
  margin-top: 1px;
}

.concert-time {
  font-size: 0.78rem;
  color: var(--color-subtext);
  margin-top: 2px;
}

.concert-ticket {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: var(--color-primary);
  color: var(--color-btn-text);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.concert-ticket:hover { opacity: 0.85; }

/* ── Past concerts ─────────────────────────────────────────────────────────── */

.past-concerts { display: flex; flex-direction: column; gap: 0.5rem; }

.past-concerts-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-subtext);
  line-height: 1.9;
  opacity: 0.75;
}

.hidden { display: none !important; }
