/* Profile dashboard */

.profile-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.profile-hero {
  margin-bottom: 1.25rem;
}

.profile-hero h1 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.profile-summary {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.profile-jumps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-jumps .btn {
  min-width: 128px;
}

.profile-section {
  scroll-margin-top: 1rem;
  margin-top: 1.5rem;
}

.profile-section h2 {
  font-weight: 700;
}

.profile-section-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.collection-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  height: 100%;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

@media (hover: hover) {
  .collection-card:hover {
    border-color: rgba(76,175,80,0.20);
    box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  }
}

.collection-manage-link {
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.3;
}

.collection-card:hover {
  cursor: pointer;
}

.collection-status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.collection-status-private {
  background: #f1f3f2;
  color: #5f666d;
}

.collection-status-shared {
  background: var(--color-primary-soft);
  color: #2e7d32;
}

.saved-events-list {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.saved-events-list .list-group-item {
  border-left: 0;
  border-right: 0;
  border-color: var(--color-border);
}

.saved-event-row {
  position: relative;
  transition: background-color 120ms ease;
}

@media (hover: hover) {
  .saved-event-row:hover {
    background: #fafbfa;
  }
}

.saved-events-list .list-group-item:first-child {
  border-top: 0;
}

.saved-events-list .list-group-item:last-child {
  border-bottom: 0;
}

.saved-event-title {
  font-size: 1.01rem;
  font-weight: 620;
  line-height: 1.25;
}

.saved-event-date {
  min-width: 88px;
  text-align: right;
}

.saved-event-meta {
  font-size: 0.89rem;
}

.saved-event-remove {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.profile-empty-note {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #fafbfa;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.profile-archived summary {
  color: #555d57;
  cursor: pointer;
}

.collection-manage-link:focus-visible,
.saved-event-link:focus-visible {
  outline: none;
}

.collection-card:has(.collection-manage-link:focus-visible),
.saved-event-row:has(.saved-event-link:focus-visible) {
  border-color: rgba(76, 175, 80, 0.42);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

#account .card-body {
  padding: 1.25rem;
}

@media (max-width: 767.98px) {
  .profile-wrap {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .profile-jumps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .profile-jumps .btn {
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.84rem;
  }

  .profile-section {
    margin-top: 1.25rem;
  }

  .saved-event-layout {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .saved-event-main {
    width: 100%;
  }

  .saved-event-mobile-date {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .saved-event-remove {
    align-self: flex-end;
  }

  .section-heading-row {
    align-items: flex-start !important;
  }

  .calendar-button {
    width: 100%;
  }
}
