/* ============================================
   MUME YUME - Mobile First Professional Web
   Gaming Influencer · Parallax & GSAP
   ============================================ */

:root {
  /* Brand colors - dark magenta/purple gaming aesthetic */
  --bg-deep: #0d0612;
  --bg-dark: #1a0a1f;
  --bg-card: rgba(45, 20, 55, 0.85);
  --accent: #e91e8c;
  --accent-soft: #ff4da6;
  --accent-glow: rgba(233, 30, 140, 0.4);
  --live-red: #eb1e1e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --nav-bg: rgba(13, 6, 18, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Spacing */
  --section-padding: 2rem 1.25rem;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Parallax Background ========== */
.parallax-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-bg {
  background-image: url('assents/FONDOS/FONDO-WEB.png');
  background-size: cover;
  background-position: center top;
}

.parallax-texture {
  background-image: url('assents/FONDOS/fondo.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

/* ========== Main Content ========== */
.main-content {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 2rem);
}

/* ========== Hero ========== */
.hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.brand-logo {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.1;
}

.brand-logo .accent {
  color: var(--accent);
  display: block;
  font-size: 0.85em;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ========== Sections ========== */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ========== Twitch Card ========== */
.twitch-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.twitch-embed {
  display: block;
  position: relative;
  text-decoration: none;
}

.twitch-embed img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.twitch-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--live-red);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.viewers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.eye-icon {
  width: 18px;
  height: 18px;
}

.watch-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ========== Instagram Card (sin channel-card) ========== */
.instagram-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.instagram-card-inner {
  padding: 1.25rem;
}

/* ========== Channel Cards (TikTok) ========== */
.channel-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.channel-card-inner {
  padding: 1.25rem;
}

.profile-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #6b2d5c 100%);
  border: 2px solid var(--accent);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.instagram-avatar .avatar-placeholder,
.instagram-avatar .profile-avatar,
.instagram-avatar img {
  border-color: #0095f6;
  box-shadow: 0 0 16px rgba(0, 149, 246, 0.4);
}

.tiktok-avatar {
  background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.tiktok-avatar-wrap .profile-avatar {
  border-color: rgba(255, 0, 80, 0.6);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.verified {
  color: #0095f6;
  font-size: 0.85em;
}

.handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.stats-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stats-row span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.stats-row strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.stats-row em {
  font-style: normal;
  font-size: 0.7rem;
}

.bio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.profile-info .profile-link {
  font-size: 0.75rem;
  color: var(--accent-soft);
}

/* Channel action buttons */
.channel-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-following,
.btn-message {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.btn-following {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border-subtle);
}

.btn-message {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
}

.tiktok-follow {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background: #ff0050;
  color: white;
  border: none;
}

/* Instagram profile link */
.instagram-profile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Instagram stories - 3 imágenes cuadradas */
.instagram-stories {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
}

.instagram-stories .story-img {
  flex: 1;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.instagram-stories .story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TikTok tabs */
.channel-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.channel-tabs .tab {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.channel-tabs .tab.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--text-primary);
}

/* TikTok videos - formato vertical como TikTok (9:16) */
.tiktok-videos {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.tiktok-videos .tiktok-video {
  flex: 1;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: block;
  border-radius: 4px;
}

.tiktok-videos .tiktok-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== Portfolio CTA ========== */
.portfolio-cta-section {
  padding: 2.5rem 1.25rem;
}

.portfolio-cta-card {
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.2) 0%, rgba(107, 45, 92, 0.3) 100%);
  border: 1px solid rgba(233, 30, 140, 0.4);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(233, 30, 140, 0.15);
}

.portfolio-cta-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-cta-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.cta-button svg {
  transition: transform 0.2s;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ========== Contact ========== */
.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.contact-link {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ========== Bottom Navigation ========== */
.nav-spacer {
  height: 1rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: var(--nav-height);
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 0.5rem 0 var(--safe-bottom);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  background: #0d0612;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: #0d0612;
  z-index: -1;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s, transform 0.2s;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.nav-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(0.8);
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent-soft);
}

.nav-item:hover img,
.nav-item.active img {
  filter: brightness(0) invert(1);
}

.nav-item:active {
  transform: scale(0.95);
}

/* ========== Responsive - Tablet & Desktop ========== */
@media (min-width: 600px) {
  :root {
    --section-padding: 2.5rem 2rem;
  }

  .main-content {
    max-width: 480px;
    margin: 0 auto;
  }

  .parallax-bg {
    background-size: 120% auto;
  }
}

@media (min-width: 900px) {
  .parallax-bg {
    background-image: url('assents/FONDOS/fondo.jpg');
    background-size: cover;
  }

  .parallax-texture {
    opacity: 0.08;
  }
}
