/* ==========================================================================
   PASTEL WHIMSICAL STATIONERY THEME FOR BIRTHDAY CELEBRATION
   Folder: templates/birthday-celebration/
   Inspired by: Minimal Pastel Stationery & Aesthetic Warm Greeting Cards
   Scoped strictly to the Birthday Card Container (does NOT affect homepage/hero)
   ========================================================================== */

/* 1. Birthday Card Story Deck Scoped Container (Warm Ambient Atmosphere) */
#storyDeckContainer[data-template="birthday-celebration"] {
    background: radial-gradient(circle at 50% 20%, #fff1e5 0%, #fee4d6 30%, #fbcfe8 70%, #f472b6 100%);
    border-radius: 28px;
    padding: 16px 12px 24px;
    margin: 8px auto 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 16px 42px rgba(219, 39, 119, 0.22);
}

/* 2. Floating Warm Cream Card Surface (Comfortable on Eyes, High Contrast) */
#storyDeckContainer[data-template="birthday-celebration"] .glass-card {
    background: #fffdfa !important;
    border: 1.5px solid #fecdd3 !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 45px rgba(219, 39, 119, 0.16), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #3b0724 !important;
}

/* 3. High-Contrast Romantic Typography & Badges */
#storyDeckContainer[data-template="birthday-celebration"] .slide-title {
    font-family: var(--font-serif);
    color: #3b0724 !important;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

#storyDeckContainer[data-template="birthday-celebration"] .slide-title-sm {
    font-family: var(--font-serif);
    color: #3b0724 !important;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#storyDeckContainer[data-template="birthday-celebration"] .tag-pill {
    background: #ffe4e6 !important;
    border: 1px solid #fda4af !important;
    color: #9f1239 !important;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    border-radius: 20px;
    padding: 5px 14px;
}

#storyDeckContainer[data-template="birthday-celebration"] .recipient-dedicated-badge {
    background: #fff1f2 !important;
    border: 1.5px dashed #f472b6 !important;
    border-radius: 20px;
    padding: 12px 16px;
}

#storyDeckContainer[data-template="birthday-celebration"] .badge-prefix {
    color: #9f1239 !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

#storyDeckContainer[data-template="birthday-celebration"] .recipient-name-text {
    color: #be123c !important;
    font-family: var(--font-serif);
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .slide-subtitle,
#storyDeckContainer[data-template="birthday-celebration"] .slide-hint {
    color: #5c1839 !important;
    font-weight: 500;
}

/* 4. Countdown in Warm Pastel Theme */
#storyDeckContainer[data-template="birthday-celebration"] .countdown-minimal {
    background: #fff1f2 !important;
    border: 1.5px solid #fecdd3 !important;
    border-radius: 20px;
}

#storyDeckContainer[data-template="birthday-celebration"] .countdown-label {
    color: #9f1239 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .countdown-date-badge {
    background: #ffffff !important;
    border: 1.5px solid #fda4af !important;
    color: #be123c !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="birthday-celebration"] .cd-block {
    background: #ffffff !important;
    border: 1.5px solid #fbcfe8 !important;
    box-shadow: 0 4px 10px rgba(244, 114, 182, 0.15);
}

#storyDeckContainer[data-template="birthday-celebration"] .cd-num {
    color: #be123c !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .cd-unit {
    color: #9f1239 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="birthday-celebration"] .cd-sep {
    color: #e11d48 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-story-start {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(190, 18, 60, 0.35);
    border-radius: 24px;
    font-weight: 700;
}

/* ==========================================================================
   5. DISTINCT & RICH CUTE BIRTHDAY CAKE ILLUSTRATION
   ========================================================================== */
.birthday-cake-interactive {
    padding: 10px 4px;
    text-align: center;
    position: relative;
}

