/* Module: components/notif-modal.css — Top-bar notification preview sheet (global) */

.and-notif-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.and-notif-group__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.and-notif-group__label {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    opacity: 0.75;
    white-space: nowrap;
}

.and-notif-group__line {
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.25);
}

.and-notif-group__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.and-notif-group.is-dim .and-notif-card {
    opacity: 0.82;
}

.and-notif-card {
    position: relative;
    display: flex;
    gap: 14px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.08);
    outline: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.and-notif-card.is-unread {
    background: rgba(255, 255, 255, 0.82);
}

.and-notif-card--linked {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.and-notif-card--linked:active {
    transform: scale(0.99);
}

.and-notif-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.and-notif-card__icon--blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.and-notif-card__icon--amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.and-notif-card__icon--rose { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.and-notif-card__icon--green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.and-notif-card__icon--indigo { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

.and-notif-card__body {
    flex: 1;
    min-width: 0;
}

.and-notif-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.and-notif-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.25;
}

.and-notif-card__time {
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.and-notif-card__message {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.and-notif-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.and-notif-card__btn {
    padding: 8px 14px;
    border-radius: 0.85rem;
    border: none;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.and-notif-card__btn--primary {
    background: var(--and-accent);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(255, 90, 0, 0.45);
}

.and-notif-card__btn--soft {
    background: rgba(255, 90, 0, 0.1);
    color: var(--and-accent);
}

.and-notif-card__btn--ghost {
    background: rgba(255, 255, 255, 0.6);
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.and-notif-card__dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--and-accent);
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.18);
}

.and-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
    color: #64748b;
}

.and-notif-empty p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Preview modal (top-bar bell) */
.and-notif-modal {
    position: fixed;
    inset: 0;
    z-index: 1320;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.and-notif-modal:not([hidden]) {
    display: flex;
    visibility: visible;
}

.and-notif-modal.is-open {
    pointer-events: auto;
}

.and-notif-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.32s ease;
    cursor: pointer;
}

.and-notif-modal.is-open .and-notif-modal__backdrop {
    opacity: 1;
}

.and-notif-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: min(82vh, 720px);
    border-radius: 1.75rem 1.75rem 0 0;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -12px 40px -12px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.and-notif-modal.is-open .and-notif-modal__panel {
    transform: translateY(0);
}

.and-notif-modal__handle {
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.and-notif-modal__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 8px;
}

.and-notif-modal__skel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.and-notif-modal__skel-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.7) 0%, rgba(241, 245, 249, 0.95) 50%, rgba(226, 232, 240, 0.7) 100%);
    background-size: 200% 100%;
    animation: and-notif-skel-shimmer 1.2s ease-in-out infinite;
}

.and-notif-modal__skel-lines {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.and-notif-modal__skel-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.7) 0%, rgba(241, 245, 249, 0.95) 50%, rgba(226, 232, 240, 0.7) 100%);
    background-size: 200% 100%;
    animation: and-notif-skel-shimmer 1.2s ease-in-out infinite;
}

.and-notif-modal__skel-line--title { width: 62%; height: 12px; }
.and-notif-modal__skel-line--msg { width: 88%; }

@keyframes and-notif-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.and-notif-list--modal.is-loaded .and-notif-group,
.and-notif-list--modal.is-loaded .and-notif-empty {
    animation: and-notif-modal-fade-in 0.28s ease-out both;
}

.and-notif-list--modal.is-loaded .and-notif-card {
    animation: and-notif-modal-fade-in 0.32s ease-out both;
}

.and-notif-list--modal.is-loaded .and-notif-card:nth-child(2) { animation-delay: 0.03s; }
.and-notif-list--modal.is-loaded .and-notif-card:nth-child(3) { animation-delay: 0.06s; }
.and-notif-list--modal.is-loaded .and-notif-card:nth-child(4) { animation-delay: 0.09s; }

@keyframes and-notif-modal-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.and-notif-list--modal {
    gap: 16px;
}

.and-notif-list--modal .and-notif-group__head {
    margin-bottom: 8px;
}

.and-notif-list--modal .and-notif-card {
    padding: 12px;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.and-notif-list--modal .and-notif-card.is-unread {
    background: rgba(255, 255, 255, 0.92);
}

.and-notif-modal__foot {
    flex-shrink: 0;
    padding: 8px 16px calc(10px + var(--and-safe-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent;
    text-align: center;
}

.and-notif-modal__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 0;
    padding: 4px 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.and-notif-modal__more:active {
    opacity: 0.72;
    transform: none;
}

body.and-notif-modal-open {
    overflow: hidden;
}
