/* SENTINEL OT - Card Expansion (FLIP) & Global Nav States */

.backdrop-blur {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.backdrop-blur.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Expanded State Logic */
.card.expanded {
    z-index: 10001 !important;
    cursor: default;
    background: var(--color-bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    overflow: hidden;
    /* transition is handled by JS for the initial FLIP move */
}

.card.expanded .card__content {
    padding: 3rem;
    height: 100%;
}

.card.expanded .card__details {
    display: block !important;
    opacity: 1 !important;
    margin-top: 2rem;
}

.card.expanded .card__close {
    display: flex !important;
    opacity: 1 !important;
}

/* Card Placeholder (Prevents layout jump) */
.card-placeholder {
    display: block;
    pointer-events: none;
    visibility: hidden;
}

/* Global Nav Buttons (Next/Prev in expansion) */
.global-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10005;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-nav.visible {
    opacity: 1;
    visibility: visible;
}

.global-nav--prev { left: 2rem; }
.global-nav--next { right: 2rem; }

@media (max-width: 1024px) {
    .global-nav { display: none; }
}