/* Warm Framed Cake Stage */
.cake-stage-frame {
    background: linear-gradient(180deg, #fff7f2 0%, #fee8e8 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 22px;
    padding: 18px 12px 14px;
    margin: 0 auto 14px;
    max-width: 320px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(244, 114, 182, 0.15), 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Floating Balloons */
.pastel-balloons-deco {
    position: absolute;
    top: 10px;
    left: 14px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.balloon-dot {
    width: 22px;
    height: 28px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: balloonFloat 3s ease-in-out infinite alternate;
}

.balloon-pink {
    background: linear-gradient(135deg, #f472b6, #db2777);
}

.balloon-blue {
    background: linear-gradient(135deg, #7dd3fc, #0284c7);
    animation-delay: 0.8s;
    margin-top: 6px;
}

.balloon-dot::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 1.5px;
    height: 10px;
    background: #94a3b8;
    transform: translateX(-50%);
}

@keyframes balloonFloat {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-6px) rotate(2deg); }
}

/* Decorative Sprinkles */
.pastel-sprinkles-deco {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.95rem;
    color: #e11d48;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
}

/* Cake Container */
.cake-container {
    width: 170px;
    margin: 0 auto 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cute Strawberry Accent (Resting Snug Beside Candle on Cake) */
.strawberry-topper {
    font-size: 1.25rem;
    position: absolute;
    top: 18px;
    right: 46px;
    z-index: 6;
    animation: berryBounce 2.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 3px 6px rgba(190, 18, 60, 0.35));
    pointer-events: none;
}

@keyframes berryBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-3px) scale(1.06); }
}

