/* ============================================================
   Ticket Go — components.css
   Navbar, footer, shared card base, event card, phone mockup
   ============================================================ */

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--maxw); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-radius: 16px;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-low);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.navbar.scrolled { background: rgba(0,0,0,0.92); border-color: var(--border-mid); box-shadow: 0 10px 40px -20px rgba(0,0,0,0.9); }

/* ---- Logo with scroll-collapse animation ---- */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; user-select: none; flex-shrink: 0;
}
.logo-mark {
  font-family: 'Righteous', cursive; font-size: 1.9rem; line-height: 1;
  display: inline-flex; align-items: baseline; flex-shrink: 0; letter-spacing: -0.02em;
}
.logo-t { color: #ffffff; }
.logo-g { color: #FF6600; margin-left: -0.05em; }
.logo-text-wrap {
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; max-width: 200px; opacity: 1;
  transition: max-width 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.logo-rule {
  display: block; width: 14px; height: 2px;
  background: #FF6600; flex-shrink: 0; border-radius: 1px;
}
.logo-wordmark-full {
  font-family: 'Righteous', cursive; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff;
}
.logo-go { color: #FF6600; }
.navbar.scrolled .logo-text-wrap { max-width: 0; opacity: 0; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color var(--ease); position: relative; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--orange-action); transition: width var(--ease); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-link-ghost { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; padding: 10px 14px; transition: color var(--ease); }
.nav-link-ghost:hover { color: var(--text-primary); }

.nav-session { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
.nav-session a { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; white-space: nowrap; transition: color var(--ease); }
.nav-session a:hover { color: var(--text-primary); }
.nav-session .nav-user { color: var(--text-secondary); font-size: 0.85rem; opacity: 0.8; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

.hamburger { display: none; align-items: center; justify-content: center; background: none; border: none; padding: 8px; line-height: 0; }
.hamburger svg { stroke: var(--text-primary); display: block; }

/* Mobile overlay */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,15,0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-overlay a.m-link { font-family: 'Righteous', cursive; font-size: 1.8rem; color: var(--text-primary); }
.mobile-overlay a.m-link.active { color: var(--orange-action); }
.mobile-overlay .btn { font-family: 'Poppins', sans-serif; font-size: 1rem; }
.mobile-close { position: absolute; top: 28px; right: 28px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 8px; line-height: 0; }
.mobile-close svg { stroke: var(--text-primary); display: block; }

/* ============================================================
   PHONE MOCKUP (shared by home + hero demos)
   ============================================================ */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 280px; height: 560px; border-radius: 42px; padding: 14px;
  background: linear-gradient(160deg, #2a2a3d, #14141f);
  border: 1px solid var(--border-mid);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85), inset 0 1px 1px rgba(255,255,255,0.08);
  transform: rotateY(-16deg) rotateX(6deg); transform-style: preserve-3d;
  transition: transform 600ms ease;
}
.phone:hover { transform: rotateY(-6deg) rotateX(2deg); }
.phone-notch { width: 110px; height: 22px; background:#000; border-radius: 0 0 14px 14px; margin: 0 auto 8px; }
.phone-screen {
  width: 100%; height: calc(100% - 30px); border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #15131f, #0c0b14);
  display: flex; flex-direction: column; padding: 18px 16px; gap: 14px;
}
.wallet-head { display: flex; align-items: center; justify-content: space-between; }
.wallet-head .wm { font-family: 'Righteous', cursive; font-size: 1.2rem; }
.wallet-status { font-size: 0.65rem; color: var(--green-success); display:flex; align-items:center; gap:5px; }
.wallet-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-success); box-shadow: 0 0 8px var(--green-success); }
.wallet-event { font-size: 0.95rem; font-weight: 600; }
.wallet-event small { display:block; color: var(--text-muted); font-weight: 400; font-size: 0.72rem; }

/* ============================================================
   QR CARD + COUNTDOWN RING (shared)
   ============================================================ */
.qr-card {
  background: #fff; border-radius: 16px; padding: 14px; display:flex; flex-direction:column; align-items:center; gap: 10px;
}
.qr-card canvas { width: 170px; height: 170px; image-rendering: pixelated; border-radius: 6px; }
.qr-meta { width: 100%; display:flex; align-items:center; justify-content:space-between; }
.countdown-ring { position: relative; width: 46px; height: 46px; }
.countdown-ring svg { transform: rotate(-90deg); }
.countdown-ring .num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:0.8rem; font-weight:700; color:#13131C; font-family:'Poppins', sans-serif; }
.valid-badge {
  display:inline-flex; align-items:center; gap:6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(52,211,153,0.15); color: var(--green-success); font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(52,211,153,0.4);
  animation: pulseBadge 2s ease-in-out infinite;
}
.valid-badge svg { width: 14px; height: 14px; stroke: var(--green-success); }
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}

/* ============================================================
   EVENT CARD (shared by home carousel + eventos grid)
   ============================================================ */
.event-card {
  background: var(--bg-card); border: 1px solid var(--border-low); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.event-card:hover { transform: translateY(-8px); }
.event-banner { height: 140px; position: relative; overflow: hidden; }
.event-banner .art {
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.3), transparent 50%);
}
.event-banner .glyph { position:absolute; right:-10px; bottom:-10px; opacity:0.28; }
.event-banner .glyph svg { width: 110px; height: 110px; stroke: #fff; }
.event-body { padding: 16px 18px 20px; }
.event-body h3 { font-family:'Poppins', sans-serif; font-weight: 600; font-size: 1.02rem; line-height: 1.3; margin-bottom: 8px; min-height: 2.6em; }
.event-meta { display:flex; align-items:center; gap:6px; color: var(--text-muted); font-size:0.8rem; margin-bottom: 4px; }
.event-meta svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.cat-chip { display:inline-flex; align-items:center; gap:7px; font-size:0.75rem; color: var(--text-secondary); margin: 12px 0; }
.cat-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.event-foot { display:flex; align-items:center; justify-content:space-between; margin-top: 8px; }
.event-price { font-size: 0.78rem; color: var(--text-secondary); }
.event-price b { display:block; font-size: 1.15rem; color: var(--text-primary); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--border-low); background: #000000; padding-top: 70px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.foot-brand .wm { font-family:'Righteous', cursive; font-size: 1.9rem; }
.foot-brand p { color: var(--text-secondary); margin-top: 12px; max-width: 280px; font-size: 0.95rem; }
.foot-social { display:flex; gap: 12px; margin-top: 22px; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-low); display:flex; align-items:center; justify-content:center; transition: var(--ease); }
.foot-social a:hover { border-color: var(--orange-action); background: rgba(255,102,0,0.10); transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; stroke: var(--text-secondary); }
.foot-col h4 { font-family:'Poppins', sans-serif; font-weight:600; font-size: 0.95rem; margin-bottom: 16px; }
.foot-col a { display:block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; transition: color var(--ease); }
.foot-col a:hover { color: var(--text-primary); }
.foot-bottom { border-top: 1px solid var(--border-low); padding: 24px 0; text-align:center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE — shared
   ============================================================ */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .nav-link-ghost, .nav-actions .btn { display: none; }
  .nav-session { display: none; }
  .hamburger { display: flex; }
  .phone { transform: none; }
  /* Logo always collapsed on mobile — no flicker */
  .logo-text-wrap { max-width: 0 !important; opacity: 0 !important; transition: none !important; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 70px 0; }
  .qr-card canvas { width: 140px; height: 140px; }
  .navbar { padding: 10px 16px; }
  .foot-social { flex-wrap: wrap; }
}
