/* themes/iphone_notification/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1d1d1f;
  --primary-hover: #434343;
  --primary-light: #f5f5f7;
  --secondary: #86868b;
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --muted: #86868b;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    font-size: 15px; 
    line-height: 1.5; 
    color: var(--text); 
    background: var(--bg); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    min-height: 100vh; 
    margin:0; padding:0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
[hidden] { display: none !important; }

/* Remove old Jawa animations and images */
.theme-img { display: none !important; }

.bg-layer {
  position: fixed; inset: 0; z-index: -2;
  background-image: var(--bg-image);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--bg);
}
.bg-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, 0.85); /* Light overlay for content */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cover Section (Lock Screen) */
.cover-section {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: 60px 20px 40px; text-align: center;
  background: var(--bg-cover-image, var(--bg-image, #000)) center/cover no-repeat;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease;
  overflow: hidden;
}
.cover-section::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25); z-index: 0; pointer-events: none;
}
.cover-section.cover-open {
  transform: translateY(-100%);
  opacity: 0; pointer-events: none;
}
.cover-inner {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}

/* iOS Time / Date (Replaced by Names) */
.ios-date {
  font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 5px; letter-spacing: 0.5px;
}
.ios-names {
  font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 700; color: #fff;
  line-height: 1.1; margin: 0; letter-spacing: -2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* iOS Status Bar */
.ios-status-bar {
  position: fixed; top: 0; left: 0; right: 0; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000; color: white; transition: all 0.5s ease; pointer-events: none;
}
.ios-status-bar.dark-mode {
  color: #1d1d1f;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.status-left {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.ios-status-bar.dark-mode .status-left { text-shadow: none; }
.status-right {
  display: flex; align-items: center; gap: 6px;
}
.status-right svg {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}
.ios-status-bar.dark-mode .status-right svg { filter: none; }

/* Notification Card */
.ios-notification {
  background: var(--glass-bg);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 16px;
  width: 100%; max-width: 360px;
  text-align: left; margin: 40px auto auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: slideDownFade 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
  cursor: pointer; pointer-events: auto;
}
.content-notif {
  position: fixed; top: 40px; left: 50%; transform: translateX(-50%) translateY(-150%);
  z-index: 999; margin: 0; width: 90%; max-width: 360px;
  animation: none; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0; pointer-events: none;
}
.content-notif.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}
.content-notif.dismissed {
  transform: translateX(-50%) translateY(-150%) !important;
  opacity: 0 !important; pointer-events: none;
}

.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.notif-app {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: rgba(0,0,0,0.6);
}
.notif-icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff;
}
.notif-time {
  font-size: 0.8rem; color: rgba(0,0,0,0.5);
}
.notif-title {
  font-weight: 600; font-size: 1rem; color: #000; margin: 0 0 4px;
}
.notif-body {
  font-size: 0.95rem; color: #1c1c1e; margin: 0; line-height: 1.4;
}

/* Swipe up to open */
.swipe-up {
  color: #fff; font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.5px; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounceUp 2s infinite; cursor: pointer;
  padding: 10px; margin-bottom: 10px;
}

/* Invitation Content - Light Mode iOS Style */
.invitation-content { padding-top: 40px; padding-bottom: 80px; }
.section-block { padding: 20px 16px; }
.card {
  background: var(--card-bg);
  border-radius: 24px; padding: 32px 24px;
  box-shadow: var(--card-shadow);
  max-width: 600px; margin: 0 auto; border: none;
}
.text-center { text-align: center; }

/* Typography inside card */
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px; font-weight: 600;
}
.section-title {
  font-size: 1.8rem; font-weight: 700; margin: 0 0 16px; color: var(--text); letter-spacing: -0.5px;
}
.couple-title {
  font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 800; color: var(--primary); margin: 10px 0; letter-spacing: -1px;
}
.couple-date { font-size: 1.05rem; font-weight: 500; margin: 12px 0 20px; color: var(--secondary); }

