﻿/* ==================== FLOATING BOTTOM NAVIGATION ==================== */

/* Base link style */
.bottom-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-link:hover {
    color: #c9a84c;
}

/* Active state */
.bottom-nav-link.active {
    color: #c9a84c;
}

/* Active indicator dot */
.bottom-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: #c9a84c;
    border-radius: 2px;
    animation: bottomNavDotIn 0.3s ease-out forwards;
}

@keyframes bottomNavDotIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 14px;
        opacity: 1;
    }
}

/* Focus ring for accessibility */
.bottom-nav-link:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Touch feedback for mobile */
.bottom-nav-link:active {
    transform: scale(0.92);
}

/* Bottom nav container slide-up animation */
#bottom-nav {
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Safe area padding for modern phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #bottom-nav {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }
}

/* ==================== WISHES MARQUEE ==================== */
.wish-marquee {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
}

.wish-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: wishMarqueeScroll 40s linear infinite;
}

.wish-marquee-set {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  min-width: 100cqw;
  justify-content: space-around;
}

.wish-marquee-set[aria-hidden="true"] {
  pointer-events: none;
}

.wish-marquee--ltr .wish-marquee-track {
  animation-direction: reverse;
}

.wish-marquee:hover .wish-marquee-track,
.wish-marquee:focus-within .wish-marquee-track,
.wish-marquee:active .wish-marquee-track {
  animation-play-state: paused;
}

@keyframes wishMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.375rem)); }
}

.wish-card {
  flex: 0 0 auto;
  width: min(32rem, 88vw);
  background: #fff;
  border: 1px solid #e8ebe2;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 2px rgba(62, 71, 51, 0.06);
}

.wish-card-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.wish-card-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.wish-card-name {
  font-family: Poppins, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3e4733;
  line-height: 1.2;
}

.wish-card-time {
  font-family: Poppins, sans-serif;
  font-size: 0.625rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.wish-card-body {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wish-marquee-set[aria-hidden="true"] {
    display: none;
  }

  .wish-marquee-set {
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
  }

  .wish-marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

/* ==================== LOKASI SECTION ==================== */

/* Google Maps iframe responsive */
#lokasi iframe {
    min-height: 320px;
}

@media (max-width: 768px) {
    #lokasi iframe {
        min-height: 240px;
    }
}

:root {
  --wine: #641f34;
  --wine-deep: #2f101b;
  --rose: #a84d64;
  --blush: #ead6da;
  --ivory: #fffaf5;
  --ink: #30282a;
  --champagne: #d4b277;
}

body {
  background: var(--ivory);
  color: var(--ink);
}

body::-webkit-scrollbar-track {
  background: var(--ivory) !important;
}

body::-webkit-scrollbar-thumb {
  background: var(--wine) !important;
}

.bg-sage-photo {
  background-color: var(--wine-deep) !important;
  background-image: linear-gradient(120deg, rgba(47, 16, 27, 0.96), rgba(100, 31, 52, 0.78)), url("src/5.webp") !important;
  background-size: cover !important;
  background-position: center 38% !important;
}

#cover-overlay .bg-sage-photo {
  background-position: center 28% !important;
  background-image: linear-gradient(90deg, rgba(33, 8, 16, 0.92), rgba(72, 17, 35, 0.58)), url("src/5.webp") !important;
}

#cover-overlay .relative.z-10 {
  max-width: 44rem;
  margin-left: 8vw;
  margin-right: auto;
  text-align: left;
}

#cover-overlay .relative.z-10 svg {
  margin-left: 0;
}

#cover-overlay .cover-photo {
  border-color: rgba(255, 250, 245, 0.72);
  border-radius: 999px 999px 1rem 1rem;
}

#cover-overlay .cover-photo-1 {
  left: auto;
  right: 7%;
  top: 12%;
}

#cover-overlay .cover-photo-2 {
  right: 17%;
  top: 53%;
}

#cover-overlay .cover-photo-3 {
  left: auto;
  right: 5%;
  bottom: 8%;
}

.text-gold-400 {
  color: var(--champagne) !important;
}

.text-gold-500 {
  color: #956c33 !important;
}

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 5px;
}

section {
  scroll-margin-top: 2rem;
}

#main-content.opacity-0 {
  visibility: hidden;
}

#cover-overlay h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(4.5rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ivory) !important;
}

#cover-overlay .relative.z-10 > div.mb-6 {
  display: none;
}

#cover-overlay [data-aos] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#cover-overlay .relative.z-10 > p:first-child {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}

#btn-open {
  background: var(--champagne);
  color: var(--wine-deep);
  border: 1px solid var(--champagne);
  border-radius: 0.25rem;
  min-height: 48px;
  box-shadow: none;
}

#btn-open:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  transform: translateY(-2px);
}

.text-sage-800,
.text-sage-900 {
  color: var(--wine-deep) !important;
}

.bg-cream,
.bg-warm {
  background-color: var(--ivory) !important;
}

#home {
  min-height: 100svh;
  justify-content: flex-start;
}

#home > .relative.z-10 {
  width: min(100%, 74rem);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 7vw, 7rem);
  text-align: left;
}

#home > .relative.z-10 > p,
#home > .relative.z-10 > div {
  margin-left: 0;
  margin-right: 0;
}

