/* ═══════════════════════════════════════════
   BarberClub — Salon hub page CSS
   (pages/meylan/index.html & pages/grenoble/index.html)
   Requires: base.css loaded first
   ═══════════════════════════════════════════ */

/* ═══ PAGE ═══ */
.page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

/* ═══ BACKGROUND ═══ */
.bg {
  position: absolute; inset: -40px;
  background: center/cover no-repeat;
  filter: brightness(0.28) saturate(0.7);
  will-change: transform;
  animation: kenBurns 25s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1%); }
}

.bg-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 25%,
    rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.9) 100%);
}

.particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.4; } 92% { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(15px); opacity: 0; }
}

/* ═══ HEADER (hub-specific — overlays background) ═══ */
.header {
  position: relative; z-index: 10; padding: 20px;
  display: flex; align-items: center;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none; box-shadow: none;
}
.back-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  color: #fff; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  opacity: 0; animation: fadeIn 0.5s ease 0.1s forwards;
}
@media (pointer: fine) { .back-btn, .account-btn { cursor: none; } }
.back-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.15); }
.back-btn svg { width: 20px; height: 20px; }

.account-btn {
  position: absolute; right: 20px; top: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  color: #fff; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  opacity: 0; animation: fadeIn 0.5s ease 0.2s forwards;
}
.account-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.15); }
.account-btn svg { width: 20px; height: 20px; }

.header-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; animation: fadeIn 0.8s ease 0.15s forwards;
}
.header-crown { width: 14px; height: auto; opacity: 0.3; animation: crownFloat 5s ease-in-out infinite; }
@keyframes crownFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.header-logo img:last-child { height: 50px; width: auto; }

/* ═══ HERO ═══ */
.hero {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(48px, 16vw, 90px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 0.95; overflow: hidden; position: relative;
}
.hero-title .letter {
  display: inline-block; opacity: 0; transform: translateY(110%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.page.loaded .hero-title .letter { opacity: 1; transform: translateY(0); }
.hero-title::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 6s ease-in-out infinite 3s; pointer-events: none;
}
@keyframes shimmer { 0% { left: -60%; } 30% { left: 120%; } 100% { left: 120%; } }

.hero-subtitle {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-weight: 400; margin-top: 10px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page.loaded .hero-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* ═══ SEPARATOR ═══ */
.separator {
  position: relative; z-index: 10; height: 1px; margin: 0 40px 20px;
  opacity: 0; transition: opacity 0.8s ease;
}
.page.loaded .separator { opacity: 1; transition-delay: 0.7s; }
.separator-line { position: absolute; inset: 0; background: rgba(255,255,255,0.08); }
.separator-line::after {
  content: ''; position: absolute; top: -4px; width: 30px; height: 9px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 70%);
  animation: sepTravel 5s ease-in-out infinite;
}
@keyframes sepTravel { 0% { left: 0%; opacity: 0.3; } 50% { left: 90%; opacity: 1; } 100% { left: 0%; opacity: 0.3; } }

/* ═══ NAV ═══ */
.bottom-nav {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  background: rgba(10,10,10,0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
  padding: 8px 4px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 50;
}
.nav-row { display: flex; justify-content: space-around; align-items: flex-end; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255,255,255,0.4); text-decoration: none; font-size: 9px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  transition: color 0.3s ease; padding: 4px 8px;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-cta {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; margin-top: -26px;
}
.nav-cta-btn {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%; color: #000;
  box-shadow: 0 4px 20px rgba(255,255,255,0.3); transition: all 0.3s ease;
}
.nav-cta-btn svg { width: 22px; height: 22px; }
.nav-cta:active .nav-cta-btn { transform: scale(0.95); box-shadow: 0 2px 12px rgba(255,255,255,0.2); }
.nav-cta-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
@media (pointer: fine) { .nav-item, .nav-cta { cursor: none; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ DESKTOP ═══ */
@media (min-width: 768px) {
  .bottom-nav {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: auto; z-index: 50;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
    padding: 14px 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  }
  .nav-row { gap: 12px; }
  .nav-item {
    flex-direction: row; gap: 10px;
    padding: 16px 24px; flex-shrink: 0; white-space: nowrap;
    font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; transition: all 0.3s ease;
  }
  .nav-item svg { width: 18px; height: 18px; opacity: 0.6; }
  .nav-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
  .nav-item:hover svg { opacity: 1; }
  .nav-cta {
    margin-top: 0; flex-direction: row; gap: 10px;
    padding: 16px 32px; flex-shrink: 0; white-space: nowrap;
    font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    background: #fff; color: #000;
    border: none; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
    position: relative; overflow: hidden;
  }
  .nav-cta::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: ctaShimmer 3s ease-in-out infinite;
  }
  @keyframes ctaShimmer { 0%, 100% { left: -100%; } 50% { left: 100%; } }
  .nav-cta-btn { width: auto; height: auto; background: none; border-radius: 0; box-shadow: none; color: #000; }
  .nav-cta-btn svg { width: 18px; height: 18px; }
  .nav-cta-label { font-size: 13px; color: #000; }
  .nav-cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(255,255,255,0.25); }
  .nav-cta:hover .nav-cta-btn { transform: none; box-shadow: none; }
  .header-logo img:last-child { height: 60px; }
  .back-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
}

/* ═══ REDUCED MOTION (hub-specific additions) ═══ */
@media (prefers-reduced-motion: reduce) {
  .hero-title .letter, .hero-subtitle, .back-btn, .separator { opacity: 1; transform: none; }
  .bg { animation: none !important; }
}
