/* ================= GLOBAL VARIABLES ================= */
:root {
  --pink: #f14e95;
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgb(0 0 0 / 0.5);
}

body {
  font-size: 1.2rem;
  font-family: "Work Sans", sans-serif;
  min-height: 4000px;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  min-height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/bg-preview.jpg);
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: grayscale();
}

.hero h1,
.hero h4,
.hero p {
  text-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Sacramento", cursive;
  font-size: 6rem;
}

.hero h4 {
  font-size: 1.6rem;
}

.hero p {
  font-size: 1.4rem;
}

.hero a {
  color: var(--pink);
  background-color: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.hero a:hover {
  background-color: var(--pink);
  color: white;
}

/* Container utama */
#loginAdminContainer {
  position: fixed;
  bottom: 15px;
  left: 15px;
  width: 160px;
  background: #f14e95; /* tetap cerah */
  border-radius: 40px;
  color: #fff;
  z-index: 9999;
  overflow: hidden;
  transition: width 0.3s ease, border-radius 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Tombol utama */
#loginAdminBtn {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 0.1s ease;
}

/* Hover & ikon animasi */
#loginAdminBtn i {
  transition: transform 0.3s ease, color 0.3s ease;
}

#loginAdminBtn:hover i {
  transform: scale(1.2);
  color: #fff200;
}

#loginAdminBtn:active {
  transform: scale(0.95);
}

/* Form login tersembunyi (warna cerah seperti tombol) */
#loginFormContainer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
  padding: 0 8px;
  border-radius: 0 0 12px 12px;
  background: #f14e95; /* form juga cerah, sama warna tombol */
  color: #fff;
}

/* Header form dengan tombol X */
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}

/* Tombol close X */
#closeLoginForm {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: none;
}

/* Tombol X muncul saat form expand */
#loginAdminContainer.open #closeLoginForm {
  display: block;
}

/* Open state container */
#loginAdminContainer.open {
  width: 220px;
  border-radius: 12px;
}

#loginAdminContainer.open #loginFormContainer {
  max-height: 200px;
  opacity: 1;
  padding: 8px;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  #loginAdminContainer {
    width: 140px;       /* lebar tombol tetap kecil */
    bottom: 10px;
    left: 10px;
    border-radius: 35px; /* lebih compact */
  }
  #loginAdminContainer.open {
    width: 200px;       /* lebar saat expand */
    border-radius: 10px;
  }
  #loginAdminBtn {
    font-size: 0.8rem;
    padding: 6px 10px;
    gap: 4px;
  }
  #loginAdminContainer.open #loginFormContainer {
    max-height: 140px;  /* diperkecil dari 180px */
    padding: 6px;       /* lebih ringkas */
  }
}


