:root {
  --primary-purple: #6d29d9;
  --text-gray: #434343;
  --text-gray-light: #434343cc;
  --text-gray-lighter: #434343b2;
  --border-light: #12202324;
  --border-gray: #f2f2f2;
  --background-light: #7676801f;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-gray);
  overflow-x: hidden;
}

.main-container {
  display: flex;
  flex: 1;
  height: 100%;
  color: var(--text-gray);
}

.left-section {
  flex: 2;
  min-width: 0;
  overflow-x: hidden;
  border-right: 1px solid var(--border-light);
  padding: 1.5rem;
  overflow-y: auto;
  height: 100dvh;
  padding-bottom: 5rem;
}

.right-section {
  flex: 1;
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.search-section {
  background: var(--primary-purple);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.search-input-container {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  /* margin-top: 0.75rem; */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

.action-buttons {
  width: 100%;
}

.action-btn {
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: 3rem;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  white-space: nowrap;
  flex: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.875rem;
  box-shadow: 0 4px 8px 0 #0000001a
}

.text-purple {
  color: #6d29d9 !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}
.section-header h2 {
  font-size: 18px;
}

.see-more-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: var(--primary-purple);
}

.wishlist-container,
.events-container {
  overflow: hidden;
  width: calc(((100vw - 250px) * 2 / 3) - 48px);
  padding-right: 1rem;
}

.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.wishlist-card,
.event-card {
  flex-shrink: 0;
  width: 85%;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 531/386;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

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

.image-overlay {
  position: absolute;
  background: white;

  border-radius: 9999px;
  font-size: 0.75rem;
}

.price-tag {
  bottom: 0.625rem;
  left: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
}

.counter-tag {
  top: 0.625rem;
  right: 0.625rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
}

.counter-tag:hover {
    background-color: var(--primary);
    color: white;
}

.days-tag {
  top: 0.625rem;
  right: 0.625rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.375rem;
  width: max-content;
}

.card-content {
  padding: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.action-icons {
  gap: 0.45rem;
}
.action-icon {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
}
.action-icon i {
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
}

.likes-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.likes-avatars {
  display: flex;
  align-items: center;
  position: relative;
}

.like-avatar {
  background: white;
  border-radius: 50%;
  padding: 0.125rem;
  width: 1.625rem;
  margin-left: -0.75rem;
}

.like-avatar:first-child {
  margin-left: 0;
}

.like-avatar img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}

.likes-text {
  font-size: 0.75rem;
}

.comment-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.comment-input {
  border: 1px solid #12202314;
  border-radius: 9999px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  flex: 1;
}

.event-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.event-tag {
  background: var(--background-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.event-description {
  color: var(--text-gray-light);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: calc(1.4em * 3);
  max-height: calc(1.4em * 3);
}

.progress-section {
  margin-bottom: 1rem;
}

.progress-bar-container {
  border: 1px solid #d7d7d7;
  padding: 0.125rem;
  border-radius: 0.125rem;
  margin: 0.25rem 0;
}

.progress-bar {
  height: 0.5rem;
  background-color: #009fe2 !important;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-gray-lighter);
}

.event-buttons {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.event-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-gray);
}

.btn-primary {
  border: 1px solid var(--primary-purple);
  background: var(--primary-purple);
  color: white;
}

.suggested-users {
  margin-top: 1.5rem;
}

.user-suggestion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.follow-btn {
  background: #6d29d91a;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.75rem;
  color: var(--primary-purple);
  font-size: 0.8125rem;
  cursor: pointer;
  margin-left: auto;
}

.no-events {
  width: 100%;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0000000a;
  border-radius: 1rem;
}

.mobile-header {
  display: none;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  margin-bottom: 1rem;
  height: max-content;
}
.mobile-header img:first-child {
  border: 1px solid var(--border-light);
  border-radius: 100%;
  width: 40px;
  height: 40px;
}

.mobile-header p {
  font-size: 0.875rem;
  color: var(--text-gray-light);
  margin-bottom: 0;
}

@media (max-width: 770px) {
  .main-container {
    flex-direction: column;
  }

  .left-section {
    flex: 1;
    border-right: none;
    padding-bottom: 9rem;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .mobile-header {
    display: flex;
  }

  .desktop-title {
    display: none;
  }

  .wishlist-container,
  .events-container,
  .action-buttons {
    width: calc(100vw - 48px);
    padding-right: 0;
  }

  .wishlist-card,
  .event-card {
    width: 80%;
    border: 1px solid #0000001a;
    border-radius: 1rem;
  }

  .card-image {
    border-radius: 1rem 1rem 0 0;
  }

  .card-content {
    border-radius: 0 0 1rem 1rem;
  }

  .action-btn {
    padding: 0.625rem;
  }

  .user-avatar {
    width: 1.5rem;
    height: 1.5rem;
  }

  .action-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .action-icon img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .like-avatar {
    width: 1.125rem;
  }

  .like-avatar img {
    width: 1rem;
    height: 1rem;
  }

  .likes-text {
    font-size: 0.625rem;
  }

  .event-description {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
  }

  .event-tag {
    font-size: 0.75rem;
  }

  .event-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-btn {
    font-size: 0.625rem;
    padding: 0.5rem;
  }

  .comment-section {
    display: none;
  }

  .image-overlay {
    font-size: 0.75rem;
  }

  .progress-bar {
    height: 0.375rem;
  }

  .counter-tag {
    font-size: 0.75rem;
  }
}

/* Mobile: prevent wishlist titles from wrapping to multiple lines */

@media (max-width: 770px) {
  /* Ensure flex child can shrink to enable ellipsis */
  .wishlist-card .user-info {
    min-width: 0;
  }
  /* Truncate long titles only for compact wishlist cards */
  .wishlist-card .wishlist-title-link {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Truncate long titles only for compact Event cards */
  .event-card .event-title-link {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


.spark-icon {
  font-size: 1.125rem;
}

.explore-icon {
  font-size: 0.875rem;
}

.wishlist-action-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.event-action-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.invite-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.chevron-icon {
  width: 7px;
}

.tag-icon {
  font-size: 1rem;
}

.clock-icon {
  font-size: 0.75rem;
}

.calendar-icon {
  font-size: 2rem;
}

.comment-icon {
  font-size: 1.25rem;
}


.right-user-avatar {
  border: 1px solid var(--border-light);
}

.right-user-name {
  font-size: 0.8125rem;
  color: #151515;
}

.right-user-handle {
  font-size: 0.8125rem;
  color: var(--text-gray-light);
}

.suggested-friend-avatar {
  width: 2rem;
  height: 2rem;
}

.suggested-friend-name {
  font-size: 0.875rem;
  color: #242424;
}

.event-tagged-text {
  font-size: 0.875rem;
}

.progress-label {
  font-size: 0.875rem;
}

.progress-contributed,
.progress-goal {
  color: #151515;
}

.view-comments-text {
  font-size: 0.875rem;
  color: var(--text-gray-lighter);
}

.comment-section-bordered {
  border-bottom: 1px solid #ddd;
}

.mobile-bell {
  margin-left: auto;
  font-size: 24px; /* FA icon size */
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.mobile-bell-wrapper {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 16px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.mobile-user-avatar {
  border: 1px solid var(--border-light);
  border-radius: 100%;
  width: 40px;
  height: 40px;
}

.mobile-username {
  font-size: 0.875rem;
  color: var(--text-gray-light);
  /* Reduce spacing between name and username */
  margin-top: 0;
  line-height: 1.1;
}

/* ── Mobile Hamburger Button ───────────────────────────────────── */
.mobile-hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  margin-left: 10px;
}

.mobile-hamburger-btn:hover,
.mobile-hamburger-btn:focus {
  background: rgba(109, 40, 217, 0.08);
  outline: none;
}

.mobile-hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--muted, #4f485a);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Mobile Nav Drawer ─────────────────────────────────────────── */
.mobile-nav-drawer-offcanvas {
  width: 65% !important;
}

.mobile-nav-drawer-header {
  padding: 1rem 1.25rem;
}

.mobile-nav-drawer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #151515;
}

.mobile-nav-drawer-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-gray-light, #888);
  padding: 0.75rem 1.25rem 0.25rem;
}

.mobile-nav-drawer-nav {
  padding: 0.5rem 0 1.5rem;
}

.mobile-nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.8rem 1.25rem;
  background: transparent;
  border: none;
  text-decoration: none;
  color: #2d2d2d;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.mobile-nav-drawer-item:hover,
.mobile-nav-drawer-item:focus {
  background: rgba(109, 40, 217, 0.06);
  color: var(--primary, #6d28d9);
  outline: none;
  text-decoration: none;
}

.mobile-nav-drawer-item i:first-child {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted, #4f485a);
}

.mobile-nav-drawer-item:hover i:first-child,
.mobile-nav-drawer-item:focus i:first-child {
  color: var(--primary, #6d28d9);
}

.mobile-nav-drawer-item--danger {
  color: #dc2626;
}

.mobile-nav-drawer-item--danger i:first-child {
  color: #dc2626;
}

.mobile-nav-drawer-item--danger:hover,
.mobile-nav-drawer-item--danger:focus {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

.mobile-nav-drawer-item--danger:hover i:first-child,
.mobile-nav-drawer-item--danger:focus i:first-child {
  color: #dc2626;
}

.mobile-nav-drawer-item.active {
  color: var(--primary, #6d28d9);
  background: rgba(109, 40, 217, 0.08);
  font-weight: 600;
}

.mobile-nav-drawer-item.active i:first-child {
  color: var(--primary, #6d28d9);
}

.mobile-nav-drawer-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0.5rem 1.25rem;
}

/* Wishlist card: title link color */
.wishlist-card .wishlist-title-link,
.profile-wishlist-card .wishlist-title-link,
.event-card .event-title-link,
.profile-event-card .event-title-link {
    color: #242424;
}
.wishlist-card .wishlist-title-link:hover,
.profile-wishlist-card .wishlist-title-link:hover,
.event-card .event-title-link:hover,
.profile-event-card .event-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Wishlist card: owner meta text sizes */
.wishlist-card .owner-meta,
.profile-wishlist-card .owner-meta {
  line-height: 1.1;
}
.wishlist-card .owner-name,
.profile-wishlist-card .owner-name {
  font-size: 0.75rem; /* ~12px */
  color: #151515;
}
.wishlist-card .owner-username,
.profile-wishlist-card .owner-username {
  font-size: 0.6875rem; /* ~11px */
  color: var(--text-gray-light);
}

/* Event card: owner meta text sizes (scoped to event-card only) */
.event-card .owner-meta {
  line-height: 1.1;
}
.event-card .owner-name {
  font-size: 0.75rem; /* ~12px */
  color: #151515;
}
.event-card .owner-username {
  font-size: 0.6875rem; /* ~11px */
  color: var(--text-gray-light);
}

/* RSVP buttons */
.rsvp-btn {
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
}

.rsvp-btn .rsvp-icon {
  font-size: 0.85rem;
}
