/* ============================
   What's New – Header Button
   ============================ */

.whats-new-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #6c757d8a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
}

.whats-new-button:hover {
    color: #007bff;
}

.whats-new-button i {
    font-size: 12px;
    color: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.whats-new-label {
    color: inherit;
}

.whats-new-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
    animation: whats-new-pulse 2s infinite;
}

@keyframes whats-new-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ============================
   What's New – Modal (<dialog>)
   ============================ */

#whatsNewModal {
    border: none;
    padding: 0;
    width: 95vw;
    max-width: 520px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-family: "Segoe UI", Arial, sans-serif;
}

#whatsNewModal[open] {
    display: flex;
}

#whatsNewModal::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

/* ============================
   What's New – Header
   ============================ */

.whats-new-header {
    display: flex;
    align-items: center;
    padding: 18px 24px 12px;
    gap: 10px;
}

.whats-new-header i {
    font-size: 22px;
    color: #009548;
}

.whats-new-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* ============================
   What's New – Slides
   ============================ */

.whats-new-slides-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
}

.whats-new-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 20px;
    gap: 12px;
}

.whats-new-slide-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whats-new-slide-icon i {
    font-size: 28px;
    color: #009548;
}

.whats-new-slide-visual {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.whats-new-slide-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.whats-new-slide-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.whats-new-slide-description {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    max-width: 400px;
}

.whats-new-slide-version {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ============================
   What's New – Dots
   ============================ */

.whats-new-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
}

.whats-new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.whats-new-dot.active {
    background: #009548;
}

.whats-new-dot:hover {
    background: #075e2b;
}

/* ============================
   What's New – Footer / Navigation
   ============================ */

.whats-new-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px 18px;
    border-top: 1px solid #f0f0f0;
}

.whats-new-btn {
    min-width: 90px;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.whats-new-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.whats-new-btn-secondary:hover {
    background: #e0e0e0;
}

.whats-new-btn-primary {
    background: #006a34;
    color: #fff;
}

.whats-new-btn-primary:hover {
    background: #005227;
}

/* ============================
   What's New – Responsive
   ============================ */

@media (max-width: 600px) {
    .whats-new-button {
        min-height: 32px;
        padding: 4px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .whats-new-button i {
        font-size: 12px;
    }

    #whatsNewModal {
        max-width: 98vw;
        border-radius: 8px;
    }

    .whats-new-slide-visual {
        max-height: 150px;
    }
}

@media screen and (max-width: 768px) and (max-height: 1024px) {
    .whats-new-label {
        display: none;
    }

    .whats-new-button {
        padding: 6px;
        min-height: 32px;
    }

    .whats-new-button i {
        font-size: 16px;
    }

    .whats-new-badge {
        top: 0;
        right: 0;
        width: 8px;
        height: 8px;
    }
}
