/* ==========================================================================
   Premium Glassmorphic Footer Component
   ========================================================================== */

.hd-footer {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(20, 21, 28, 0.8) 0%, rgba(8, 9, 12, 0.98) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 0 0;
  margin-top: 80px;
  overflow: hidden;
}

/* Background Glow Highlight */
.hd-footer-glow {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, rgba(230, 57, 70, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hd-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--hd-spacing-xl);
  padding-bottom: 50px;
}

/* ─── Column 1: Brand ─── */
.hd-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--hd-spacing-sm);
}

.hd-footer-logo {
  font-family: var(--hd-font-display);
  font-size: var(--hd-text-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hd-footer-logo .hd-logo-highlight {
  color: var(--hd-primary);
  text-shadow: 0 0 10px var(--hd-primary-glow);
}

.hd-footer-logo .hd-logo-version {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #000;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0;
}

.hd-footer-desc {
  font-size: var(--hd-text-sm);
  color: var(--hd-text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

/* Social Badges */
.hd-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: var(--hd-spacing-xs);
}

.hd-social-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--hd-radius-full);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hd-social-badge svg {
  transition: transform 0.3s ease;
}

.hd-social-badge:hover {
  transform: translateY(-4px);
}

.hd-social-badge:hover svg {
  transform: scale(1.15);
}

/* Brand specific colors on hover */
.hd-social-badge.discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.hd-social-badge.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.hd-social-badge.twitter:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* ─── Columns 2 & 3: Link Lists ─── */
.hd-footer-links-col h4,
.hd-footer-newsletter-col h4 {
  font-family: var(--hd-font-display);
  font-size: var(--hd-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.1em;
  margin: 0 0 var(--hd-spacing-md) 0;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

/* Small neon bottom accent bar under headers */
.hd-footer-links-col h4::after,
.hd-footer-newsletter-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--hd-primary), var(--hd-accent));
  border-radius: var(--hd-radius-full);
}

.hd-footer-fallback-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hd-footer-fallback-menu a {
  font-size: var(--hd-text-sm);
  color: var(--hd-text-dim);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.hd-footer-fallback-menu a:hover {
  color: var(--hd-primary);
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
}

/* WordPress custom menu rendering compatibility */
.hd-footer-links-col ul:not(.hd-footer-fallback-menu) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hd-footer-links-col ul:not(.hd-footer-fallback-menu) a {
  font-size: var(--hd-text-sm);
  color: var(--hd-text-dim);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.hd-footer-links-col ul:not(.hd-footer-fallback-menu) a:hover {
  color: var(--hd-primary);
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
}

/* ─── Column 4: Newsletter ─── */
.hd-footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: var(--hd-spacing-sm);
}

.hd-newsletter-desc {
  font-size: var(--hd-text-sm);
  color: var(--hd-text-muted);
  line-height: 1.5;
  margin: 0;
}

.hd-newsletter-form {
  margin-top: 4px;
}

.hd-newsletter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hd-newsletter-input-wrap:focus-within {
  border-color: var(--hd-primary);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.15);
}

.hd-newsletter-input-wrap input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #fff;
  font-family: inherit;
}

.hd-newsletter-input-wrap input::placeholder {
  color: var(--hd-text-dim);
  opacity: 0.8;
}

.hd-newsletter-input-wrap button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: var(--hd-primary);
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.hd-newsletter-input-wrap button:hover {
  background: var(--hd-primary-hover);
  box-shadow: -5px 0 15px rgba(230, 57, 70, 0.2);
}

.hd-newsletter-input-wrap button svg {
  transition: transform 0.3s ease;
}

.hd-newsletter-input-wrap button:hover svg {
  transform: translate(2px, -2px) scale(1.05);
}

/* ─── Footer Bottom ─── */
.hd-footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--hd-spacing-lg) 0;
  margin-top: 40px;
}

.hd-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hd-spacing-md);
}

.hd-footer-bottom p {
  margin: 0;
  font-size: 11px;
  color: var(--hd-text-dim);
  line-height: 1.5;
}

.hd-footer-bottom .hd-copyright {
  max-width: 450px;
}

.hd-footer-bottom .hd-copyright .highlight {
  color: var(--hd-primary);
  font-weight: 600;
}

.hd-footer-bottom .hd-disclaimer {
  max-width: 550px;
  text-align: right;
  opacity: 0.8;
}

/* ==========================================================================
   🚨 RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Tablet/Medium Laptop */
@media (max-width: 1024px) {
  .hd-footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--hd-spacing-lg);
  }

  .hd-footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-top: var(--hd-spacing-md);
  }
}

/* Tablet */
@media (max-width: 768px) {
  .hd-footer {
    padding: 60px 0 0 0;
    margin-top: 60px;
  }

  .hd-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hd-footer-brand {
    grid-column: 1 / -1;
    margin-bottom: var(--hd-spacing-xs);
  }

  .hd-footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .hd-footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--hd-spacing-sm);
  }

  .hd-footer-bottom .hd-disclaimer {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hd-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
