/* ════════════════════════════════════════════
   BRAINMONDO – Homepage styles
   /assets/css/main-hp.css
════════════════════════════════════════════ */

/* ── HERO SEKCE ── */
.bm-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(160deg, #ffffff 0%, #f0faf0 100%);
}

.bm-hero .bm-logo {
  max-width: 320px;
  width: 80%;
  margin-bottom: 8px;
}

/* ── ROTUJÍCÍ BLOK ── */
.bm-rotator {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px 0 20px;
}

.bm-lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.5s;
}

.bm-headline {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}

.bm-subline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #444;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s 0.08s, transform 0.5s 0.08s;
}

.bm-rotator.visible .bm-lang-label,
.bm-rotator.visible .bm-headline,
.bm-rotator.visible .bm-subline {
  opacity: 1;
  transform: translateY(0);
}

/* ── DOWNLOAD TLAČÍTKO ── */
.bm-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4caf50;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  margin: 24px 0 32px;
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.bm-download-btn:hover {
  background: #388e3c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.45);
  color: #fff;
  text-decoration: none;
}

.bm-download-btn svg {
  flex-shrink: 0;
}

/* ── INDIKÁTORY JAZYKŮ (tečky) ── */
.bm-lang-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.bm-lang-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s, transform 0.3s;
}

.bm-lang-dots span.active {
  background: #4caf50;
  transform: scale(1.4);
}

/* ── VLAJKY (manuální výběr) ── */
.bm-flags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.bm-flags a {
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  position: relative;
}

.bm-flags a:hover,
.bm-flags a.active {
  opacity: 1;
  transform: scale(1.12);
}

.bm-flags img {
  width: 64px;
  display: block;
}

/* Ikonka pauzy pod aktivní vlajkou */
.bm-flags a.active.paused::after {
  content: '⏸';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #888;
}

/* ── HINT TEXT (auto / paused stav) ── */
.bm-auto-hint {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 12px;
  min-height: 18px;
  transition: opacity 0.3s;
}

/* ── POPIS APLIKACE ── */
.bm-about {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.bm-about p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── UŽ MÁM APLIKACI – sekce ── */
.bm-already {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 48px 20px;
  text-align: center;
}

.bm-already p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 20px;
}

.bm-already p strong {
  color: #2e7d32;
}

.bm-already .bm-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #4caf50;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid #4caf50;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.bm-already .bm-more-btn:hover {
  background: #4caf50;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── ROZCESTNÍK ── */
.bm-nav-section {
  background: #f7fdf7;
  padding: 60px 0;
  border-top: 1px solid #e8e8e8;
}

.bm-nav-section h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 32px;
  font-size: 1.5rem;
  color: #222;
}

.bm-nav-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.bm-nav-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: #fff;
  border: 2px solid #c8e6c9;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.bm-nav-card:hover {
  border-color: #4caf50;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.18);
  transform: translateY(-3px);
  text-decoration: none;
  color: #222;
}

.bm-nav-card img {
  width: 48px;
  margin-bottom: 14px;
}

.bm-nav-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ── FOOTER PRUH ── */
.bm-footer-strip {
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.bm-footer-strip p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ── PROGRESS BAR ── */
.bm-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #4caf50;
  width: 0%;
  z-index: 9999;
}

/* ── DOWNLOAD WRAP (3 tlačítka App/Google/Windows) ── */
.bm-download-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 36px;   /* spodní margin = mezera nad vlajkami */
}

.ulp-btn-app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 160px;
  transition: background 0.2s, transform 0.15s;
}

.ulp-btn-app:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.ulp-btn-app small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1;
}

.ulp-btn-app h5 {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.ulp-btn-app svg {
  flex-shrink: 0;
}

.ulp-btn-app {
  background-color: var(--ulp-primary) !important;
  border-color:     var(--ulp-primary) !important;
}

.ulp-btn-app:hover {
  background-color: var(--ulp-primary) !important;
  border-color:     var(--ulp-primary) !important;
  filter: brightness(0.88);
}


/* ── RESPONZIVITA ── */
@media (max-width: 480px) {
  .bm-nav-card {
    max-width: 100%;
  }

  .bm-flags a.active.paused::after {
    bottom: -20px;
  }
}
