
:root {
  --bg-color: #09090B; /* Link.me dark theme background */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --primary-custom: #121212;
}

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


/* Disable rubber-band bounce on desktop trackpads to hide black background, but leave it enabled on mobile for pull-to-refresh */
@media (hover: hover) and (pointer: fine) {
  html, body {
    overscroll-behavior-y: none;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.blurred-banner-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.blurred-banner-overlay {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: calc(66.66% + 5px);
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0) 0%, var(--bg-color) 100%);
  pointer-events: none;
}

.blurred-banner-bg {
  width: 100%;
  height: 100%;
  background-image: url('assets/banner_cropped.png');
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.6);
  transform: scale(1.2);
}

.container {
  width: 100%;
  max-width: 480px; /* Mobile width constraint */
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Banner / Top Image */
.user-profile-image {
  width: 100%;
  position: relative;
  z-index: 1;
}

.user-profile-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}

.image-overlay-gradient {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: calc(66.66% + 5px);
  background: linear-gradient(to top, var(--bg-color) 0%, rgba(9, 9, 11, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Main Content Area */
.scroll-group {
  background-color: transparent;
  margin-top: -110px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
  min-height: calc(100vh - 450px);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.25px;
  margin-bottom: 4px;
  text-align: center;
}

.handle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.icon-link:hover {
  transform: translateY(-3px) scale(1.05);
}

.social-svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Specific Social Icons */
.instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none;
}

.threads-icon {
  background-color: #ffffff;
  border: none;
  width: 39px !important;
  height: 39px !important;
  margin-top: 1px; /* Optical alignment */
}
.threads-icon:hover {
  background-color: #ffffff !important;
}

.filter-invert {
  filter: invert(1);
}

/* Bio */
.user-bio {
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  white-space: pre-wrap;
  width: 100%;
  padding: 0 16px;
  color: var(--text-primary);
}

/* Content Cards Container */
.content-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cards-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.content-card-link,
.content-card {
  text-decoration: none !important;
  outline: none;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  cursor: pointer;
}

.full-width {
  width: 100%;
  height: 220px;
}

.half-width {
  flex: 1;
  height: 160px;
}

.card-icon-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.card-icon-top-left.link-card-icon {
  background-color: #ff2a75;
}

.card-icon-top-left.ig-card-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.card-icon-top-left.threads-card-icon {
  background-color: #1a1a1a;
}

.content-card-link:hover,
.content-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  transform: scale(1.01);
}

.threads-card-image {
  object-position: center 20%;
}

.exclusive-card-image {
  object-position: center 80%;
}

.content-card-link:hover .content-card-image,
.content-card:hover .content-card-image {
  transform: scale(1.05);
}

.content-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}

.content-card-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  text-align: center;
}

/* Age Gate Overlay */
.age-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.age-gate-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 21;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.age-gate-content {
  text-align: center;
  color: white;
  padding: 20px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.age-gate-overlay.active .age-gate-content {
  transform: scale(1);
}

.age-gate-icon {
  margin-bottom: 10px;
}

.age-gate-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.age-gate-subtitle {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 20px;
}

.age-gate-btn {
  background: white;
  color: black;
  padding: 9px 22px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.age-gate-btn:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

