/*
|--------------------------------------------------------------------------
| FORTIVOX — ANNOUNCEMENT RENDERER STYLES
|--------------------------------------------------------------------------
| Supports 6 display formats:
|   modal, slide_in, top_banner, bottom_banner, notification_bar, dashboard_card
| Both LTR and RTL are handled (root applies dir="rtl" when needed).
*/

.fv-ann-host { position: fixed; z-index: 9999; pointer-events: none; }
.fv-ann-host > * { pointer-events: auto; }

/* MODAL */
.fv-ann-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(2, 6, 23, 0.65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px; animation: fvAnnFade 0.2s ease;
}
.fv-ann-modal {
    width: 100%; max-width: 520px; border-radius: 14px;
    background: #0f172a; color: #f8fafc;
    box-shadow: 0 24px 64px rgba(0,0,0,0.55);
    overflow: hidden; position: relative;
    animation: fvAnnPop 0.25s cubic-bezier(0.2,0.9,0.3,1.4);
}
.fv-ann-modal-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.fv-ann-modal-body { padding: 22px 24px 24px; }
.fv-ann-modal-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
.fv-ann-modal-subtitle { opacity: 0.85; margin: 0 0 14px; font-size: 0.95rem; }
.fv-ann-modal-text { font-size: 0.95rem; line-height: 1.55; margin-bottom: 18px; }
.fv-ann-modal-text :is(p,ul,ol,h1,h2,h3,h4){ margin: 0 0 0.6em; }
.fv-ann-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* SLIDE-IN (bottom-right by default; mirrors in RTL) */
.fv-ann-slide {
    position: fixed; bottom: 24px; right: 24px;
    width: 360px; max-width: calc(100vw - 32px);
    background: #0f172a; color: #f8fafc;
    border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    z-index: 9998; padding: 18px 20px; animation: fvAnnSlide 0.35s ease;
}
[dir="rtl"] .fv-ann-slide { right: auto; left: 24px; }
.fv-ann-slide-title { font-weight: 700; margin: 0 0 6px; }
.fv-ann-slide-text { font-size: 0.88rem; opacity: 0.9; margin: 0 0 12px; }

/* TOP / BOTTOM BANNER */
.fv-ann-banner {
    position: fixed; left: 0; right: 0;
    background: #0f172a; color: #f8fafc;
    padding: 12px 22px; z-index: 9997;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    animation: fvAnnSlideY 0.3s ease;
}
.fv-ann-banner.top    { top: 0; }
.fv-ann-banner.bottom { bottom: 0; }
.fv-ann-banner-body { flex: 1; font-size: 0.92rem; }
.fv-ann-banner-body strong { margin-right: 6px; }
[dir="rtl"] .fv-ann-banner-body strong { margin-right: 0; margin-left: 6px; }
.fv-ann-banner-actions { display: flex; gap: 8px; }

/* NOTIFICATION BAR (compact top stripe) */
.fv-ann-notice {
    position: relative; padding: 10px 22px; font-size: 0.88rem;
    text-align: center; background: #1e293b; color: #f1f5f9;
}
.fv-ann-notice .fv-ann-close { position: absolute; right: 12px; top: 7px; }
[dir="rtl"] .fv-ann-notice .fv-ann-close { right: auto; left: 12px; }

/* DASHBOARD CARD (in-flow, not floating) */
.fv-ann-card {
    background: #0f172a; color: #f8fafc;
    border-radius: 12px; padding: 18px 22px;
    margin: 0 0 18px; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    display: flex; gap: 16px; align-items: flex-start;
}
.fv-ann-card-img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.fv-ann-card-body { flex: 1; min-width: 0; }
.fv-ann-card-title { font-weight: 700; margin: 0 0 4px; }

/* BUTTONS */
.fv-ann-btn {
    display: inline-block; padding: 8px 16px; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem; text-decoration: none;
    border: 0; cursor: pointer; transition: filter 0.15s ease;
}
.fv-ann-btn:hover { filter: brightness(1.1); }
.fv-ann-btn-primary { background: #22d3ee; color: #0f172a; }
.fv-ann-btn-ghost   { background: transparent; color: inherit; border: 1px solid currentColor; opacity: 0.7; }

.fv-ann-close {
    background: transparent; border: 0; color: currentColor;
    opacity: 0.55; cursor: pointer; font-size: 1.1rem; line-height: 1;
    padding: 4px 8px; border-radius: 6px;
}
.fv-ann-close:hover { opacity: 1; background: rgba(255,255,255,0.08); }

@keyframes fvAnnFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fvAnnPop   { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fvAnnSlide { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
[dir="rtl"] .fv-ann-slide { animation-name: fvAnnSlideRtl; }
@keyframes fvAnnSlideRtl { from { transform: translateX(-120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fvAnnSlideY { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fv-ann-banner.bottom { animation-name: fvAnnSlideYBottom; }
@keyframes fvAnnSlideYBottom { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 600px){
    .fv-ann-modal { max-width: 100%; }
    .fv-ann-slide { right: 12px; left: 12px; width: auto; }
    [dir="rtl"] .fv-ann-slide { right: 12px; left: 12px; }
    .fv-ann-banner { flex-direction: column; align-items: stretch; padding: 12px 16px; }
    .fv-ann-card { flex-direction: column; }
    .fv-ann-card-img { width: 100%; height: 160px; }
}
