/*
 * Bangla Calendar Display front‑end styles
 *
 * These styles define the base appearance and variants for the Bangla calendar widget.
 * Custom properties --msabcd-primary and --msabcd-bg are used for colours
 * and can be overridden inline via the style attribute on the wrapper.
 */

/* ---------- Base Styles ---------- */
.msabcd-calendar {
    --msabcd-primary: #0073aa;
    --msabcd-bg: #f8f9fa;
    --msabcd-border-radius: 10px;
    --msabcd-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: var(--msabcd-primary);
    background: var(--msabcd-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Smooth animation & hover feedback */
.msabcd-calendar {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.msabcd-calendar:hover {
    transform: translateY(-1px);
    box-shadow: var(--msabcd-shadow);
}

/* Small helper utilities */
.msabcd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0, 115, 170, 0.06);
    font-size: 13px;
    font-weight: 600;
}

/* Common text sizes */
.msabcd-time {
    font-weight: 700;
}
.msabcd-weekday {
    font-size: 0.85em;
    opacity: 0.75;
}
.msabcd-date-bd {
    font-weight: 600;
}
.msabcd-date-en {
    font-size: 0.85em;
    opacity: 0.9;
}

/* ---------- Variant: SIMPLE (inline text line) ---------- */
.msabcd-calendar.simple {
    border-radius: 999px;
    border: 1px solid rgba(0, 115, 170, 0.25);
    padding: 6px 12px;
    font-size: 15px;
    background: #ffffff;
    white-space: nowrap;
}

/* ---------- Variant: GRID (small card with big date) ---------- */
.msabcd-calendar.grid {
    flex-direction: column;
    text-align: center;
    border-radius: var(--msabcd-border-radius);
    border: 1px solid rgba(0, 115, 170, 0.35);
    padding: 10px 16px;
    min-width: 140px;
    gap: 2px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.msabcd-grid-day-number {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1;
}

.msabcd-grid-month {
    font-size: 1.1em;
    margin-top: 2px;
}

.msabcd-grid-year {
    font-size: 0.85em;
    opacity: 0.8;
    letter-spacing: 0.03em;
}

.msabcd-grid-time {
    margin-top: 6px;
    font-size: 0.9em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 115, 170, 0.06);
    display: inline-flex;
    justify-content: center;
}

.msabcd-grid-weekday {
    margin-top: 2px;
    font-size: 0.8em;
    opacity: 0.75;
}

/* ---------- Variant: DUAL (Bangla + English date) ---------- */
.msabcd-calendar.dual {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--msabcd-border-radius);
    border-left: 4px solid var(--msabcd-primary);
    border-top: 1px solid rgba(0, 115, 170, 0.18);
    border-right: 1px solid rgba(0, 115, 170, 0.18);
    border-bottom: 1px solid rgba(0, 115, 170, 0.18);
    padding: 10px 14px;
    background: #ffffff;
    gap: 4px;
    max-width: 260px;
}

.msabcd-dual-bd {
    font-weight: 700;
    font-size: 0.98em;
}

.msabcd-dual-en {
    font-size: 0.85em;
    color: rgba(0, 115, 170, 0.75);
}

.msabcd-dual-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8em;
}

.msabcd-dual-time,
.msabcd-dual-weekday {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 115, 170, 0.06);
}

/* ---------- Variant: MODERN (minimal, time-focused) ---------- */
.msabcd-calendar.modern {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--msabcd-border-radius);
    border: 1px solid rgba(0, 115, 170, 0.25);
    padding: 10px 14px;
    background: radial-gradient(circle at top left, #ffffff 0, #f7fbff 35%, #f3f6fa 100%);
    gap: 2px;
    min-width: 180px;
}

.msabcd-modern-time {
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 2px;
}

.msabcd-modern-weekday {
    font-size: 0.9em;
    opacity: 0.8;
}

.msabcd-modern-date {
    font-size: 0.9em;
    font-weight: 500;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
    .msabcd-calendar.simple {
        font-size: 13px;
        padding: 5px 10px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .msabcd-calendar.grid,
    .msabcd-calendar.dual,
    .msabcd-calendar.modern {
        width: 100%;
        max-width: 100%;
    }
}