/* ============================================================
   FemFlow • HOME — Estilo Oficial 2025 (versão atualizada)
   Integração com Home.html novo (saudação + personal no topo)
============================================================ */

/* ------------------- PALETA BASE ------------------- */
:root {
  --teal: #335953;
  --terracota: #4F6F68;
  --pessego: #6B6B6B;
  --bege: #E5E5E5;
  --texto: #2E2E2E;
}

/* ------------------- RESET ------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #E5E5E5 0%, #6B6B6B 100%);
  color: var(--texto);
  font-family: "Lato", system-ui, Segoe UI, Arial, sans-serif;
  padding-top: 60px !important; /* garante header fixo */
}

/* ------------------- WRAP ------------------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 14px 22px;
}

/* Mobile */
@media (max-width: 768px) {
  .wrap {
    max-width: 100%;
    padding: 0 12px 22px;
  }
}

/* ============================================================
   0) SAUDAÇÃO — "Bem-vindo, Aluno"
============================================================ */
.bemvinda {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin: 12px 16px 8px;
}

.bemvinda-texto {
  letter-spacing: 0.2px;
}

.bemvinda-nome {
  color: var(--terracota);
  background: rgba(79, 111, 104, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.boas-vindas {
  margin: 12px 0 0;
  text-align: center;
}

.boas-vindas h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 10px;
}

/* ============================================================
   1) SEÇÃO VÍDEO
============================================================ */
.video {
  width: 100%;
  max-width: 480px;
  margin: 10px auto 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 padrão */
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

/* ============================================================
   MOBILE — Fixar tamanho em 345×194
============================================================ */
@media (max-width: 480px) {
  
  /* força o container a 345px */
  .video {
    max-width: 345px;
  }

  /* força a proporção exata, desabilitando o padding responsivo */
  .video-wrapper {
    width: 345px;
    height: 194px; /* 16:9 */
  }

  /* remove o hack de padding-top para este caso */
  .video-wrapper::before {
    padding-top: 0 !important;
  }

  /* iframe fixo no tamanho desejado */
  .video-wrapper iframe {
    width: 345px !important;
    height: 194px !important;
  }
}

/* Tablets */
@media (min-width: 780px) {
  .video {
    max-width: 960px;
  }
}



/* iOS notch safe-area */
@supports(padding: env(safe-area-inset-top)) {
  .video {
    margin-top: calc(env(safe-area-inset-top) * 0.4);
  }
}

/* ============================================================
   2) CTA IMEDIATO — FLOW CENTER
============================================================ */
.home-cta {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-flow {
  background: linear-gradient(135deg, var(--teal), var(--terracota));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 900;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform .15s ease;
}

.btn-flow:active {
  transform: scale(.96);
}

/* ============================================================
   3) TÍTULOS DAS FILEIRAS
============================================================ */
h1 {
  font-size: 1.25rem;
  margin: 18px 2px 10px;
  font-weight: 900;
  color: var(--teal);
}

/* ============================================================
   4) RAIL (carrossel Netflix)
============================================================ */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   5) CARDS
============================================================ */
.card {
  flex: 0 0 170px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(204,106,90,.14);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.card:active {
  transform: scale(.96);
}

/* ============================================================
   MODAL — TREINOS POR SEMANA
============================================================ */
.ff-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.ff-modal-overlay.hidden {
  display: none;
}

.ff-modal-card {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.ff-modal-title {
  margin: 0 0 8px;
  color: var(--teal);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.ff-modal-subtitle {
  margin: 0 0 18px;
  color: #6c5a55;
  font-size: 0.95rem;
}

.ff-modal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.ff-modal-option {
  border: 1px solid rgba(51, 89, 83, 0.18);
  background: #fdf7f4;
  color: var(--teal);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  min-width: 64px;
}

.ff-modal-option.is-active {
  background: var(--teal);
  color: #fff;
}

.ff-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ff-modal-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
}

.ff-modal-btn.ghost {
  background: #f1e7e2;
  color: #6c5a55;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ddd;
  background-image: var(--thumb-url, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumb.has-image {
  background-size: contain;
  background-position: center;
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(51,89,83,.9);
  padding: 4px 10px;
  color: #fff;
  border-radius: 12px;
  font-size: .78rem;
}

.info {
  padding: 12px;
}

.ttl {
  font-weight: 900;
  color: var(--teal);
  margin: 0 0 4px;
}

.desc {
  margin: 0;
  color: #94786f;
  font-size: .9rem;
}

.card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.card.locked .thumb {
  filter: grayscale(0.2);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ============================================================
   6) CTA SECUNDÁRIO (Cadastro)
============================================================ */
.cta {
  margin: 20px auto 4px;
  display: block;
  width: 100%;
  max-width: 380px;
  padding: 12px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, var(--teal), var(--terracota));
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform .15s ease;
}

.cta:active {
  transform: scale(.97);
}

.cta-secondary {
  background: #fff;
  color: var(--teal);
  border: 1px solid #e6d8d2 !important;
}

/* ============================================================
   7) FOOTER
============================================================ */
footer {
  padding: 16px 0;
  text-align: center;
  color: #94786f;
  font-size: .9rem;
}

/* ============================================================
   8) RESPONSIVO
=========================================================== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.1rem;
  }

  .card {
    flex: 0 0 160px;
  }

  .btn-flow {
    font-size: .95rem;
  }

  .boas-vindas h1 {
    font-size: 1.5rem;
  }
}
/* BOTÃO FLOW CENTER — estilo premium */
.home-top-buttons #btnFlow.home-btn {
  width: 180px;
  padding: 14px 0;
  border-radius: 40px;
  border: 1.5px solid rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #1d3b37, #8a4233);
  color: #f2e8e8;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  margin: 0 auto 20px auto; /* centraliza e ajusta o espaçamento */
}

/* Efeito ao clicar */
.home-top-buttons #btnFlow.home-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 3px rgba(0,0,0,0.20);
}
/* ============================================================
   🌸 LOADING FEMFLOW — VERSÃO PREMIUM 2025
   Estilo igual FlowCenter — glow suave + spinner fluido
=========================================================== */

.ff-loading {
  position: fixed;
  inset: 0;
  background: rgba(249, 241, 238, 0.75); /* tom quente, mais suave */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.35s ease;
}

.ff-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* CAIXA */
.ff-loading-box {
  background: #ffffff;
  padding: 32px 45px;
  border-radius: 22px;
  text-align: center;
  border: 2px solid rgba(204, 106, 90, 0.20);
  box-shadow: 0px 12px 40px rgba(0,0,0,0.12);
  animation: ffPop 0.28s ease-out;
}

/* TEXTO */
.ff-loading-box p {
  margin-top: 18px;
  font-family: "Lato", sans-serif;
  color: #b35345;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* SPINNER PREMIUM */
.ff-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(204, 106, 90, 0.20);
  border-top-color: #b35345; /* vermelho terracota profundo */
  animation: ffspin 1.05s cubic-bezier(.5, .15, .4, .85) infinite;
}

@keyframes ffspin {
  to { transform: rotate(360deg); }
}

/* Animação de entrada (pequeno zoom + fade) */
@keyframes ffPop {
  0%   { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
/* ============================================================
   🖼️ THUMBS POR ÊNFASE — AUTO (fallback nativo)
============================================================ */

/* Exemplo — repetir apenas quando quiser imagem */
.thumb-gluteo {
  background-image: url("/appmaleflow/css/cards/gluteos.jpg");
}

.thumb-militar {
  background-image: url("/appmaleflow/css/cards/militar.jpg");
}

.thumb-ombro {
  background-image: url("/appmaleflow/css/cards/ombro.jpg");
}

.thumb-quadriceps {
  background-image: url("/appmaleflow/css/cards/quadriceps.jpg");
}

.thumb-costas {
  background-image: url("/appmaleflow/css/cards/costas.jpg");
}

.thumb-peito,
.thumb-peitoral {
  background-image: url("/appmaleflow/css/cards/peitoral.jpg");
}
/* ============================================================
   🔒 CARD BLOQUEADO (vitrine)
============================================================ */
.card.locked {
  opacity: 0.55;
}

.card.locked .thumb {
  filter: grayscale(1) brightness(0.7);
}

.card.locked::after {
  content: "🔒";
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
}
/* ============================================================
   🎁 BADGE GRATUITO (campanhas)
============================================================ */
.badge-free {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #2d8f6f, #5cc9a6);
  padding: 4px 10px;
  color: #fff;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
}

/* ============================================================
   MALEFLOW STREAM HOME — navegação por coleções, identidade própria
   ============================================================ */
body {
  background: #090b0e !important;
  color: #f5f7f8;
  padding-top: 56px !important;
}

#femflowHeader {
  background: rgba(9, 11, 14, .92) !important;
  border-bottom-color: rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(12px);
}

.stream-home { padding-bottom: 42px; overflow: hidden; }

.mf-hero {
  min-height: min(62vw, 560px);
  display: flex;
  align-items: end;
  padding: clamp(34px, 8vw, 96px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(90deg, #090b0e 2%, rgba(9,11,14,.82) 30%, rgba(9,11,14,.18) 70%, #090b0e 100%),
    linear-gradient(0deg, #090b0e 0%, transparent 48%),
    url("../assets/hero-maleflow-v2.png") center / cover no-repeat;
}

.mf-hero-content { max-width: 590px; }
.mf-kicker { color: #83d1ba; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.bemvinda {
  margin: 10px 0 12px;
  color: #fff;
  font-family: "Lato", system-ui, sans-serif;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.03;
  text-align: left;
}
.bemvinda-nome { color: #fff; background: none; padding: 0; }
.mf-hero-copy { max-width: 460px; margin: 0 0 22px; color: #d3d9da; font-size: clamp(.96rem, 1.6vw, 1.1rem); line-height: 1.5; }
.home-top-buttons #btnFlow.home-btn {
  width: auto; margin: 0; padding: 12px 20px; border: 0;
  border-radius: 7px; background: #f4f7f6; color: #0b0d10;
  box-shadow: none; font-size: 1rem;
}
.home-top-buttons #btnFlow.home-btn:hover { background: #b7e5d7; transform: scale(1.03); }

.mf-row { margin: 0 0 24px; padding: 0 clamp(16px, 4vw, 58px); }
.home-section-title, h2.home-section-title {
  margin: 0 0 10px; color: #f6f7f7; font-family: "Lato", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 800;
}
.rail { gap: 12px; margin-right: calc(clamp(16px, 4vw, 58px) * -1); padding: 2px clamp(16px, 4vw, 58px) 18px 0; scroll-padding-left: 0; }
.card {
  position: relative; flex-basis: clamp(145px, 18vw, 220px); border: 0; border-radius: 6px;
  background: #171b20; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: scale(1.045); z-index: 2; box-shadow: 0 10px 26px rgba(0,0,0,.52); }
.thumb { aspect-ratio: 16 / 10; background-color: #20262c; }
.info { padding: 10px; background: #171b20; }
.ttl { color: #fff; font-size: .92rem; }
.desc { color: #aeb8ba; font-size: .78rem; }
.badge { background: #24795f; border-radius: 4px; font-weight: 700; }
.ff-modal-card { background: #171b20; color: #f6f7f7; border: 1px solid rgba(255,255,255,.12); }
.ff-modal-title { color: #fff; font-family: "Lato", sans-serif; }
.ff-modal-subtitle { color: #b9c1c3; }
.ff-modal-option { color: #d8efea; background: #20262c; border-color: #34434a; }
.ff-modal-option.is-active, .ff-modal-btn { background: #2d9b7b; }
.ff-modal-btn.ghost { background: #2a3036; color: #fff; }

@media (max-width: 640px) {
  .mf-hero { min-height: 510px; padding: 48px 20px; background-position: 62% center; }
  .mf-row { margin-bottom: 20px; }
  .card { flex-basis: 160px; }
}
