@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400&display=swap');

/* Holiday Modal Backdrop */
.holiday-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* 仅在屏幕极矮时允许背景层整体滚动，弹窗内部绝不出现滚动条 */
}

.holiday-modal-backdrop.show {
    opacity: 1;
}

/* Modal Card Wrapper - 严禁出现内部滚动条 */
.holiday-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: auto;
    border-radius: 4px;
    overflow: visible !important; /* 彻底去除内部滚动条 */
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.holiday-modal-backdrop.show .holiday-modal-dialog {
    transform: scale(1);
}

/* Outer Border (Gold) */
.holiday-modal-outer-frame {
    background: #ffffff;
    padding: 8px;
    border: 2px solid #b88f4b;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Inner Border (Gold) */
.holiday-modal-inner-frame {
    position: relative;
    border: 1px solid #b88f4b;
    padding: 20px 18px 16px;
    text-align: center;
    background: #ffffff;
    box-sizing: border-box;
}

/* Close Button (右上角关闭按钮) */
.holiday-modal-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1.5px solid #b88f4b;
    color: #555555;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.holiday-modal-close-btn:hover,
.holiday-modal-close-btn:focus {
    background: #b88f4b;
    color: #ffffff;
    transform: rotate(90deg);
    outline: none;
}

/* Corner Flourishes */
.corner-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.corner-tl {
    top: 3px;
    left: 3px;
}

.corner-tr {
    top: 3px;
    right: 3px;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 3px;
    left: 3px;
    transform: scaleY(-1);
}

.corner-br {
    bottom: 3px;
    right: 3px;
    transform: scale(-1, -1);
}

/* Logo */
.holiday-modal-logo {
    display: block;
    margin: 0 auto 8px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* "WE ARE" */
.holiday-modal-we-are {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1a2734;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

/* Divider with diamond */
.holiday-modal-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72%;
    margin: 3px auto 5px;
}

.holiday-modal-divider-diamond .line {
    flex: 1;
    height: 1px;
    background: #b88f4b;
}

.holiday-modal-divider-diamond .diamond {
    font-size: 10px;
    color: #b88f4b;
    margin: 0 8px;
    line-height: 1;
}

/* "CLOSED" */
.holiday-modal-closed {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #1a2734;
    line-height: 1.05;
    margin: 2px 0 4px;
    text-transform: uppercase;
}

/* Simple Underline */
.holiday-modal-divider-simple {
    width: 52%;
    height: 1px;
    background: #b88f4b;
    margin: 3px auto 6px;
}

/* "FOR" */
.holiday-modal-for {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #1a2734;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

/* "Holiday Observance and Celebration" */
.holiday-modal-holiday-name {
    font-family: 'Great Vibes', 'Brush Script MT', cursive;
    font-size: 30px;
    line-height: 1.2;
    color: #213c47;
    margin: 0 0 4px 0;
    font-weight: 400;
}

/* Flourish motif */
.holiday-modal-flourish {
    margin: 3px auto 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* "Thank You For Your Understanding." */
.holiday-modal-understanding {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #6a737d;
    letter-spacing: 0.3px;
    margin: 4px 0 8px;
    line-height: 1.2;
}

/* Handwritten section */
.holiday-modal-handwritten {
    font-family: 'Caveat', 'Patrick Hand', cursive, sans-serif;
    color: #111111;
    padding: 6px 10px 4px;
    margin-top: 2px;
    border-top: 1px dashed rgba(184, 143, 75, 0.4);
}

.holiday-modal-dates {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.holiday-modal-reopen {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .holiday-modal-dialog {
        max-width: 94%;
    }
    .holiday-modal-inner-frame {
        padding: 16px 12px 14px;
    }
    .holiday-modal-closed {
        font-size: 34px;
    }
    .holiday-modal-holiday-name {
        font-size: 26px;
    }
    .holiday-modal-dates {
        font-size: 20px;
    }
    .holiday-modal-reopen {
        font-size: 18px;
    }
    .holiday-modal-we-are {
        font-size: 15px;
    }
    .holiday-modal-for {
        font-size: 13px;
    }
}
