/* ==========================================================================
   App Updates & Release Announcements Modern Backdrop & Modal Styling
   Blur background with stylish highlight card & responsive YouTube/Image embeds
   ========================================================================== */

/* Fullscreen Backdrop with backdrop-filter glass blur */
.app-update-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 14, 29, 0.72);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.app-update-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Wrapper */
.app-update-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1065;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-update-modal-wrapper.show {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Box */
.app-update-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-update-modal-wrapper.show .app-update-card {
    transform: scale(1) translateY(0);
}

/* Header with subtle gradient banner */
.app-update-card-header {
    position: relative;
    padding: 1.75rem 2rem 1.25rem;
    background: linear-gradient(135deg, #07152d 0%, #0d2757 50%, #153c82 100%);
    color: #ffffff;
}

.app-update-header-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.app-update-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.app-update-badge-pill i {
    color: #38bdf8;
}

.app-update-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.app-update-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: rotate(90deg);
}

.app-update-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.app-update-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Card Body */
.app-update-card-body {
    padding: 1.75rem 2rem;
    max-height: 65vh;
    overflow-y: auto;
}

/* Custom scrollbar for update modal */
.app-update-card-body::-webkit-scrollbar {
    width: 6px;
}
.app-update-card-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.app-update-card-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.app-update-card-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Featured Media Showcase (Image & YouTube) */
.app-update-media-box {
    margin-bottom: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    background: #0f172a;
}

.app-update-media-box img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.app-update-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

.app-update-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Content Typography */
.app-update-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    word-break: break-word;
    white-space: pre-line;
}

/* Card Footer */
.app-update-card-footer {
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Update History Cards */
.app-update-history-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.app-update-history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.app-update-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0f172a;
    overflow: hidden;
}

.app-update-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-update-history-card:hover .app-update-thumb-wrapper img {
    transform: scale(1.04);
}

.app-update-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07152d 0%, #153c82 100%);
    color: #ffffff;
}

.app-update-play-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