/* ================= SPINNER ================= */
.spinner {
  border: 6px solid rgba(0,0,0,0.2);
  border-top: 6px solid #ff69b4; 
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================= GALLERY ================= */
.gallery-scroll-wrapper {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ff6fae #ffe4ec;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}

.gallery-scroll-wrapper::-webkit-scrollbar-track {
  background: #ffe4ec;
  border-radius: 10px;
}

.gallery-scroll-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6fae, #ff4f9a);
  border-radius: 10px;
}

.gallery img {
  transition: 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.gallery a:active img {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

/* === LOGIN MODAL ULTRA MINIMAL === */
/* Optional: style modal login */
.login-modal {
  background: #0e0e0e;
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(241,78,149,0.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}
.login-input {
  background: #1a1a1a;
  border: 1px solid #f14e95;
  color: #fff;
}
.btn-login {
  background: #f14e95;
  color: #fff;
  font-weight: 500;
}
.btn-login:hover {
  background: #ff77b3;
}

.login-input {
  padding: 6px 9px;          /* KECIL */
  font-size: 0.85rem;       /* KECIL */
  height: 34px;             /* FIX TINGGI */
}

.btn-login {
  background: #f14e95;
  border: none;
  border-radius: 6px;
  padding: 6px;             /* KECIL */
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.btn-login:hover {
  background: #ff77b3;
}

.login-error {
  color: #ff6b9d;
  text-align: center;
  margin-bottom: 2px;
  font-size: 0.8rem;
}

/* ================= FILTER SCROLL ================= */
.filter-wrapper {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ff6fae #ffe4ec;
}

.filter-wrapper::-webkit-scrollbar {
  height: 6px;
}

.filter-wrapper::-webkit-scrollbar-track {
  background: #ffe4ec;
  border-radius: 10px;
}

.filter-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff6fae, #ff9acb);
  border-radius: 10px;
}

.filter-scroll {
  display: flex;
  gap: 10px;
  padding: 6px 4px;
  white-space: nowrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .filter-scroll {
    justify-content: flex-start;
  }
}

/* ================= BUTTON ================= */
.btn.btn-pink {
  color: #000 !important;
  padding: 10px 20px;
  border-radius: 18px 0 18px 0;
  border: none;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.btn.btn-pink:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff4f9a, #e60073);
}

.btn.btn-pink.active,
.btn.btn-pink:focus {
  background: #b0005a;
  color: #ffffff !important;
  text-shadow: none;
}

/* ================= LIST GROUP ================= */
.list-group-item {
  background: transparent;
  border: 1px solid #ff99b3;
  color: #ff4d94;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.list-group-item:hover {
  background: rgba(255, 77, 148, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
}

/* ================= AUDIO ICON ================= */
/* sudah digabung ke gallery img */

/* ================= QUESTION ================= */
#question {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
}

/* ================= NAVBAR FEMINIM PINK ================= */
.mynavbar .navbar-brand {
  color: #ff5fa2 !important;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
  padding: 6px;
}

.navbar-toggler-icon {
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ff6fae' stroke-width='3' stroke-linecap='round' d='M6 9h18M6 15h18M6 21h18'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.custom-btn-close {
  transform: scale(1.6);
  filter: invert(48%) sepia(78%) saturate(381%) hue-rotate(300deg);
  padding: 10px;
}

.custom-btn-close:hover {
  opacity: 0.75;
}

.offcanvas {
  background: #ffe6f1;
}

.offcanvas-title {
  color: #ff5fa2 !important;
}

.offcanvas .nav-link {
  color: #ff5fa2 !important;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding-left: 10px;
  color: #ff5fa2 !important;
}


/* ================= NAVBAR ================= */
.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: "Sacramento", cursive;
  font-size: 3.2rem;
  font-weight: bold;
}

.mynavbar .nav-link {
  text-transform: uppercase;
}

/* ================= HOME ================= */
.home {
  background-image: url(img/bg.png);
  background-size: cover;
  min-height: 100vh;
  margin-top: -6rem;
  padding-top: 15rem;
  padding-bottom: 5rem;
}

.home h2 {
  color: var(--pink);
  font-family: "Sacramento";
  font-size: 5rem;
  font-weight: bold;
}

.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.1rem;
  color: #666;
}

.home .couple {
  margin-top: 100px;
}

.home .couple h3 {
  font-family: "Sacramento";
  font-size: 2.4rem;
  color: var(--pink);
}

.home .couple img {
  width: 100%;
}

.home .heart {
  width: 50px;
  height: 50px;
  background-color: white;
  display: flex;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(65px);
}

.home .heart i {
  margin: auto;
  color: var(--pink);
}

/* ================= INFO ================= */
.info {
  background-color: var(--bg);
  color: white;
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.info .alamat {
  font-size: 1.1rem;
}

.info .description {
  font-size: 1rem;
  font-weight: 300;
}

.info .card {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: 1px solid #999;
}

.info .card-header {
  border-bottom: 1px solid #999;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.info .card-body {
  font-size: 1rem;
}

.info .card-footer {
  border-top: 1px solid #999;
  font-size: 0.9rem;
  font-weight: 300;
}

/* ================= STORY / GALLERY / RSVP / GIFTS ================= */
.story,
.gallery,
.rsvp,
.gifts {
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.story span,
.gallery span,
.gifts span {
  text-transform: uppercase;
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}

.story p,
.gallery p,
.rsvp p,
.gifts p {
  font-size: 1rem;
  font-weight: 300;
}

/* ================= TIMELINE ================= */
.timeline {
  list-style: none;
  padding: 1.4rem 0;
  margin-top: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  top: 0;
  bottom: 0;
  position: absolute;
  width: 1px;
  background-color: #ccc;
  left: 50%;
}

.timeline li {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline li::before,
.timeline li::after {
  content: "";
  display: table;
}

.timeline li::after {
  clear: both;
}

.timeline li .timeline-image {
  width: 160px;
  height: 160px;
  background-color: #ccc;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.timeline li .timeline-panel {
  width: 40%;
  float: left;
  border: 1px solid #ccc;
  padding: 2rem;
  position: relative;
  border-radius: 8px;
  background-color: #fff;
}

.timeline li .timeline-panel::before {
  content: "";
  display: inline-block;
  position: absolute;
  border-top: 15px solid transparent;
  border-left: 15px solid #ccc;
  border-right: 0 solid #ccc;
  border-bottom: 15px solid transparent;
  top: 80px;
  right: -15px;
}

.timeline li .timeline-panel::after {
  content: "";
  position: absolute;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 14px solid transparent;
  top: 81px;
  right: -13px;
}

.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline li.timeline-inverted .timeline-panel::before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}

.timeline li.timeline-inverted .timeline-panel::after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -13px;
  right: auto;
}

/* ================= GALLERY SPECIFIC ================= */
.gallery {
  background-color: #f5f5f5;
}

/* ================= RSVP ================= */
.rsvp {
  background-color: var(--bg);
}

.rsvp h2 {
  font-size: 4.5rem;
  white-space: nowrap;
}

.rsvp p {
  color: white;
}

.rsvp form label {
  color: white;
}

.rsvp button {
  background-color: var(--pink);
  color: white;
  border: 1px solid var(--pink);
}

.rsvp button:hover {
  background-color: white;
  color: var(--pink);
  border: 1px solid white;
}

/* ================= FOOTER ================= */
footer {
  padding: 3rem;
  background-color: var(--pink);
  color: white;
}

footer a {
  color: var(--bg);
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

footer li {
  list-style: none;
  display: inline;
  margin: 0.5rem;
}

/* ================= HEADINGS SHARED ================= */
.info h2,
.story h2,
.gallery h2,
.rsvp h2,
.gifts h2 {
  color: var(--pink);
  font-family: "Sacramento";
  font-size: 5rem;
  font-weight: bold;
}

/* ================= AUDIO ICON ================= */
.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  cursor: pointer;
  color: white;
  opacity: 0.5;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ================= MEDIA QUERIES ================= */

/* Extra large devices (≤1200px) */
@media (max-width: 1200px) {
  .home .heart {
    transform: translateX(-50%) translateY(45px);
  }
}

/* Laptop / Desktop (≤992px) */
@media (max-width: 992px) {
  html {
    font-size: 75%;
  }

  .simply-countdown > .simply-section {
    padding: 70px;
  }

  .home .heart {
    display: none;
  }

  /* Timeline adjustments */
  .timeline::before {
    left: 60px;
  }

  .timeline li .timeline-image {
    left: 15px;
    margin-left: 45px;
    top: 16px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 200px);
    float: right;
  }

  .timeline li .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }

  .timeline li .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -13px;
    right: auto;
  }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }

  .simply-countdown > .simply-section {
    padding: 60px;
    margin: 5px;
  }

  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }

  .sticky-top {
    overflow: hidden;
  }

  .timeline li .timeline-image {
    width: 140px;
    height: 140px;
  }
}

/* Mobile phones (≤576px) */
@media (max-width: 576px) {
  html {
    font-size: 60%;
  }

  .simply-countdown > .simply-section {
    padding: 45px;
    margin: 3px;
  }

  .timeline li .timeline-image {
    width: 80px;
    height: 80px;
  }

  .timeline li .timeline-panel {
    width: 65%;
    transform: translateX(-20px);
  }

  .timeline li .timeline-panel::before {
    top: 30px;
  }

  .timeline li .timeline-panel::after {
    top: 31px;
  }
}