/* iOS Button */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: 0;
  font-size: 1rem; font-weight: 600; padding: 14px 24px;
  border-radius: 14px; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary:hover { background: var(--primary-hover); transform: scale(0.98); }
.btn-block { width: 100%; }

/* Mempelai */
.mempelai-grid { display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }
.mempelai { text-align: center; }
.mempelai-photo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 4px solid var(--primary-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mempelai-name { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.mempelai-meta { font-size: 0.95rem; color: var(--secondary); margin: 2px 0; }
.mempelai-desc { font-size: 0.95rem; color: var(--text); margin: 10px 0; }
.mempelai-amp { font-size: 2rem; font-weight: 700; color: var(--muted); margin: 10px 0; }
.ig-link { font-weight: 600; margin-top: 8px; }

/* Countdown iOS Style */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 24px auto 0;
}
.cd-cell {
  background: var(--primary-light); color: var(--primary);
  border-radius: 14px; padding: 14px 8px; text-align: center;
}
.cd-num { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.cd-label { display: block; font-size: 0.65rem; text-transform: uppercase; font-weight: 600; margin-top: 6px; letter-spacing: 0.5px; }

/* Events */
.event { background: var(--primary-light); padding: 24px; border-radius: 20px; border: none; margin-bottom: 20px; text-align: center; }
.event-type { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.event-date { font-weight: 600; font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.event-time { color: var(--secondary); font-size: 0.95rem; margin-bottom: 16px; font-weight: 500; }
.event-venue { font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.event-addr { color: var(--secondary); font-size: 0.9rem; margin-bottom: 20px; }

/* Form inputs iOS style */
.input, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1); background: var(--primary-light);
  color: var(--text); font-family: inherit; font-size: 1rem;
  transition: all 0.2s;
}
.input:focus, .textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.field-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; display: block; color: var(--text); text-align: left; }

.radio-group { display: flex; gap: 10px; }
.radio-pill {
  flex: 1; padding: 12px; border-radius: 12px; background: var(--primary-light);
  border: 1px solid rgba(0,0,0,0.1); text-align: center; cursor: pointer;
  transition: all 0.2s; font-weight: 500;
}
.radio-pill input:checked + span { color: var(--primary); font-weight: 700; }
.radio-pill:has(input:checked) { background: rgba(0, 122, 255, 0.1); border-color: var(--primary); }

/* General Elements */
.divider { height: 1px; background: rgba(0,0,0,0.08); margin: 32px 0; }
.prose { color: var(--secondary); font-size: 0.95rem; line-height: 1.6; }
.bank-row { background: var(--primary-light); border: none; padding: 16px; border-radius: 14px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.bank-info { font-weight: 600; color: var(--text); font-size: 1rem; }

/* iMessage Chat Bubbles */
.imessage-container {
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(255,255,255,0.5); border-radius: 24px; padding: 20px 16px;
}
.imessage-row { display: flex; flex-direction: column; width: 100%; }
.imessage-me { align-items: flex-end; }
.imessage-them { align-items: flex-start; }
.imessage-name { font-size: 0.75rem; color: #8e8e93; margin-bottom: 4px; margin-left: 12px; font-weight: 500; }
.imessage-bubble {
  max-width: 80%; padding: 10px 16px; font-size: 0.95rem; line-height: 1.4;
  border-radius: 20px; position: relative; word-wrap: break-word; text-align: left;
}
.imessage-them .imessage-bubble {
  background: #e9e9eb; color: #000; border-bottom-left-radius: 4px;
}
.imessage-me .imessage-bubble {
  background: #007aff; color: #fff; border-bottom-right-radius: 4px;
}
.imessage-time { font-size: 0.7rem; color: #aeaeb2; margin-top: 4px; }
.imessage-me .imessage-time { margin-right: 12px; }
.imessage-them .imessage-time { margin-left: 12px; }
.imessage-status { font-size: 0.7rem; color: #8e8e93; font-weight: 500; margin-top: -2px; margin-right: 12px; }

/* Keyframes */
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.music-toggle {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 24px; border: none;
  background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); box-shadow: 0 4px 15px rgba(0,0,0,0.1); cursor: pointer; z-index: 40;
  display: flex; align-items: center; justify-content: center;
}

/* iOS Carousel */
.ios-carousel-wrapper {
  position: relative; width: 100%; margin: 0 auto 20px; overflow: hidden;
}
.ios-carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
  gap: 12px; padding: 0 20px;
}
.ios-carousel::-webkit-scrollbar { display: none; }
.ios-carousel-slide {
  flex: 0 0 calc(100% - 40px); scroll-snap-align: center;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  aspect-ratio: 4 / 5;
}
.ios-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ios-carousel-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.ios-dot {
  width: 6px; height: 6px; border-radius: 3px; background: rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.ios-dot.active {
  background: var(--text-dark, #1d1d1f); width: 16px;
}

/* iOS Control Center */
.ios-control-center {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  z-index: 9999; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; justify-content: center; padding-top: 80px; color: white;
}
.ios-control-center.open { transform: translateY(0); }
.cc-container { width: 90%; max-width: 380px; display: flex; flex-direction: column; }
.cc-row { display: flex; justify-content: space-between; }
.cc-module { background: rgba(255,255,255,0.15); border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.cc-conn { width: 155px; height: 155px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-icon-btn { background: rgba(0,0,0,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.cc-icon-btn.active { background: #007aff; }
.cc-music { width: 155px; height: 155px; padding: 16px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
.cc-small { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; }
.cc-slider-wrap { width: 68px; height: 150px; border-radius: 24px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.cc-slider-inner { width: 100%; height: 100%; position: relative; }
.cc-slider-fill { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.9); border-radius: 24px; transition: height 0.3s; }
.cc-slider-icon { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #666; mix-blend-mode: multiply; }

/* Apple Pay Overlay */
.apple-pay-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.apple-pay-overlay.show { opacity: 1; pointer-events: auto; }
.ap-sheet {
  background: var(--card-bg, #fff); width: 100%; max-width: 400px;
  border-radius: 32px 32px 0 0; padding: 50px 20px 40px;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.apple-pay-overlay.show .ap-sheet { transform: translateY(0); }
.ap-checkmark { width: 70px; height: 70px; stroke-width: 3.5; stroke: #000; }
.ap-checkmark-circle { stroke-dasharray: 166; stroke-dashoffset: 166; }
.ap-checkmark-check { stroke-dasharray: 48; stroke-dashoffset: 48; }
.apple-pay-overlay.show .ap-checkmark-circle {
  animation: ap-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.apple-pay-overlay.show .ap-checkmark-check {
  animation: ap-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}
@keyframes ap-stroke { 100% { stroke-dashoffset: 0; } }
.ap-text { font-size: 1.3rem; font-weight: 600; color: var(--text); opacity: 0; }
.apple-pay-overlay.show .ap-text { animation: ap-fadeUp 0.3s ease 0.6s forwards; }
@keyframes ap-fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Dynamic Island */
.dynamic-island {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%) scale(0.6);
  width: 100px; height: 32px; background: #000; border-radius: 20px;
  z-index: 9998; display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); opacity: 0; pointer-events: none;
}
.dynamic-island.active {
  transform: translateX(-50%) scale(1);
  width: 150px; opacity: 1; pointer-events: auto;
}
.di-content {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 16px;
  opacity: 0; transition: opacity 0.3s;
}
.dynamic-island.active .di-content { opacity: 1; transition-delay: 0.2s; }
.di-text { color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }

.di-waveform { display: flex; gap: 2px; align-items: center; height: 12px; }
.di-waveform span {
  display: block; width: 3px; background: #007aff; border-radius: 2px;
  animation: di-bounce 1s infinite ease-in-out;
}
.di-waveform span:nth-child(1) { height: 60%; animation-delay: -0.4s; }
.di-waveform span:nth-child(2) { height: 100%; animation-delay: -0.2s; }
.di-waveform span:nth-child(3) { height: 80%; animation-delay: 0s; }
.di-waveform span:nth-child(4) { height: 50%; animation-delay: -0.6s; }

@keyframes di-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

