/* =============================================
   Nusantara Games — Footer Styles
   style.css
   ============================================= */

/* --- Palet Footer (ikut tema) ---
   Default = GELAP. Mode terang di-override di bawah. Token eksplisit agar
   footer tidak bergantung pada --ng-page global (yang bisa resolve terang). */
.ng-footer{
  --ng-foot-bg:#0d1224;
  --ng-foot-accent:#F5C842;
  --ng-foot-text:#8ab4d4;
  --ng-foot-strong:#ffffff;
  --ng-foot-border:#1e3a5f;
  --ng-foot-surface:#0f2035;
  --ng-foot-ink:#0a1628;
  --ng-foot-icon:#3a7fd4;
  --ng-foot-dim:#4a6a8a;
  --ng-foot-danger:#e24b4a;
}
html[data-theme="light"] .ng-footer{
  --ng-foot-bg:#f3f5f9;
  --ng-foot-accent:#c67c00;   /* amber lebih pekat agar kontras di latar terang */
  --ng-foot-text:#45566b;
  --ng-foot-strong:#16202e;
  --ng-foot-border:#dde4ec;
  --ng-foot-surface:#ffffff;
  --ng-foot-ink:#ffffff;
  --ng-foot-icon:#2563eb;
  --ng-foot-dim:#7a8aa0;
  --ng-foot-danger:#dc2626;
}

/* --- Footer Wrapper --- */
.ng-footer {
  font-family: sans-serif;
  background: var(--ng-foot-bg,#0d1224);
  border-top: 2px solid var(--ng-foot-accent,#F5C842);
  padding: 2.75rem 2rem 1.35rem;
}

/* Batasi lebar isi footer agar tetap rapi di layar besar. */
.ng-footer > .ng-tagline-strip,
.ng-footer > .ng-footer-grid,
.ng-footer > .ng-divider,
.ng-footer > .ng-bottom {
  width: min(100%, 1400px);
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer Grid --- */
.ng-footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(180px,.72fr) minmax(0,1.15fr);
  gap: 3rem;
  margin-bottom: 2.25rem;
}

/* --- Logo --- */
.ng-logo {
  font-size: 20px;
  font-weight: 500;
  color: var(--ng-foot-accent,#F5C842);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ng-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--ng-foot-accent,#F5C842);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ng-logo-icon i {
  font-size: 22px;
  color: var(--ng-foot-ink,#0a1628);
}

/* --- Brand Description --- */
.ng-brand-desc {
  font-size: 14px;
  color: var(--ng-foot-text,#8ab4d4);
  line-height: 1.75;
  margin: 12px 0 18px;
}

/* --- Social Media Icons --- */
.ng-socials {
  display: flex;
  gap: 8px;
}

.ng-socials a {
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--ng-foot-border,#1e3a5f);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ng-foot-text,#8ab4d4);
  text-decoration: none;
  background: var(--ng-foot-surface,#0f2035);
  transition: all 0.15s;
}

.ng-socials a:hover {
  background: var(--ng-foot-accent,#F5C842);
  color: var(--ng-foot-ink,#0a1628);
  border-color: var(--ng-foot-accent,#F5C842);
}

/* --- Column Headings --- */
.ng-col h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--ng-foot-accent,#F5C842);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

/* --- Column Links --- */
.ng-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ng-col ul li a {
  font-size: 14px;
  color: var(--ng-foot-text,#8ab4d4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.ng-col ul li a i {
  font-size: 14px;
  color: var(--ng-foot-icon,#3a7fd4);
}

/* Footer About icons are optional uploads from Footer Setting.
   Legacy Tabler icons are hidden; uploaded icons use this class. */
.ng-footer-grid .ng-col:nth-child(2) ul li a > i:not(.ng-footer-about-logo) {
  display: none !important;
}

.ng-footer-about-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.ng-col ul li a:hover {
  color: var(--ng-foot-strong,#ffffff);
}

.ng-col ul li a:hover i {
  color: var(--ng-foot-accent,#F5C842);
}

/* --- Marketing Highlights --- */
.ng-marketing-box{
  display:flex;
  flex-direction:column;
  margin-top:2px;
  border-top:1px solid var(--ng-foot-border,#1e3a5f);
}
.ng-marketing-item{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:11px 0;
  border-bottom:1px solid var(--ng-foot-border,#1e3a5f);
}
.ng-marketing-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:transparent;
  color:var(--ng-foot-accent,#F5C842);
}
.ng-marketing-icon i{font-size:18px}
.ng-marketing-item div{min-width:0}
.ng-marketing-item strong{
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--ng-foot-strong,#fff);
  line-height:1.35;
}
.ng-marketing-item div > span{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:var(--ng-foot-text,#8ab4d4);
  line-height:1.45;
}
.ng-marketing-item:last-child{border-bottom:0}

/* --- Badges --- */
.ng-badge-new {
  font-size: 10px;
  background: var(--ng-foot-accent,#F5C842);
  color: var(--ng-foot-ink,#0a1628);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
  margin-left: 4px;
  vertical-align: middle;
}

.ng-badge-hot {
  font-size: 10px;
  background: var(--ng-foot-danger,#e24b4a);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
  margin-left: 4px;
  vertical-align: middle;
}

/* --- Divider --- */
.ng-divider {
  border: none;
  border-top: 0.5px solid var(--ng-foot-border,#1e3a5f);
  margin: 0 0 1.5rem;
}

/* --- Bottom Bar --- */
.ng-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ng-copyright {
  font-size: 13px;
  color: var(--ng-foot-dim,#4a6a8a);
  line-height: 1.7;
}

.ng-copyright strong {
  color: var(--ng-foot-text,#8ab4d4);
  font-weight: 500;
}

.ng-copyright .ng-made-with {
  font-size: 12px;
}

.ng-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ng-bottom-links a {
  font-size: 13px;
  color: var(--ng-foot-dim,#4a6a8a);
  text-decoration: none;
}

.ng-bottom-links a:hover {
  color: var(--ng-foot-text,#8ab4d4);
}

/* --- Tagline Strip --- */
.ng-tagline-strip {
  background: rgba(58, 127, 212, 0.08);
  border: 0.5px solid var(--ng-foot-border,#1e3a5f);
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ng-tagline-strip span {
  font-size: 13px;
  color: var(--ng-foot-text,#8ab4d4);
}

.ng-tagline-strip strong {
  color: var(--ng-foot-accent,#F5C842);
  font-weight: 500;
}

.ng-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ng-foot-border,#1e3a5f);
  flex-shrink: 0;
}


@media (max-width: 900px){
  .ng-footer{ padding:2.25rem 1.25rem 1.25rem; }
  .ng-footer-grid{ grid-template-columns:1fr 1fr; gap:2rem; }
  .ng-brand-col{ grid-column:1 / -1; }
}

@media (max-width: 620px){
  .ng-footer-grid{ grid-template-columns:1fr; gap:1.75rem; }
  .ng-brand-col{ grid-column:auto; }
  .ng-tagline-strip{ margin-bottom:2rem; }
  .ng-bottom{ align-items:flex-start; }
  .ng-bottom-links{ gap:10px 14px; }
}