#home > .relative.z-10 > p:nth-of-type(1),
#home > .relative.z-10 > p:nth-of-type(2) {
  max-width: 32rem;
}

#home h2 {
  color: var(--champagne) !important;
  line-height: 0.8;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

#home h2:first-child {
  position: relative;
  left: -0.75rem;
}

#home h2:last-child {
  margin-left: clamp(2rem, 8vw, 7rem);
}

#home h2 + .my-4 {
  position: relative;
  left: clamp(0.5rem, 2vw, 2rem);
  top: 1.25rem;
}

#home h2 + .my-4 > span {
  font-size: clamp(2.75rem, 5vw, 3.5rem);
}

#home .grid.grid-cols-4 {
  max-width: 34rem;
}

#home .grid.grid-cols-4 > div {
  background: rgba(255, 250, 245, 0.08);
  border-color: rgba(212, 178, 119, 0.35);
  border-radius: 0;
  border-top-width: 2px;
}

#mempelai,
#cerita,
#galeri,
#wish {
  background: var(--ivory);
}

#mempelai::before,
#cerita::before,
#galeri::before,
#wish::before {
  content: "A & S";
  position: absolute;
  top: 1rem;
  left: 50%;
  translate: -50% 0;
  color: rgba(100, 31, 52, 0.07);
  font-family: "Playfair Display", serif;
  font-size: clamp(5rem, 14vw, 12rem);
  font-style: italic;
  white-space: nowrap;
  pointer-events: none;
}

#mempelai .rounded-full,
#mempelai .rounded-3xl {
  border-radius: 999px 999px 1.5rem 1.5rem;
}

#mempelai img {
  filter: saturate(0.82) contrast(1.04);
}

#cerita .timeline-line {
  background: linear-gradient(to bottom, transparent, var(--wine), transparent);
}

#cerita [class*="bg-gold"],
#cerita [class*="border-gold"] {
  border-color: var(--rose) !important;
}

#acara .bg-sage-photo,
#qris .bg-sage-photo,
footer .bg-sage-photo {
  background-image: linear-gradient(135deg, rgba(47, 16, 27, 0.98), rgba(100, 31, 52, 0.92)), url("src/background.svg") !important;
}

#acara .rounded-3xl,
#qris .rounded-3xl {
  border-radius: 0.25rem;
  border-top: 3px solid var(--champagne);
}

#galeri .grid > .group {
  border-radius: 1rem;
}

#galeri .group > .relative {
  aspect-ratio: 4 / 5;
}

#galeri img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  filter: saturate(0.88);
}

#wish .rounded-3xl,
#wish input,
#wish textarea,
.wish-card {
  background-color: var(--ivory);
}

#wish .rounded-3xl {
  border-radius: 0.35rem;
  box-shadow: 0 18px 50px rgba(74, 24, 39, 0.08);
}

.wish-card {
  border: 1px solid rgba(47, 16, 27, 0.16);
  border-radius: 0.35rem;
  box-shadow: none;
}

.wish-card-avatar {
  background: var(--blush) !important;
  color: var(--wine) !important;
}

#bottom-nav > div {
  background: rgba(47, 16, 27, 0.94);
  border-color: rgba(212, 178, 119, 0.3);
  border-radius: 0.5rem;
}

.bottom-nav-link.active,
.bottom-nav-link:hover {
  color: var(--champagne);
}

#auto-scroll-btn,
#back-to-top {
  right: max(0.75rem, env(safe-area-inset-right, 0px));
}

#auto-scroll-btn {
  position: fixed;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--champagne);
  border-radius: 0.35rem;
  background: var(--ivory);
  color: var(--wine);
  box-shadow: 0 4px 15px rgba(47, 16, 27, 0.2);
  cursor: pointer;
}

#auto-scroll-btn[hidden] {
  display: none;
}

#auto-scroll-btn.above-back-to-top {
  bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
}

#auto-scroll-btn[aria-pressed="true"] {
  background: var(--wine);
  color: var(--ivory);
}

#music-btn,
#back-to-top {
  color: var(--wine) !important;
  border-radius: 0.35rem !important;
  background: var(--ivory) !important;
}

@media (max-width: 767px) {
  #cover-overlay .relative.z-10 {
    margin: 0;
    text-align: center;
    padding-inline: 2rem;
    background: linear-gradient(180deg, transparent, rgba(47, 16, 27, 0.32), transparent);
  }

  #cover-overlay .relative.z-10 svg {
    margin-inline: auto;
  }

  #cover-overlay .cover-photo {
    --photo-opacity: 0.85;
  }

  #cover-overlay .cover-photo-1 {
    left: 6%;
    right: auto;
    top: 18%;
  }

  #cover-overlay .cover-photo-2 {
    right: 4%;
    top: auto;
  }

  #cover-overlay .cover-photo-3 {
    left: 8%;
    right: auto;
    bottom: auto;
  }

  #home {
    justify-content: center;
  }

  #home > .relative.z-10 {
    text-align: center;
    padding-inline: 1.25rem;
  }

  #home > .relative.z-10 > p,
  #home > .relative.z-10 > div {
    margin-left: auto;
    margin-right: auto;
  }

  #home h2:last-child {
    margin-left: 0;
  }

  #home h2 + .my-4 {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
