/* ==========================================================================
   VINTAGE ROSE GOLD ROMANCE THEME FOR GIRLFRIEND DAY
   Folder: templates/girlfriend-day/
   Scoped strictly to #storyDeckContainer[data-template="girlfriend-day"]
   ========================================================================== */

/* 1. Ambient Rose Gold Container */
#storyDeckContainer[data-template="girlfriend-day"] {
    background: radial-gradient(circle at 50% 20%, #fff1f2 0%, #ffe4e6 30%, #fbcfe8 65%, #f43f5e 100%);
    border-radius: 28px;
    padding: 16px 12px 24px;
    margin: 8px auto 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 16px 42px rgba(244, 63, 94, 0.22);
}

/* 2. Floating Rose Parchment Card Surface */
#storyDeckContainer[data-template="girlfriend-day"] .glass-card {
    background: #fffbfc !important;
    border: 1.5px solid #fda4af !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 45px rgba(244, 63, 94, 0.16), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: #4c0519 !important;
}

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

#storyDeckContainer[data-template="girlfriend-day"] .slide-title-sm {
    font-family: var(--font-serif);
    color: #4c0519 !important;
    font-weight: 800;
}

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

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

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

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

#storyDeckContainer[data-template="girlfriend-day"] .slide-subtitle,
#storyDeckContainer[data-template="girlfriend-day"] .slide-hint {
    color: #701a30 !important;
    font-weight: 500;
}

#storyDeckContainer[data-template="girlfriend-day"] .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;
}

/* 4. Interactive Wax Seal Envelope */
.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 200px;
    margin: 14px auto 8px;
    perspective: 1000px;
}

.envelope-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #be123c;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(190, 18, 60, 0.3);
    cursor: pointer;
}

.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e11d48, #be123c);
    clip-path: polygon(0 40%, 50% 75%, 100% 40%, 100% 100%, 0 100%);
    border-radius: 0 0 14px 14px;
    z-index: 4;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #9f1239;
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.envelope-container.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.wax-seal {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, #e11d48, #9f1239);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(159, 18, 57, 0.4);
    border: 2px solid #fda4af;
}

.seal-initials {
    font-size: 1.15rem;
}

.letter-paper {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #fffdfa;
    color: #4c0519;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow-y: auto;
    border: 1px dashed #fda4af;
}

.letter-header {
    border-bottom: 1px dashed #fca5a5;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.letter-date {
    font-size: 0.72rem;
    color: #9f1239;
    font-weight: 800;
    text-transform: uppercase;
}

.letter-paper h3 {
    font-family: var(--font-serif);
    color: #4c0519;
    font-size: 1.15rem;
    font-weight: 800;
}

.letter-body {
    font-size: 0.9rem;
    color: #4c0519;
    line-height: 1.55;
    font-weight: 500;
    margin-bottom: 10px;
}

.letter-footer {
    border-top: 1px dashed #fca5a5;
    padding-top: 8px;
    text-align: right;
}

.letter-footer p {
    font-size: 0.76rem;
    color: #9f1239;
    font-style: italic;
}

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

.envelope-container.open .letter-paper {
    transform: translateY(-65px) scale(1.04);
    z-index: 6;
    height: 250px;
}

/* 5. Slides 2-5 Adaptations */
#storyDeckContainer[data-template="girlfriend-day"] .filmstrip-container {
    background: #fff7f9 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.12) !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .filmstrip-title {
    color: #4c0519 !important;
    font-weight: 800;
}

#storyDeckContainer[data-template="girlfriend-day"] .frame-box {
    background: #ffe4e6 !important;
    border: 1.5px solid #fda4af !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .photo-caption {
    color: #4c0519 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="girlfriend-day"] .reason-single-card {
    background: #fff7f9 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.1) !important;
}

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

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

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

#storyDeckContainer[data-template="girlfriend-day"] .btn-icon-nav {
    background: #ffffff !important;
    border: 1.5px solid #fda4af !important;
    color: #4c0519 !important;
    font-weight: 700;
}

#storyDeckContainer[data-template="girlfriend-day"] .bucket-item {
    background: #fff7f9 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.08) !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .bucket-item label {
    color: #4c0519 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

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

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

#storyDeckContainer[data-template="girlfriend-day"] .stat-box {
    background: #fff7f9 !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.08) !important;
}

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

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

#storyDeckContainer[data-template="girlfriend-day"] .viewer-celebration-box {
    background: #fff7f9 !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(244, 63, 94, 0.1) !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .viewer-celebration-title {
    color: #4c0519 !important;
    font-weight: 800 !important;
    font-size: 1.18rem !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .viewer-celebration-sub {
    color: #701a30 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .btn-primary-lg,
#storyDeckContainer[data-template="girlfriend-day"] #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;
}

#storyDeckContainer[data-template="girlfriend-day"] .story-card-footer-nav {
    background: rgba(255, 251, 252, 0.95) !important;
    border: 1.5px solid #fda4af !important;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.18) !important;
}

#storyDeckContainer[data-template="girlfriend-day"] .btn-card-nav {
    background: #ffffff !important;
    border: 1.5px solid #fda4af !important;
    color: #4c0519 !important;
    font-weight: 700;
}

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

#storyDeckContainer[data-template="girlfriend-day"] .card-dot {
    background: rgba(244, 63, 94, 0.25) !important;
}

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