/* =====================================================================
   TNI "Tactical Command" theme
   Lapisan tampilan di atas styles.css (Tailwind build). Hapus <link>
   tni-theme.css di index.html untuk kembali ke tampilan lama.
   Palet: merah baret Kopassus, emas, hitam taktis.
   ===================================================================== */

:root {
  --tni-red: #d10a0a;
  --tni-red-deep: #5c0505;
  --tni-gold: #e9c46a;
  --tni-gold-bright: #ffd166;
  --tni-gold-deep: #8a6410;
  --tni-steel: #a7adb3;
  --tni-black: #070707;
  --tni-panel: rgba(10, 10, 10, 0.82);
  --tni-line: rgba(233, 196, 106, 0.45);
  --tni-hud: "Chakra Petch", "Roboto Condensed", sans-serif;
}

/* ---------- Latar luar (desktop) ---------- */
main {
  background-color: #050505 !important;
  background-image:
    linear-gradient(rgba(209, 10, 10, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 10, 10, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at center, #1c0a0a 0%, #050505 70%) !important;
  background-size: 32px 32px, 32px 32px, 100% 100% !important;
  background-position: 0 0 !important;
}

#fixed-container {
  background: var(--tni-black) !important;
  box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.35), 0 0 40px rgba(209, 10, 10, 0.25), 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* ---------- Background: biru -> baja gelap kemerahan ---------- */
.content-wrapper {
  background-image: none !important;
}
.content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg.jpg") 53% center / cover no-repeat;
  filter: grayscale(0.9) sepia(0.35) hue-rotate(-25deg) saturate(1.6) brightness(0.5) contrast(1.15);
  z-index: 0;
}

/* Lampu neon di tiap section: biru/kuning -> merah */
img[src="bg2.webp"] {
  filter: grayscale(1) sepia(1) hue-rotate(-40deg) saturate(4) brightness(0.6) !important;
}
/* Ornamen sudut biru -> emas */
img[src="tl-deco.webp"],
img[src="tr-deco.webp"],
img[src="tr.webp"],
img[src="bl.webp"] {
  filter: grayscale(1) sepia(1) saturate(2.4) brightness(0.9);
}
img[src="light-shine.webp"] {
  filter: grayscale(1) sepia(1) hue-rotate(-20deg) saturate(3);
}

/* ---------- HUD overlay ---------- */
.tni-hud {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.tni-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.tni-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  top: -120px;
  background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.06), transparent);
  animation: tni-sweep 7s linear infinite;
}
.tni-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--tni-gold);
  filter: drop-shadow(0 0 4px rgba(255, 209, 102, 0.6));
}
.tni-corner.tl { top: 34px; left: 8px; border-right: 0; border-bottom: 0; }
.tni-corner.tr { top: 34px; right: 8px; border-left: 0; border-bottom: 0; }
.tni-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.tni-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.tni-nav-open .tni-corner.bl,
.tni-nav-open .tni-corner.br { bottom: 90px; }

/* ---------- Status bar atas ---------- */
.tni-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 31;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 12px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
  border-bottom: 1px solid rgba(233, 196, 106, 0.25);
  pointer-events: none;
}
.tni-statusbar::before {
  /* strip merah-putih */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(180deg, var(--tni-red) 0 50%, #f5f5f5 50% 100%);
}
.tni-statusbar .tni-status {
  font-family: var(--tni-hud) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tni-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tni-statusbar .tni-status-right { color: var(--tni-steel); }
.tni-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tni-red);
  box-shadow: 0 0 6px var(--tni-red);
  animation: tni-blink 1.4s steps(2, start) infinite;
}

/* ---------- Opening ---------- */
.tni-radar-wrap {
  position: relative;
  z-index: 11;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.tni-radar {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  z-index: 10;
  background:
    repeating-radial-gradient(circle, transparent 0 40px, rgba(233, 196, 106, 0.22) 40px 41px),
    linear-gradient(transparent calc(50% - 0.5px), rgba(233, 196, 106, 0.18) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(233, 196, 106, 0.18) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    radial-gradient(circle, rgba(209, 10, 10, 0.28), rgba(0, 0, 0, 0.55) 70%);
  box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.4), 0 0 30px rgba(209, 10, 10, 0.35);
  overflow: hidden;
}
.tni-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 209, 102, 0.35), rgba(255, 209, 102, 0) 70deg, transparent 360deg);
  animation: tni-spin 4s linear infinite;
}
.tni-radar-wrap {
  margin: 58px 0 52px;
}
.tni-radar-wrap > img {
  max-width: 230px;
}
.tni-guest {
  z-index: 12 !important;
}

