/* ==========================
   RESET & BASE
   ========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f2ebdd;
  background-image: url('../assets/light-beige-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #1a1a1a;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================
   PAGE WRAPPER
   ========================== */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ==========================
   AVATAR
   ========================== */
.avatar-wrap {
  width: 160px;
  height: 160px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
  margin-bottom: 2rem;
  background: #e5e7eb;
}

.avatar-wrap--small {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
}

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

/* ==========================
   PROFILE SHARED
   ========================== */
.profile-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.profile-bio {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  white-space: pre-wrap;
  max-width: 320px;
  line-height: 1.5;
}

/* ==========================
   DESKTOP SIDEBAR
   ========================== */
.profile-sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 3rem;
}

/* ==========================
   MOBILE TOP HEADER
   ========================== */
.profile-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 0;
}

.profile-mobile .profile-bio {
  max-width: 320px;
}

/* ==========================
   SOCIAL ROW
   ========================== */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.social-pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.social-pill--icon-only {
  width: 48px;
  height: 48px;
}

.social-pill--with-count {
  padding: 0.5rem 0.75rem;
}

.social-pill svg,
.social-pill img {
  flex-shrink: 0;
}

.follower-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

/* ==========================
   GRID SHARED
   ========================== */
.grid {
  display: grid;
  gap: 0.5rem;
}

.grid-desktop {
  grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: 64px;
}

.grid-mobile {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 140px;
  gap: 0.75rem;
}

/* ==========================
   DESKTOP BENTO
   ========================== */
.bento-desktop {
  display: none;
  margin-left: 420px;
  padding: 3rem;
}

/* ==========================
   MOBILE BENTO
   ========================== */
.bento-mobile {
  display: block;
  padding: 1rem;
  padding-top: 1.5rem;
}

/* ==========================
   BENTO CARD SHARED
   ========================== */
.bento-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Card with background image */
.bento-card--has-image {
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
  z-index: 1;
}

.card-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  z-index: 2;
}

.bento-card--has-image .card-content {
  color: #fff;
}

.bento-card--has-image .card-subtext {
  color: rgba(255, 255, 255, 0.8);
}

.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-subtext {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* Card icon badge */
.card-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.card-icon-badge svg,
.card-icon-badge img {
  flex-shrink: 0;
}

.card-icon-badge--light {
  background: rgba(0, 0, 0, 0.06);
}

.card-icon-badge--dark {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================
   MAP CARD
   ========================== */
.bento-card--map {
  padding: 0;
}

.bento-card--map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.bento-card--map:hover iframe {
  filter: grayscale(0%);
}

.map-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
}

.map-label p {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* ==========================
   FOOTER
   ========================== */
.branding-footer {
  width: 100%;
  padding: 2.5rem 0;
  text-align: center;
}

.branding-footer p {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

.branding-footer a {
  font-weight: 600;
  transition: color 0.2s;
}

.branding-footer a:hover {
  color: #8b5cf6;
}

.heart {
  color: #ef4444;
}

/* ==========================
   DESKTOP (>= 1024px)
   ========================== */
@media (min-width: 1024px) {
  .profile-sidebar {
    display: flex;
  }
  .profile-mobile {
    display: none;
  }
  .bento-desktop {
    display: block;
  }
  .bento-mobile {
    display: none;
  }
  .profile-name {
    font-size: 2.25rem;
  }
  .branding-footer {
    margin-left: 420px;
  }
}

/* ==========================
   MOBILE (< 1024px)
   ========================== */
@media (max-width: 1023px) {
  .profile-sidebar {
    display: none;
  }
  .profile-mobile {
    display: flex;
  }
  .bento-desktop {
    display: none;
  }
  .bento-mobile {
    display: block;
  }
  .profile-name {
    font-size: 1.5rem;
  }
  .social-row {
    justify-content: center;
  }
  .branding-footer {
    padding: 1.5rem 0;
  }
}