/* =============================================
   LINKME CLONE — style.css
   ============================================= */

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

:root {
  --bg-card: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --green-online: #22c55e;
  --border-subtle: #1a1a1a;
  --blue-platform: #1d9bf0;
  --card-max: 420px;
  --font: 'DM Sans', system-ui, sans-serif;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: #000;
  font-family: var(--font);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* =============================================
   BACKGROUND BLUR
   ============================================= */

.bg-blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('perfil.png');
  background-size: cover;
  background-position: center top;
  filter: blur(40px) brightness(1.0) saturate(1.2);
  transform: scale(1.0);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.45);
}

/* =============================================
   STICKY TOP BAR
   ============================================= */

.sticky-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--card-max);
  height: 48px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.sticky-bar.visible {
  opacity: 1;
  pointer-events: all;
}

.sticky-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.sticky-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* =============================================
   MAIN CARD
   ============================================= */

.card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--card-max);
  margin: 0 auto;
  background: var(--bg-card);
  min-height: 100vh;
  padding-bottom: 80px;
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO PHOTO
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 100%);
}

/* =============================================
   PROFILE INFO
   ============================================= */

.profile-info {
  margin-top: -50px;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.profile-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}

.profile-handle {
  font-size: 14px;
  color: var(--text-secondary);
}

.social-icon {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.linkme-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.linkme-badge:hover {
  background: #222;
}

.badge-icon {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* =============================================
   STATUS BAR
   ============================================= */

.status-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 14px;
  padding-bottom: 18px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.dot-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-online);
  box-shadow: 0 0 6px var(--green-online);
  flex-shrink: 0;
}

.status-online {
  color: var(--green-online);
  font-weight: 500;
}

.pin-icon {
  font-size: 13px;
}

.status-location {
  color: var(--text-primary);
  font-weight: 400;
}

.status-country {
  display: flex;
  justify-content: center;
  margin-top: 3px;
}

.status-country svg {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* =============================================
   EXCLUSIVE CONTENT CARD
   ============================================= */

.exclusive-card-wrap {
  margin: 0 12px;
  animation: fadeInUp 0.6s 0.25s ease both;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10281a;
  border: 1px solid #1e4a2e;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-online);
  margin-bottom: 6px;
}

.exclusive-card {
  position: relative;
  display: block;
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  animation: cardBreathe 2.6s ease-in-out infinite;
}

.exclusive-card:hover,
.exclusive-card:focus-visible {
  animation-play-state: paused;
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.3), 0 6px 16px rgba(239,68,68,0.18);
}

.exclusive-card:hover .exclusive-play {
  background: rgba(220,38,38,0.85);
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 14px rgba(239,68,68,0.4);
}

.exclusive-card:hover::after {
  opacity: 1;
}

.exclusive-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(220,38,38,0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@keyframes cardBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.01); }
}

.exclusive-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 5;
}

.exclusive-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: blur(3px);
  transform: scale(1.05);
}

.exclusive-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.78) 100%);
}

.exclusive-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-btn:hover {
  background: #f5f5f5;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(255,255,255,0.15);
}

/* =============================================
   THUMBNAIL GRID
   ============================================= */

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 3px 12px 0;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.thumb-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
  transition: opacity 0.2s;
}

.thumb-item:hover {
  opacity: 0.82;
}

.thumb-item:first-child {
  border-radius: 0 0 0 10px;
}

.thumb-last {
  border-radius: 0 0 10px 0;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   TABS
   ============================================= */

.tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
  animation: fadeInUp 0.6s 0.35s ease both;
}

.tab {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.tab:hover:not(.active) {
  color: #aaa;
}

/* =============================================
   TAB CONTENT
   ============================================= */

.tab-content {
  padding: 0 16px;
  animation: fadeInUp 0.4s ease both;
}

.tab-content.hidden {
  display: none;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px 32px;
}

.empty-icon {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.08));
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 14px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.55;
  max-width: 240px;
}

/* =============================================
   FOOTER CTA
   ============================================= */

.footer-cta {
  text-align: center;
  padding: 22px 16px 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.footer-avatars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  object-fit: cover;
}

.footer-av2 {
  margin-left: -10px;
}

.footer-cta-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 9px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #888;
}

.footer-links span {
  color: #333;
}

/* =============================================
   BOTTOM FIXED BAR (desktop)
   ============================================= */

.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid #111;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-logo {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.bottom-url {
  font-size: 13px;
  color: var(--text-secondary);
}

.bottom-signup {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.bottom-signup:hover {
  background: #eee;
  transform: scale(1.03);
}

/* =============================================
   RESPONSIVE — DESKTOP
   ============================================= */

@media (min-width: 640px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 0 80px;
  }

  .card {
    border-radius: 20px;
    min-height: unset;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  }

  .hero {
    border-radius: 20px 20px 0 0;
    height: 460px;
    max-height: 460px;
  }

  .bottom-bar {
    display: flex;
  }
}

@media (max-width: 639px) {
  .card {
    border-radius: 0;
  }

  .hero {
    height: 52vh;
  }
}

/* =============================================
   SCROLLBAR PERSONALIZADA
   ============================================= */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
