/* ============================================
   DoiHinhTFT.VN — Custom Footer (Mẫu 2 Compact)
   Theme: #0a0d1a body + #0f1428 nav + #d4b896 gold
   ============================================ */

.dhtft-footer {
  background: #0f1428;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #e6e6e6;
  position: relative;
}

/* ── Floating Particles ── */
.dhtft-footer__particles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.dhtft-footer__particle {
  position: absolute; bottom: -6px;
  border-radius: 50%;
  background: rgba(212,184,150,.25);
  opacity: 0;
}
@keyframes dhtftFloat {
  0%   { transform: translateY(0) translateX(0);  opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: .35; }
  100% { transform: translateY(-340px) translateX(var(--tx, 20px)); opacity: 0; }
}

.dhtft-footer__band {
  position: relative;
  padding: 11px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,140,60,.18);
  z-index: 1;
}
.dhtft-footer__band-bg {
  position: absolute; inset: 0;
  background-color: #0c1020;
  background-image:
    linear-gradient(rgba(255,140,60,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,60,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.dhtft-footer__band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,120,40,.05) 0%, rgba(255,160,80,.03) 50%, rgba(255,120,40,.05) 100%);
}
.dhtft-footer__band-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
}
.dhtft-footer__band-text {
  font-size: 13px; font-weight: 700;
  color: rgba(255,165,90,.88); letter-spacing: .3px;
}
.dhtft-footer__band-badge {
  margin-left: auto;
  padding: 2px 10px;
  background: rgba(255,140,60,.12);
  border: 1px solid rgba(255,140,60,.22);
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,165,90,.75); letter-spacing: .8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: rgba(255,140,60,.9);
  border-radius: 50%; flex-shrink: 0;
  animation: dhtft-pulse 2s infinite;
}

.dhtft-footer__main {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 0;
  border-bottom: 1px solid rgba(200,160,50,.1);
  position: relative; z-index: 1;
}
.dhtft-footer__col {
  padding: 36px 32px; border-right: 1px solid rgba(200,160,50,.1);
}
.dhtft-footer__col:last-child { border-right: none; }