.tni-subtitle {
  position: relative;
  z-index: 10;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tni-hud) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #f1f1f1;
  text-transform: uppercase;
}
.tni-subtitle::before,
.tni-subtitle::after {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tni-red));
}
.tni-subtitle::after { background: linear-gradient(270deg, transparent, var(--tni-red)); }

/* Plat nama tamu (dog tag) */
.tni-guest {
  padding: 10px 26px 14px;
}
.tni-guest .tni-plate {
  position: relative;
  margin: 0 auto 14px;
  padding: 8px 22px 10px;
  min-width: 220px;
  max-width: 330px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(40, 10, 10, 0.92));
  border: 1px solid var(--tni-line);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.tni-guest .tni-plate::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--tni-gold);
}
.tni-guest .tni-plate > div,
.tni-guest .tni-plate > h5 {
  text-shadow: none !important;
}
.tni-guest .tni-plate > div:first-child {
  margin-top: 8px;
  font-family: var(--tni-hud) !important;
  font-size: 10px !important;
  letter-spacing: 0.3em;
  color: var(--tni-steel) !important;
  text-transform: uppercase;
}
.tni-guest #namatamudc2,
.tni-guest #namatamudc {
  color: var(--tni-gold-bright) !important;
  margin-bottom: 0 !important;
}

/* ---------- Tombol utama (Buka Undangan, Peta, RSVP) ---------- */
.tni-btn {
  display: inline-block;
  position: relative;
  padding: 14px 34px 14px 30px;
  background: linear-gradient(180deg, #ffe08a 0%, #e0aa2c 45%, #a8730f 100%);
  color: #1b1204;
  font-family: var(--tni-hud) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: filter 0.2s ease;
}
.tni-btn::before {
  content: "\25B6\00a0\00a0";
  font-size: 0.8em;
  color: var(--tni-red);
}
.tni-btn:hover { filter: brightness(1.1); }
.tni-btn:active { filter: brightness(0.92); }
.tni-btn-block {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
}
#open-invitation-btn { margin-top: 4px; }

.tni-btn-red {
  background: linear-gradient(180deg, #e01010, #8e0606);
  color: #fff;
  font-family: var(--tni-hud) !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ---------- Label/badge (dulu biru) ---------- */
[style*="linear-gradient(64deg"] {
  background: linear-gradient(90deg, var(--tni-red-deep), var(--tni-red) 50%, var(--tni-red-deep)) !important;
  box-shadow: 0 0 0 1px rgba(233, 196, 106, 0.7), 0 0 14px rgba(209, 10, 10, 0.55);
  border-radius: 2px !important;
  padding: 2px 8px;
}
[style*="linear-gradient(64deg"] > div {
  color: #fff4d6 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.06em;
}
#event .text-amber,
#maps .text-amber {
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}
#event .border-l {
  border-left-color: rgba(233, 196, 106, 0.5) !important;
}

/* ---------- Panel teks ---------- */
#fixed-container .bg-black\/70,
#fixed-container .bg-black\/50 {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.86), rgba(28, 8, 8, 0.86)) !important;
  border: 1px solid rgba(233, 196, 106, 0.28);
  border-radius: 3px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
#fixed-container .bg-black\/70::before,
#fixed-container .bg-black\/70::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tni-gold);
  pointer-events: none;
}
#fixed-container .bg-black\/70::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
#fixed-container .bg-black\/70::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* ---------- Countdown ---------- */
img[src="countdown-bg.webp"] {
  display: none !important;
}
#countdown {
  gap: 8px;
  padding: 0 4px;
}
#countdown > .simply-section {
  width: 62px;
  height: 64px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.92), rgba(36, 8, 8, 0.92));
  border: 1px solid rgba(233, 196, 106, 0.5);
  border-top: 3px solid var(--tni-red);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(209, 10, 10, 0.35);
  backdrop-filter: none;
}
#countdown .simply-amount {
  display: block;
  font-family: var(--tni-hud) !important;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--tni-gold-bright);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
}
#countdown .simply-word {
  font-family: var(--tni-hud) !important;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--tni-steel);
  text-transform: uppercase;
}

/* ---------- Galeri ---------- */
.gallery-grid > button,
.gallery-grid > div > button {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, 0.4);
}
.gallery-grid img {
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92) contrast(1.05);
}
.gallery-grid button:hover img {
  transform: scale(1.06);
  filter: none;
}

