/* ============================================================
   ASM Festività Calendar – frontend styles
   ============================================================ */

/* ──────────────────────────────────────────────
   Cell: red background + red inset border
   ────────────────────────────────────────────── */
.toastui-calendar-daygrid-cell.asm-festivita-cell {
    background-color: rgba(220, 38, 38, 0.10) !important;
    box-shadow: inset 0 0 0 2px #dc2626 !important;
}

/* ──────────────────────────────────────────────
   "i" icon button – top-right of the cell
   ────────────────────────────────────────────── */
.asm-festivita-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;

    /* Circle shape */
    width: 18px;
    height: 18px;
    border-radius: 50%;

    /* Appearance */
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    cursor: pointer;

    /* Italic "i" lettering */
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    padding: 0;

    /* Align the character visually inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.18s ease, transform 0.12s ease;
}
@media (max-width: 575px) {
    .asm-festivita-info-btn {
        top: unset;
        bottom: 8px;
    }
}

.asm-festivita-info-btn:hover,
.asm-festivita-info-btn:focus {
    background-color: #b91c1c;
    transform: scale(1.15);
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* ──────────────────────────────────────────────
   Popup overlay (fixed, centred)
   ────────────────────────────────────────────── */
#asm-festivita-overlay {
    position: fixed;
    inset: 0;                         /* top/right/bottom/left = 0 */
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

#asm-festivita-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ──────────────────────────────────────────────
   Popup card
   ────────────────────────────────────────────── */
#asm-festivita-popup {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    max-width: 90%;
    width: auto;
    min-width: 20%;
    position: relative;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    max-height: 80vh;
    overflow-y: auto;

    /* Slide-in effect */
    transform: translateY(-12px);
    transition: transform 0.22s ease;
}

#asm-festivita-overlay.is-visible #asm-festivita-popup {
    transform: translateY(0);
}

/* Title */
#asm-fp-title {
    margin: 0 0 14px;
    padding-right: 28px;   /* leave room for the × button */
    font-size: 1.15rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.35;
}

/* Body / description */
#asm-fp-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333333;
}

/* × close button */
#asm-fp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888888;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

#asm-fp-close:hover,
#asm-fp-close:focus {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.08);
    outline: none;
}
