/**
 * whats-new-popup.css
 * Styles et animations pour la modale "What's new" (PotameSpicy_OS)
 */

#whats-new-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#whats-new-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

#whats-new-dialog {
    position: relative;
    width: 100%;
    max-width: 36rem; /* 576px */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-surface, #1e293b);
    color: var(--text-main, #f8fafc);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#whats-new-modal.is-active #whats-new-dialog {
    transform: scale(1) translateY(0);
}

.whats-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.whats-new-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whats-new-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
}

.whats-new-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.whats-new-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.whats-new-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    overscroll-behavior: contain;
}

.whats-new-body::-webkit-scrollbar {
    width: 6px;
}
.whats-new-body::-webkit-scrollbar-track {
    background: transparent;
}
.whats-new-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.whats-new-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.whats-new-item {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
    margin-bottom: 0.875rem;
}

.whats-new-item:last-child {
    margin-bottom: 0;
}

.whats-new-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.whats-new-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.whats-new-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.6rem;
}

.whats-new-item-excerpt {
    font-size: 0.825rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.whats-new-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ec4899;
    text-decoration: none;
    transition: all 0.15s ease;
}

.whats-new-item-link:hover {
    color: #f472b6;
    text-decoration: underline;
}

.whats-new-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.whats-new-all-link {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.whats-new-all-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.whats-new-ok-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    background: #ec4899;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
    transition: all 0.15s ease;
}

.whats-new-ok-btn:hover {
    background: #db2777;
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}