/* Candle & Flame (Firmly Planted on Top Cake Tier) */
.candle-wrap {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -4px;
    padding: 0 4px 2px;
    z-index: 5;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.candle-wrap:hover {
    transform: scale(1.1);
}

.candle-flame {
    width: 12px;
    height: 16px;
    background: linear-gradient(to bottom, #ffffff 0%, #fef08a 35%, #f97316 70%, #dc2626 100%);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 12px #f97316, 0 0 24px rgba(220, 38, 38, 0.6);
    animation: birthdayFlameFlicker 0.28s infinite alternate ease-in-out;
}

@keyframes birthdayFlameFlicker {
    0% { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.12) rotate(3deg); }
}

.candle-flame.extinguished {
    display: none !important;
}

.candle-stick {
    width: 6px;
    height: 18px;
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 3px, #e11d48 3px, #e11d48 6px);
    border: 1px solid #be123c;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Cake Tiers (Rich, Highly Visible Strawberry & Vanilla Layers) */
.cake-tier {
    border-radius: 12px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.tier-top {
    width: 92px;
    height: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 45%, #fecdd3 100%);
    border: 1.5px solid #fb7185;
    z-index: 3;
}

.tier-middle {
    width: 126px;
    height: 38px;
    background: linear-gradient(180deg, #fecdd3 0%, #fda4af 40%, #f43f5e 100%);
    border: 1.5px solid #e11d48;
    margin-top: -3px;
    z-index: 2;
}

.tier-bottom {
    width: 160px;
    height: 42px;
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 40%, #be123c 100%);
    border: 1.5px solid #9f1239;
    margin-top: -3px;
    z-index: 1;
}

.cake-plate {
    width: 188px;
    height: 10px;
    background: linear-gradient(180deg, #fef08a, #fcd34d);
    border: 1.5px solid #d97706;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.25);
    margin-top: 1px;
}

.cake-hint {
    font-size: 0.82rem;
    color: #9f1239;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* ==========================================================================
   6. WARM PASTEL BIRTHDAY NOTE BOX (Crystal Clear Readability)
   ========================================================================== */
.birthday-note-box {
    margin-top: 10px;
    padding: 18px 16px;
    text-align: left;
    background: #fff8f6 !important;
    border: 1.5px dashed #f472b6 !important;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.1) !important;
}

.birthday-note-box .letter-header {
    margin-bottom: 10px;
    border-bottom: 1px dashed #fca5a5;
    padding-bottom: 8px;
}

.birthday-note-box .letter-date {
    font-size: 0.72rem;
    color: #9f1239;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}

.birthday-note-box h3 {
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 800;
    color: #3b0724;
    line-height: 1.3;
}

.birthday-note-box .letter-body {
    font-size: 0.92rem;
    color: #3b0724;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 12px;
}

.birthday-note-box .letter-body p {
    margin-bottom: 8px;
}

.birthday-note-box .letter-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-top: 1px dashed #fca5a5;
    padding-top: 10px;
}

.birthday-note-box .letter-footer p {
    font-size: 0.78rem;
    color: #9f1239;
    font-style: italic;
    font-weight: 600;
}

.birthday-note-box .letter-footer h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #be123c;
}

/* ==========================================================================
   7. SLIDES 2-5 WARM PASTEL ADAPTATIONS (High Contrast & Legible)
   ========================================================================== */
/* Filmstrip in Pastel (Slide 2) */
#storyDeckContainer[data-template="birthday-celebration"] .filmstrip-container {
    background: #fff7f4 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.15) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .filmstrip-title {
    color: #3b0724 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .frame-box {
    background: #fee2e2 !important;
    border: 1.5px solid #fca5a5 !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .photo-caption {
    color: #3b0724 !important;
    font-weight: 700;
}

/* Reasons / Wish Deck in Pastel (Slide 3) */
#storyDeckContainer[data-template="birthday-celebration"] .reason-single-card {
    background: #fff5f2 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.1) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .reason-badge {
    color: #9f1239 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .reason-text {
    color: #3b0724 !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.55;
    font-family: var(--font-serif);
}

#storyDeckContainer[data-template="birthday-celebration"] .reasons-counter-text {
    color: #9f1239 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-icon-nav {
    background: #ffffff !important;
    border: 1.5px solid #fbcfe8 !important;
    color: #3b0724 !important;
    font-weight: 700;
}

/* Milestone Goals / Bucket List in Pastel (Slide 4) */
#storyDeckContainer[data-template="birthday-celebration"] .bucket-item {
    background: #fff5f2 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.08) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .bucket-item label {
    color: #3b0724 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .bucket-item input[type="checkbox"] {
    accent-color: #be123c !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-add-bucket {
    background: #ffffff !important;
    border: 1.5px dashed #f43f5e !important;
    color: #be123c !important;
    font-weight: 800 !important;
}

/* Stats in Pastel (Slide 5) */
#storyDeckContainer[data-template="birthday-celebration"] .stat-box {
    background: #fff5f2 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.08) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .stat-num {
    color: #be123c !important;
    font-family: var(--font-serif) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .stat-label {
    color: #9f1239 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .viewer-celebration-box {
    background: #fff5f2 !important;
    border: 1.5px solid #fecdd3 !important;
    border-radius: 18px !important;
    padding: 16px 12px !important;
    margin-top: 14px !important;
    box-shadow: 0 6px 16px rgba(219, 39, 119, 0.1) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .viewer-celebration-title {
    color: #3b0724 !important;
    font-weight: 800 !important;
    font-size: 1.18rem !important;
    margin-bottom: 6px !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .viewer-celebration-sub {
    color: #5c1839 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-primary-lg,
#storyDeckContainer[data-template="birthday-celebration"] #btnFinalSend {
    background: linear-gradient(135deg, #f43f5e, #be123c) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 22px rgba(190, 18, 60, 0.35) !important;
    font-weight: 800 !important;
}

/* Story Card Footer Navigation on Pastel */
#storyDeckContainer[data-template="birthday-celebration"] .story-card-footer-nav {
    background: rgba(255, 253, 250, 0.94) !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 10px 30px rgba(219, 39, 119, 0.18) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-card-nav {
    background: #ffffff !important;
    border: 1.5px solid #fecdd3 !important;
    color: #3b0724 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-card-nav.btn-primary-glow {
    background: linear-gradient(135deg, #f43f5e, #be123c) !important;
    color: #ffffff !important;
    border: none !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .card-dot.active {
    background: #be123c !important;
    box-shadow: 0 0 10px rgba(190, 18, 60, 0.45) !important;
}

/* Pastels Scoped Music Player Dock for Birthday Template */
#storyDeckContainer[data-template="birthday-celebration"] .btn-music-toggle {
    background: rgba(255, 253, 250, 0.95) !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 8px 24px rgba(219, 39, 119, 0.18) !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .music-track-title {
    color: #3b0724 !important;
    font-family: var(--font-serif);
    font-size: 0.84rem;
}

#storyDeckContainer[data-template="birthday-celebration"] .music-playback-status {
    color: #9f1239 !important;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-music-toggle.playing .music-playback-status {
    color: #e11d48 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="birthday-celebration"] .music-state-icon {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border: 1px solid #fca5a5;
}

#storyDeckContainer[data-template="birthday-celebration"] .btn-music-toggle.playing .music-state-icon {
    background: linear-gradient(135deg, #f43f5e, #be123c) !important;
    color: #ffffff !important;
    border: none !important;
}
