/* Team Midnite — public site footer (root pages only) */

.tm-site-footer {
  --tm-footer-yellow: #ffd600;
  --tm-footer-purple: #9146ff;
  --tm-footer-cyan: #42dcff;
  --tm-footer-surface: rgba(8, 9, 18, 0.96);
  --tm-footer-text: rgba(255, 255, 255, 0.72);
  --tm-footer-text-muted: rgba(255, 255, 255, 0.48);
  position: relative;
  margin-top: auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(145, 70, 255, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, rgba(12, 10, 28, 0.98) 0%, var(--tm-footer-surface) 100%);
  color: var(--tm-footer-text);
  overflow: hidden;
}

/* Animated accent line — refined dual-layer glow */
.tm-footer-accent {
  position: relative;
  height: 6px;
  z-index: 2;
}

.tm-footer-accent-glow {
  position: absolute;
  top: -4px;
  left: 5%;
  right: 5%;
  height: 14px;
  background: linear-gradient(270deg, #ffd700, #9146ff, #42dcff, #ffd700);
  background-size: 400% 400%;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
  animation: tmFooterRGB 14s ease-in-out infinite;
}

.tm-footer-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ffd700 12%,
    #9146ff 38%,
    #42dcff 62%,
    #9146ff 88%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: tmFooterLineShift 14s ease-in-out infinite;
  box-shadow:
    0 0 14px rgba(145, 70, 255, 0.45),
    0 0 6px rgba(255, 214, 0, 0.25);
}

.tm-footer-accent-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #ffd700, #9146ff, #42dcff, #ffd700);
  background-size: 400% 400%;
  animation: tmFooterRGB 14s ease-in-out infinite;
  opacity: 0.85;
  mix-blend-mode: screen;
}

@keyframes tmFooterRGB {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes tmFooterLineShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tm-footer-body {
  position: relative;
  z-index: 1;
  padding: 3rem 0 0;
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem 2rem;
}

@media (max-width: 991px) {
  .tm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.tm-footer-brand-logo-link {
  display: inline-block;
  margin: 0 0 0.75rem;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tm-footer-brand-logo-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tm-footer-brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(145, 70, 255, 0.25));
}

.tm-footer-brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-footer-cyan);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.tm-footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--tm-footer-text);
  margin: 0 0 1.25rem;
  max-width: 28rem;
}

.tm-footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm-footer-yellow);
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 214, 0, 0.18);
  position: relative;
}

.tm-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--tm-footer-yellow), var(--tm-footer-purple));
  border-radius: 2px;
}

.tm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-footer-links li {
  margin-bottom: 0.55rem;
}

.tm-footer-links a {
  color: var(--tm-footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.tm-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.tm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tm-footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(145, 70, 255, 0.28);
  border-color: rgba(145, 70, 255, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(145, 70, 255, 0.3);
}

.tm-footer-social a[href*="twitch"]:hover { color: #bf94ff; border-color: #9146ff; }
.tm-footer-social a[href*="discord"]:hover { color: #99aeff; border-color: #5865f2; }
.tm-footer-social a[href*="x.com"]:hover,
.tm-footer-social a[href*="twitter"]:hover { color: #8ecfff; border-color: #1da1f2; }
.tm-footer-social a[href*="instagram"]:hover { color: #ff8ec8; border-color: #e1306c; }

.tm-footer-newsletter p {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  color: var(--tm-footer-text);
}

.tm-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-footer-newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-footer-newsletter-form input[type="email"]::placeholder {
  color: var(--tm-footer-text-muted);
}

.tm-footer-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(145, 70, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.15);
}

.tm-footer-newsletter-form button {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--tm-footer-yellow) 0%, var(--tm-footer-purple) 100%);
  border: none;
  border-radius: 8px;
  color: #0a0b14;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tm-footer-newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(145, 70, 255, 0.4);
  filter: brightness(1.08);
}

.tm-footer-divider {
  height: 1px;
  margin: 2.5rem 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 214, 0, 0.25) 20%,
    rgba(145, 70, 255, 0.35) 50%,
    rgba(66, 220, 255, 0.25) 80%,
    transparent
  );
}

.tm-footer-bottom {
  padding: 1.5rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.tm-footer-meta {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--tm-footer-text-muted);
}

.tm-footer-meta strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.tm-footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.4rem;
}

.tm-footer-meta-links a {
  color: var(--tm-footer-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.tm-footer-meta-links a:hover {
  color: #7ee8ff;
  text-decoration: underline;
}

.tm-footer-security {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 214, 0, 0.55);
}

.tm-footer-security a {
  color: rgba(255, 214, 0, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tm-footer-security a:hover {
  color: var(--tm-footer-yellow);
}

.tm-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}

@media (max-width: 767px) {
  .tm-footer-actions {
    align-items: flex-start;
    text-align: left;
  }
}

.tm-footer-actions a {
  color: var(--tm-footer-yellow);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-actions a.tm-footer-link-cyan {
  color: var(--tm-footer-cyan);
}

.tm-footer-actions a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: rgba(66, 220, 255, 0.08);
  border: 1px solid rgba(66, 220, 255, 0.2);
  color: var(--tm-footer-yellow) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tm-footer-back-top:hover {
  background: rgba(66, 220, 255, 0.16);
  border-color: rgba(66, 220, 255, 0.4);
  text-decoration: none !important;
}