﻿/* Shared footer (matches index.php look on all pages that include includes/footer.php) */

.footer {
  background: linear-gradient(180deg, rgba(14, 14, 20, 0.96) 0%, #060607 100%);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.lc-footer-social .lc-play-badge {
  display: block;
  line-height: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.lc-footer-social .lc-play-badge:hover {
  transform: translateY(-2px);
}

.lc-footer-social .lc-play-badge img {
  height: 52px;
  width: auto;
}

.lc-social {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.lc-footer-social .lc-social svg {
  width: 22px;
  height: 22px;
}

.lc-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lc-social:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 3px;
}

.lc-social-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.lc-social-yt {
  background: linear-gradient(145deg, #ff6b8d 0%, #ff0033 42%, #b31217 100%);
}

.lc-social-discord {
  background: linear-gradient(145deg, #7289da 0%, #5865f2 50%, #4752c4 100%);
}

.lc-footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.lc-footer-legal a:hover {
  color: #ffc107;
}

.lc-footer-copy {
  color: rgba(255, 255, 255, 0.45);
}

/* Footer social row: keep Play + Instagram + YouTube + Discord on one line on mobile */
@media (max-width: 767.98px) {
  .lc-footer-social {
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 2.2vw, 0.55rem);
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .lc-footer-social .lc-play-badge {
    flex: 0 1 auto;
    min-width: 0;
  }

  .lc-footer-social .lc-play-badge img {
    height: 40px;
    width: auto;
    max-width: min(128px, 34vw);
  }

  .lc-footer-social .lc-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .lc-footer-social .lc-social svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 380px) {
  .lc-footer-social {
    gap: 0.3rem;
  }

  .lc-footer-social .lc-play-badge img {
    height: 34px;
    max-width: min(108px, 30vw);
  }

  .lc-footer-social .lc-social {
    width: 34px;
    height: 34px;
  }

  .lc-footer-social .lc-social svg {
    width: 18px;
    height: 18px;
  }
}

/* Language switcher (shared + footer placement) */
.lc-lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

.lc-lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lc-lang-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lc-lang-switch-btn.is-active {
  color: #fff;
  background: rgba(111, 66, 193, 0.42);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.lc-lang-switch-flag {
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.lc-lang-switch-name--short {
  display: none;
}

/* Compact switcher (e.g. profile settings card) */
.lc-lang-switch--inline {
  width: fit-content;
  max-width: 100%;
}

.lc-lang-switch--inline .lc-lang-switch-btn {
  flex: 0 1 auto;
  min-height: 0;
}

.lc-footer-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
}

.lc-footer-lang-label {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem !important;
}

.lc-lang-switch--footer {
  width: min(100%, 22rem);
  margin-inline: auto;
}

.lc-lang-switch--footer .lc-lang-switch-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 767.98px) {
  .footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.lc-app .footer {
    padding-bottom: calc(2.5rem + var(--lc-bottom-nav-stack, 5.5rem) + env(safe-area-inset-bottom, 0px));
  }

  .lc-footer-lang {
    margin-bottom: 1.25rem !important;
  }

  .lc-lang-switch--footer {
    width: min(100%, 20rem);
  }
}

@media (max-width: 380px) {
  .lc-lang-switch--footer .lc-lang-switch-name--long,
  .lc-lang-switch:not(.lc-lang-switch--inline) .lc-lang-switch-name--long {
    display: none;
  }

  .lc-lang-switch--footer .lc-lang-switch-name--short,
  .lc-lang-switch:not(.lc-lang-switch--inline) .lc-lang-switch-name--short {
    display: inline;
  }

  .lc-lang-switch--footer .lc-lang-switch-btn,
  .lc-lang-switch:not(.lc-lang-switch--inline) .lc-lang-switch-btn {
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }
}

/* Auth pages: footer language switcher matches app shell */
body.lc-auth-page {
  width: 100%;
}

body.lc-auth-page .footer {
  width: 100%;
  margin-top: auto;
}

body.lc-auth-page .lc-footer-lang {
  width: 100%;
}

body.lc-auth-page .lc-lang-switch--footer {
  width: min(100%, 20rem);
}
