/* ==========================================================================
   LAVENDER PEACE & LILAC PORCELAIN THEME FOR APOLOGY
   Folder: templates/sorry-letter/
   Scoped strictly to #storyDeckContainer[data-template="sorry-letter"]
   ========================================================================== */

/* 1. Ambient Lavender Mist Container */
#storyDeckContainer[data-template="sorry-letter"] {
    background: radial-gradient(circle at 50% 20%, #f5f3ff 0%, #ede9fe 30%, #ddd6fe 70%, #8b5cf6 100%);
    border-radius: 28px;
    padding: 16px 12px 24px;
    margin: 8px auto 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 16px 42px rgba(139, 92, 246, 0.24);
}

/* 2. Floating Lilac Porcelain Card Surface */
#storyDeckContainer[data-template="sorry-letter"] .glass-card {
    background: #fdfcff !important;
    border: 1.5px solid #c4b5fd !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 45px rgba(139, 92, 246, 0.16), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #3b0764 !important;
}

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

#storyDeckContainer[data-template="sorry-letter"] .slide-title-sm {
    font-family: var(--font-serif);
    color: #3b0764 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="sorry-letter"] .tag-pill {
    background: #ede9fe !important;
    border: 1px solid #c4b5fd !important;
    color: #6d28d9 !important;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    border-radius: 20px;
    padding: 5px 14px;
}

#storyDeckContainer[data-template="sorry-letter"] .recipient-dedicated-badge {
    background: #f5f3ff !important;
    border: 1.5px dashed #a78bfa !important;
    border-radius: 20px;
    padding: 12px 16px;
}

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

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

#storyDeckContainer[data-template="sorry-letter"] .slide-subtitle,
#storyDeckContainer[data-template="sorry-letter"] .slide-hint {
    color: #581c87 !important;
    font-weight: 500;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-story-start {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.35);
    border-radius: 24px;
    font-weight: 700;
}

/* 4. Broken Heart Slider Interactive */
.broken-heart-interactive {
    padding: 14px 6px;
}

.heart-split-display {
    font-size: 3.5rem;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.heart-repair-slider {
    width: 100%;
    max-width: 260px;
    margin: 8px auto;
    accent-color: #7c3aed !important;
    cursor: pointer;
}

.slider-instruction {
    font-size: 0.82rem;
    color: #581c87 !important;
    font-weight: 600;
}

.repaired-msg {
    font-size: 0.95rem;
    font-weight: 800;
    color: #059669 !important;
    margin-top: 8px;
    font-family: var(--font-serif);
}

.forgiveness-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 110px;
}

.btn-forgive-hug {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    padding: 13px 20px;
    border-radius: 22px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-forgive-treat {
    background: #ede9fe;
    border: 1.5px solid #c4b5fd;
    color: #4c1d95;
    padding: 12px 20px;
    border-radius: 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-forgive-runaway {
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    transition: transform 0.15s ease;
}

.forgiveness-celebration {
    font-size: 1.05rem;
    font-weight: 800;
    color: #059669 !important;
    margin-top: 12px;
    font-family: var(--font-serif);
}

/* 5. Slides 2-5 Adaptations */
#storyDeckContainer[data-template="sorry-letter"] .filmstrip-container {
    background: #f5f3ff !important;
    border: 1.5px solid #c4b5fd !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12) !important;
}

#storyDeckContainer[data-template="sorry-letter"] .filmstrip-title {
    color: #3b0764 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="sorry-letter"] .frame-box {
    background: #ede9fe !important;
    border: 1.5px solid #c4b5fd !important;
}

#storyDeckContainer[data-template="sorry-letter"] .photo-caption {
    color: #3b0764 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="sorry-letter"] .reason-single-card {
    background: #f5f3ff !important;
    border: 1.5px solid #c4b5fd !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.1) !important;
}

#storyDeckContainer[data-template="sorry-letter"] .reason-badge {
    color: #6d28d9 !important;
    font-weight: 800;
}

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

#storyDeckContainer[data-template="sorry-letter"] .reasons-counter-text {
    color: #6d28d9 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-icon-nav {
    background: #ffffff !important;
    border: 1.5px solid #c4b5fd !important;
    color: #3b0764 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="sorry-letter"] .bucket-item {
    background: #f5f3ff !important;
    border: 1.5px solid #c4b5fd !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08) !important;
}

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

#storyDeckContainer[data-template="sorry-letter"] .bucket-item input[type="checkbox"] {
    accent-color: #7c3aed !important;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-add-bucket {
    background: #ffffff !important;
    border: 1.5px dashed #7c3aed !important;
    color: #6d28d9 !important;
    font-weight: 800 !important;
}

#storyDeckContainer[data-template="sorry-letter"] .stat-box {
    background: #f5f3ff !important;
    border: 1.5px solid #c4b5fd !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08) !important;
}

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

#storyDeckContainer[data-template="sorry-letter"] .stat-label {
    color: #4c1d95 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

#storyDeckContainer[data-template="sorry-letter"] .viewer-celebration-box {
    background: #f5f3ff !important;
    border: 1.5px solid #c4b5fd !important;
    border-radius: 18px !important;
    padding: 16px 12px !important;
    margin-top: 14px !important;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.1) !important;
}

#storyDeckContainer[data-template="sorry-letter"] .viewer-celebration-title {
    color: #3b0764 !important;
    font-weight: 800 !important;
    font-size: 1.18rem !important;
}

#storyDeckContainer[data-template="sorry-letter"] .viewer-celebration-sub {
    color: #581c87 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-primary-lg,
#storyDeckContainer[data-template="sorry-letter"] #btnFinalSend {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.35) !important;
    font-weight: 800 !important;
}

#storyDeckContainer[data-template="sorry-letter"] .story-card-footer-nav {
    background: rgba(253, 252, 255, 0.95) !important;
    border: 1.5px solid #c4b5fd !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18) !important;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-card-nav {
    background: #ffffff !important;
    border: 1.5px solid #c4b5fd !important;
    color: #3b0764 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="sorry-letter"] .btn-card-nav.btn-primary-glow {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #ffffff !important;
    border: none !important;
}

#storyDeckContainer[data-template="sorry-letter"] .card-dot {
    background: rgba(139, 92, 246, 0.25) !important;
}

#storyDeckContainer[data-template="sorry-letter"] .card-dot.active {
    background: #6d28d9 !important;
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.45) !important;
}
