/* ==========================================================================
   ANNI WALL & CINEMATIC PRESENTATION STYLESHEET
   - Font tiếng Việt chuẩn không lỗi
   - Nền Blur dịu dàng trên chính Anni Wall (Không bị đen)
   - Hoạt ảnh bay vào ĐÚNG VỊ TRÍ trên Anni Wall
   - Bố cục gọn gàng, giảm thiểu scroll
   ========================================================================== */

:root {
  --primary-pink: #ff4d79;
  --accent-rose: #ff2a5f;
  --soft-pink: #fff0f5;
  --gold: #ffb703;
  --wall-bg: linear-gradient(135deg, #fff5f8 0%, #ffe9f0 50%, #fed7e2 100%);
  --font-main: 'Be Vietnam Pro', 'Montserrat', -apple-system, sans-serif;
  --font-hand: 'Dancing Script', cursive;
}

body.wall-page {
  font-family: var(--font-main);
  background: var(--wall-bg);
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
  position: relative;
}

/* Header gọn gàng */
.anni-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 182, 193, 0.4);
  box-shadow: 0 2px 14px rgba(255, 77, 121, 0.08);
}

.anni-header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anni-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.anni-brand h1 {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(120deg, #ff2a5f, #c77dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.anni-brand p {
  font-size: 0.75rem;
  color: #c9184a;
  font-weight: 600;
}

.anni-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-control-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff0f5;
  padding: 3px 10px 3px 4px;
  border-radius: 30px;
  border: 1px solid #ffd1dc;
}

.vol-slider-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-vol-slider {
  width: 65px;
  height: 4px;
  accent-color: #ff4d79;
  cursor: pointer;
}

/* Hero Banner Gọn Gàng */
.anni-hero {
  text-align: center;
  padding: 14px 16px 8px 16px;
  max-width: 800px;
  margin: 0 auto;
}

.anni-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ffb6c1;
  color: var(--primary-pink);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.anni-hero h2 {
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2a5f 0%, #c77dff 50%, #ff7597 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.anni-hero p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.4;
}

/* Toolbar Gọn Gàng */
.anni-toolbar {
  max-width: 1250px;
  margin: 0 auto 18px auto;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 182, 193, 0.4);
  box-shadow: 0 4px 16px rgba(255, 77, 121, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anni-stats-group {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
}

.anni-stats-group span.num {
  font-weight: 900;
  color: var(--primary-pink);
}

/* Anni Wall Grid */
.anni-wall-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px 60px 16px;
}

.anni-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

/* Polaroid Wish Card */
.wall-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(255, 77, 121, 0.08);
  border: 1px solid rgba(255, 182, 193, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.wall-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(255, 77, 121, 0.2);
  z-index: 20;
}

.wall-card.dock-target-glow {
  animation: targetGlow 1.2s ease-out;
}

@keyframes targetGlow {
  0% { transform: scale(1.08); box-shadow: 0 0 0 6px #ff4d79; }
  100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 77, 121, 0.08); }
}

.card-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 18px;
  background: rgba(255, 182, 193, 0.75);
  border-radius: 2px;
  z-index: 5;
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #ffeef2;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-sticker {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-sender-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
}

.card-sender-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 77, 121, 0.12);
  color: #c9184a;
  font-weight: 700;
  margin-top: 2px;
}

.card-msg {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: pre-line;
  max-height: 100px;
  overflow: hidden;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 182, 193, 0.6);
}

/* ==========================================================================
   CINEMATIC SLIDESHOW PRESENTATION (FROSTED BLUR OVER ANNI WALL - NO BLACK)
   ========================================================================== */

/* 1. Nền Blur giữ nguyên Anni Wall phía sau, KHÔNG BỊ ĐEN */
.cinematic-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 245, 248, 0.55); /* Mờ trong suốt hồng sữa, giữ nguyên hình nền tường */
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

.cinematic-backdrop.active {
  display: block;
  opacity: 1;
}

/* Cinematic Stage Container */
.cinematic-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2005;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}

.cinematic-stage.active {
  display: flex;
  pointer-events: auto;
}

/* The Flying Hero Card */
.cinematic-hero-card {
  position: fixed;
  width: 520px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 
    0 20px 60px rgba(255, 77, 121, 0.25),
    0 0 0 3px rgba(255, 182, 193, 0.8);
  text-align: center;
  cursor: default;
  will-change: transform, opacity;
  z-index: 2010;
}

/* Phase 1: Fly In Center */
.cinematic-hero-card.flying-in {
  animation: flyInCenter 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flyInCenter {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(60vh);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

/* Phase 2: Gentle Sway / Wiggle at Center for Reading */
.cinematic-hero-card.gentle-sway {
  animation: gentleSwayReading 4.5s ease-in-out infinite alternate;
}

@keyframes gentleSwayReading {
  0% {
    transform: scale(1) translateY(0px) rotate(0deg);
  }
  30% {
    transform: scale(1.01) translateY(-6px) rotate(-1deg);
  }
  70% {
    transform: scale(0.99) translateY(4px) rotate(1deg);
  }
  100% {
    transform: scale(1) translateY(-3px) rotate(-0.5deg);
  }
}

/* Hero card content */
.hero-card-photo {
  width: 100%;
  max-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #ffeef2;
}

.hero-card-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.hero-card-sender {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-rose);
  margin-bottom: 4px;
}

.hero-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 16px;
  background: rgba(255, 77, 121, 0.12);
  color: #c9184a;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-card-msg {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 14px;
  white-space: pre-line;
  max-height: 160px;
  overflow-y: auto;
}

/* Cinematic HUD */
.cinematic-hud {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2020;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 182, 193, 0.6);
  box-shadow: 0 8px 25px rgba(255, 77, 121, 0.2);
}

.hud-btn {
  background: #fff0f5;
  border: 1px solid #ffd1dc;
  color: #c9184a;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn:hover {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

.hud-progress-info {
  color: #9f1239;
  font-weight: 800;
  font-size: 0.88rem;
}
