﻿/* =============================================
   FEATURES.CSS - RSVP, Guestbook, Gallery Nav
   ============================================= */

/* ---- RSVP SECTION ---- */
.rsvp-section {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.rsvp-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 28px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.rsvp-title {
  text-align: center;
  margin-bottom: 28px;
}

.rsvp-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rsvp-title p {
  font-size: 0.92rem;
  opacity: 0.75;
}

.rsvp-form .form-group {
  margin-bottom: 16px;
}

.rsvp-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus,
.rsvp-form select:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.rsvp-form select option {
  color: #333;
  background: #fff;
}

.rsvp-attendance-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.rsvp-attendance-toggle .toggle-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rsvp-attendance-toggle .toggle-btn.selected-hadir {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.rsvp-attendance-toggle .toggle-btn.selected-tidak {
  background: #e57373;
  border-color: #e57373;
  color: #fff;
}

.rsvp-attendance-toggle .toggle-btn:hover {
  opacity: 0.85;
}

.rsvp-guest-count {
  display: none;
}

.rsvp-guest-count.visible {
  display: block;
}

.btn-rsvp-submit {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.btn-rsvp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Success state */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: rsvpFadeIn 0.5s ease;
}

.rsvp-success.show {
  display: block;
}

.rsvp-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.rsvp-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rsvp-success p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.rsvp-counter {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rsvp-counter span {
  font-weight: 700;
  font-size: 1.1rem;
}

@keyframes rsvpFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- TIMELINE SECTION ---- */
.timeline-section {
  padding: 60px 0 50px;
  position: relative;
  z-index: 2;
}

/* Ornamen timeline - sama seperti guestbook */
.timeline-section .orn-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  transform: translate(-18%, -30%);
}

.timeline-section .orn-1 .bf {
  position: absolute;
  bottom: 10%;
  right: 40%;
  width: 22%;
  transform: rotate(25deg);
}

.timeline-section .orn-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32%;
  transform: translate(14%, 20%) scaleX(-1);
}

.timeline-section .orn-5 {
  position: absolute;
  top: 45%;
  left: 0;
  width: 16%;
  transform: translateX(-45%) rotate(-8deg);
}

.timeline-section .orn-6 {
  position: absolute;
  top: 40%;
  right: 0;
  width: 16%;
  transform: translateX(40%) rotate(8deg) scaleX(-1);
}

.timeline-section .orn-7 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18%;
  transform: translate(10%, 18%);
}

.timeline-section .mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.25;
}

/* Title */
.timeline-title {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-title p {
  font-size: 0.9rem;
  opacity: 0.72;
}

/* Timeline vertical line */
.timeline-wrap {
  position: relative;
  padding: 0 0 10px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, currentColor, transparent);
  opacity: 0.25;
}

/* Timeline item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.12);
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.timeline-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-family: "Derivia", cursive;
  font-size: 1.25rem;
  margin: 0 0 6px;
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.87rem;
  opacity: 0.78;
  line-height: 1.6;
  margin: 0;
}

/* ---- GUESTBOOK & GIFT SECTION ---- */
.guestbook-section,
.gift-section,
.gallery-section {

  padding: 60px 0 40px;
  position: relative;
  z-index: 2;
}

/* Ornamen background: gunung di bawah */
.guestbook-section .fuji,
.gift-section .fuji,
.gallery-section .fuji {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.35;
}

/* Ornamen kiri atas: bunga ungu */
.guestbook-section .orn-1,
.gift-section .orn-1,
.gallery-section .orn-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  transform: translate(-18%, -30%);
}

.guestbook-section .orn-1 .bf,
.gift-section .orn-1 .bf,
.gallery-section .orn-1 .bf {
  position: absolute;
  bottom: 10%;
  right: 40%;
  width: 22%;
  transform: rotate(25deg);
}

/* Ornamen kanan bawah: bunga1 */
.guestbook-section .orn-2,
.gift-section .orn-2,
.gallery-section .orn-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32%;
  transform: translate(14%, 20%) scaleX(-1);
}

/* Ornamen kiri bawah: kupu-kupu kecil */
.guestbook-section .orn-3,
.gift-section .orn-3,
.gallery-section .orn-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12%;
  transform: translate(10%, -20%) rotate(15deg);
  opacity: 0.85;
}

/* Ornamen kanan atas: cabang */
.guestbook-section .orn-4,
.gift-section .orn-4,
.gallery-section .orn-4 {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  transform: translate(18%, -25%) rotate(10deg);
}

/* Ornamen kiri tengah: bunga2 */
.guestbook-section .orn-5,
.gift-section .orn-5,
.gallery-section .orn-5 {
  position: absolute;
  top: 45%;
  left: 0;
  width: 18%;
  transform: translateX(-45%) rotate(-8deg);
}

/* Ornamen kanan tengah: bunga3 */
.guestbook-section .orn-6,
.gift-section .orn-6,
.gallery-section .orn-6 {
  position: absolute;
  top: 40%;
  right: 0;
  width: 18%;
  transform: translateX(40%) rotate(8deg) scaleX(-1);
}

/* Ornamen pojok kanan bawah: bunga4 */
.guestbook-section .orn-7,
.gift-section .orn-7,
.gallery-section .orn-7 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20%;
  transform: translate(10%, 18%);
}

.guestbook-title,
.gift-title,
.gallery-title {
  text-align: center;
  margin-bottom: 28px;
}

.guestbook-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guestbook-title p {
  font-size: 0.92rem;
  opacity: 0.75;
}

.guestbook-form-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.guestbook-form .form-group {
  margin-bottom: 14px;
}

.guestbook-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.85;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  transition: border 0.2s;
  resize: vertical;
}

.guestbook-form input[type="text"]:focus,
.guestbook-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-guestbook-submit {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-guestbook-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Guestbook messages list */
.guestbook-messages {
  max-width: 480px;
  margin: 0 auto;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.guestbook-messages::-webkit-scrollbar {
  width: 4px;
}

.guestbook-messages::-webkit-scrollbar-track {
  background: transparent;
}

.guestbook-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.guestbook-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  animation: gbFadeIn 0.4s ease;
}

.guestbook-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}

.guestbook-content {
  flex: 1;
  min-width: 0;
}

.guestbook-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.guestbook-message {
  font-size: 0.87rem;
  opacity: 0.85;
  line-height: 1.5;
  word-break: break-word;
}

.guestbook-date {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 4px;
}

.guestbook-empty {
  text-align: center;
  opacity: 0.5;
  font-size: 0.9rem;
  padding: 24px 0;
}

@keyframes gbFadeIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---- GALLERY LIGHTBOX NAVIGATION ---- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-content {
  max-width: 88%;
  max-height: 82vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.close-lightbox {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-lightbox:hover {
  opacity: 1;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .lightbox-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

/* ---- COPY BUTTON IMPROVEMENTS ---- */
.copy-btn {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.copy-btn:hover {
  opacity: 0.9 !important;
  transform: scale(1.04) !important;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #43a047, #1b5e20) !important;
}

/* ---- RSVP & GUESTBOOK SECTION BG BLEND ---- */
.rsvp-section,
.guestbook-section {
  background: transparent;
}