.dhtft-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dhtft-footer__logo-icon {
  width: 40px; height: 40px; background: rgba(200,160,50,.1);
  border: 1px solid rgba(200,160,50,.25); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.dhtft-footer__logo-icon img { width: 24px; height: 24px; }
.dhtft-footer__logo-icon svg { width: 22px; height: 22px; fill: #d4b896; }
.dhtft-footer__logo-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.dhtft-footer__logo-name span { color: #d4b896; }

.dhtft-footer__stats { display: flex; gap: 10px; margin-bottom: 16px; }
.dhtft-footer__stat {
  flex: 1; background: rgba(200,160,50,.05); border: 1px solid rgba(200,160,50,.1);
  border-radius: 8px; padding: 12px 10px; text-align: center;
}
.dhtft-footer__stat-num { font-size: 20px; font-weight: 700; color: #d4b896; line-height: 1; }
.dhtft-footer__stat-label { font-size: 11px; color: rgba(230,230,230,.45); margin-top: 4px; }

/* ── Giới thiệu SEO (thay thế subscribe) ── */
.dhtft-footer__intro { margin-bottom: 16px; }
.dhtft-footer__intro p {
  font-size: 13px; color: rgba(230,230,230,.6); line-height: 1.65; margin: 0 0 8px;
}
.dhtft-footer__intro p:last-child { margin-bottom: 0; }
.dhtft-footer__intro strong { color: rgba(200,160,50,.9); font-weight: 600; }

/* ── TikTok button màu riêng ── */
.dhtft-social-tt { background: rgba(255,255,255,.04) !important; }
.dhtft-social-tt:hover { border-color: #fff !important; color: #fff !important; }

.dhtft-footer__socials { display: flex; gap: 8px; flex-wrap: wrap; }
.dhtft-footer__social-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(200,160,50,.05); border: 1px solid rgba(200,160,50,.1);
  border-radius: 6px; font-size: 12px; color: #e6e6e6; text-decoration: none; transition: all .2s;
}
.dhtft-footer__social-btn:hover { border-color: #d4b896; color: #d4b896; }
.dhtft-footer__social-btn svg { width: 14px; height: 14px; fill: currentColor; }

.dhtft-footer__col-title {
  font-size: 11px; font-weight: 700; color: #d4b896; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,160,50,.1);
  display: flex; align-items: center; gap: 10px;
}
.dhtft-footer__col-title::after { content: ''; flex: 1; height: 1px; background: rgba(200,160,50,.06); }

.dhtft-footer__nav-item {
  padding: 8px 0; border-bottom: 1px solid rgba(200,160,50,.05);
  display: flex; align-items: center; justify-content: space-between;
}
.dhtft-footer__nav-item:last-child { border-bottom: none; }
.dhtft-footer__nav-item a {
  font-size: 14px; color: #e6e6e6; text-decoration: none; transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.dhtft-footer__nav-item a::before {
  content: ''; width: 4px; height: 4px; background: rgba(200,160,50,.35);
  border-radius: 50%; flex-shrink: 0;
}
.dhtft-footer__nav-item a:hover { color: #d4b896; }

.dhtft-footer__badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: .5px; }
.dhtft-footer__badge--hot { background: rgba(200,160,50,.15); color: #d4b896; }
.dhtft-footer__badge--new { background: rgba(74,222,128,.12); color: #4ade80; }
.dhtft-footer__badge--patch { background: rgba(120,80,220,.15); color: #a87cef; }

.dhtft-footer__patch-status {
  display: flex; align-items: center; gap: 8px;
  background: rgba(200,160,50,.05); border: 1px solid rgba(200,160,50,.1);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}
.dhtft-footer__patch-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: dhtft-pulse 2s infinite; }
.dhtft-footer__patch-label { font-size: 13px; color: rgba(230,230,230,.55); }
.dhtft-footer__patch-ver { font-size: 13px; color: #d4b896; font-weight: 600; margin-left: auto; }

.dhtft-footer__comp-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(200,160,50,.03); border: 1px solid rgba(200,160,50,.07);
  border-radius: 8px; margin-bottom: 8px; transition: border-color .2s;
}
.dhtft-footer__comp-item:hover { border-color: rgba(200,160,50,.25); }
.dhtft-footer__comp-item:last-child { margin-bottom: 0; }

.dhtft-footer__comp-tier {
  font-size: 12px; font-weight: 800; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0;
}
.dhtft-footer__comp-tier--s { background: rgba(200,160,50,.15); color: #d4b896; }
.dhtft-footer__comp-tier--a { background: rgba(120,80,220,.15); color: #a87cef; }
.dhtft-footer__comp-tier--b { background: rgba(230,230,230,.08); color: #9ca3af; }

.dhtft-footer__comp-name { font-size: 13px; color: #e6e6e6; flex: 1; }
.dhtft-footer__comp-name a { color: inherit; text-decoration: none; }
.dhtft-footer__comp-name a:hover { color: #d4b896; }
.dhtft-footer__comp-pct { font-size: 12px; font-weight: 700; color: #22c55e; }
.dhtft-footer__comp-empty { font-size: 13px; color: rgba(230,230,230,.35); padding: 10px 0; text-align: center; }

.dhtft-footer__bottom {
  background: #0a0d1a; padding: 14px 0; border-top: 1px solid rgba(200,160,50,.08);
}
.dhtft-footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.dhtft-footer__copy { font-size: 12px; color: rgba(230,230,230,.3); }
.dhtft-footer__tags { display: flex; gap: 8px; }
.dhtft-footer__tag {
  font-size: 10px; padding: 3px 10px; background: rgba(200,160,50,.06);
  border: 1px solid rgba(200,160,50,.1); border-radius: 4px;
  color: rgba(200,160,50,.5); letter-spacing: .5px; font-weight: 600;
}
.dhtft-footer__riot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(230,230,230,.25); }
.dhtft-footer__riot-badge {
  background: rgba(200,160,50,.06); border: 1px solid rgba(200,160,50,.1);
  border-radius: 4px; padding: 2px 8px; font-size: 10px;
  color: rgba(200,160,50,.5); font-weight: 600;
}

@media (max-width: 992px) {
  .dhtft-footer__main { grid-template-columns: 1fr 1fr; }
  .dhtft-footer__col:first-child { grid-column: 1/-1; border-right: none; border-bottom: 1px solid rgba(200,160,50,.1); }
  .dhtft-footer__stats { max-width: 400px; }
}
@media (max-width: 768px) {
  .dhtft-footer__main { grid-template-columns: 1fr; }
  .dhtft-footer__col { border-right: none; border-bottom: 1px solid rgba(200,160,50,.1); padding: 28px 20px; }
  .dhtft-footer__col:last-child { border-bottom: none; }
  .dhtft-footer__band { padding: 12px 20px; }
  .dhtft-footer__band > .bloghash-container > div { flex-direction: column; text-align: center; }
  .dhtft-footer__bottom-inner { flex-direction: column; text-align: center; }
}
/* ── Legal links — đồng bộ style với nút MXH ─────────────── */

/* Wrapper bao MXH + legal — 1 hàng duy nhất */
.dhtft-footer__social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

/* Bỏ flex-direction của socials nếu theme đang dùng column */
.dhtft-footer__social-row .dhtft-footer__socials {
    display: contents; /* các nút con trực tiếp nằm vào social-row */
}

/* Legal links group — cũng display contents để nút nằm thẳng vào row */
.dhtft-footer__legal {
    display: contents;
}

/* Mỗi link — đồng bộ y hệt .dhtft-footer__social-btn */
.dhtft-footer__legal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 6px;
    border: 1px solid rgba(200, 155, 60, 0.25);
    background: rgba(200, 155, 60, 0.07);
    font-size: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: rgba(212, 184, 150, 0.75);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    height: 36px; /* cùng chiều cao với nút MXH */
    box-sizing: border-box;
}
.dhtft-footer__legal-link:hover {
    border-color: rgba(200, 155, 60, 0.6);
    background: rgba(200, 155, 60, 0.14);
    color: #C89B3C;
    text-decoration: none;
}
.dhtft-footer__legal-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Đảm bảo nút MXH cũng cùng chiều cao */
.dhtft-footer__social-btn {
    height: 36px !important;
    box-sizing: border-box !important;
}

/* Mobile: wrap tự nhiên theo flex-wrap */
@media (max-width: 480px) {
    .dhtft-footer__social-row {
        gap: 6px;
    }
}