/* ---------- Navigasi bawah ---------- */
.nav-container {
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.96), #050505) !important;
  border-top: 1px solid rgba(233, 196, 106, 0.45);
  border-radius: 0 !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}
.nav-link {
  position: relative;
  color: #8d939a !important;
  border-radius: 4px !important;
}
.nav-link span {
  font-family: var(--tni-hud) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px !important;
}
.nav-link.active {
  color: var(--tni-gold-bright) !important;
  background: linear-gradient(180deg, rgba(209, 10, 10, 0.45), rgba(209, 10, 10, 0.08)) !important;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: var(--tni-gold-bright);
  box-shadow: 0 0 8px var(--tni-gold-bright);
}

/* ---------- Tombol mengambang ---------- */
.tni-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.78);
  color: var(--tni-gold-bright);
  outline: 1px solid rgba(233, 196, 106, 0.6);
  box-shadow: 0 0 12px rgba(209, 10, 10, 0.45);
  font-size: 16px;
}
.tni-fab:disabled { opacity: 0.5; }
.tni-fab:hover,
.tni-fab:focus {
  background: linear-gradient(180deg, #e01010, #a00000);
  color: #fff;
  opacity: 1;
}
.tni-fab:focus-visible {
  outline: 2px solid var(--tni-gold-bright);
  outline-offset: 2px;
}

/* ---------- Modal (Galeri & RSVP) ---------- */
.modal {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(3px);
}
.tni-modal {
  background: linear-gradient(180deg, #121212, #0a0606);
  color: #e9e9e9;
  border: 1px solid rgba(233, 196, 106, 0.4);
  border-radius: 6px;
  overflow: hidden;
}
.modal .modal-header {
  border-bottom: 1px solid rgba(233, 196, 106, 0.25) !important;
  background: linear-gradient(90deg, var(--tni-red-deep), rgba(209, 10, 10, 0.6), var(--tni-red-deep));
}
.modal .modal-header h1 {
  font-family: "Black Ops One", system-ui !important;
  color: var(--tni-gold-bright);
  letter-spacing: 0.08em;
}
.modal .modal-header button { color: #fff; }
.modal .border-t-gray-300 { border-top-color: rgba(233, 196, 106, 0.25) !important; }
#form-submit-wish button[type="submit"] { padding: 10px 0; margin-top: 4px; }
#form-submit-wish label { color: var(--tni-gold) !important; font-family: var(--tni-hud) !important; letter-spacing: 0.06em; }
#form-submit-wish input,
#form-submit-wish select,
#form-submit-wish textarea {
  background: #181818;
  color: #f1f1f1;
}
#form-submit-wish select option { background: #181818; color: #f1f1f1; }
#showAll { color: #e5e5e5; }
#showAll li { padding: 8px 10px; background: rgba(255, 255, 255, 0.03); border-left: 2px solid var(--tni-red); }
#showAll .tni-badge { background: var(--tni-red-deep); color: #ffe8b0; }
.carousel-control-prev,
.carousel-control-next {
  border-color: var(--tni-gold) !important;
}

/* ---------- Animasi ---------- */
@keyframes tni-spin { to { transform: rotate(360deg); } }
@keyframes tni-blink { to { visibility: hidden; } }
@keyframes tni-sweep { to { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .tni-radar::after,
  .tni-scan::after,
  .tni-dot { animation: none; }
}

/* ---------- Galeri: logo diturunkan ---------- */
#gallery {
  justify-content: flex-start !important;
}
.tni-gallery-logo {
  margin-top: 80px;
}

/* ---------- Netralkan pink (#c36) bawaan tema Hello Elementor ----------
   Tema itu mewarnai semua link dan hover/focus tombol dengan pink. */
#fixed-container a:not(.tni-btn) {
  color: inherit;
}
.tni-btn:hover,
.tni-btn:focus {
  color: #1b1204;
}
.tni-btn-red:hover,
.tni-btn-red:focus {
  color: #fff;
  background: linear-gradient(180deg, #ff1a1a, #b00000);
}
.gallery-grid button:hover,
.gallery-grid button:focus,
.modal .modal-header button:hover,
.modal .modal-header button:focus {
  background-color: transparent;
}
.modal .modal-header button:hover,
.modal .modal-header button:focus {
  color: var(--tni-gold-bright);
}
