/* Update Modal Styles */
.update-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10003;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.update-modal.active {
    display: flex;
}

.update-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.update-modal-container {
    position: relative;
    background: var(--uw-white-1);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: updateModalSlideIn 0.3s ease-out;
}

@keyframes updateModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.update-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--uw-white-3);
    background: var(--uw-white-1);
}

.update-modal-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.update-version-select {
    font-size: 13px;
    font-weight: 400;
    color: var(--uw-text-2);
    background: var(--uw-background-11);
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    min-width: 0;
    font-family: 'Roboto', sans-serif;
}

.update-version-select:hover {
    background-color: var(--uw-white-2);
}

.update-modal-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.update-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--uw-text-1);
    margin: 0;
}

.update-modal-close {
    background: var(--uw-background-11);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    padding: 0;
}

.update-modal-close:hover {
    background: var(--uw-white-2);
}

.update-modal-close img {
    width: 18px;
    height: 18px;
}

.update-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.update-carousel {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.update-carousel-item {
    display: none;
    padding: 32px 28px;
    animation: updateFadeIn 0.4s ease-in;
}

.update-carousel-item.active {
    display: block;
}

@keyframes updateFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.update-item-image {
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--uw-white-3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-item-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--uw-text-1);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.update-item-description {
    font-size: 15px;
    color: var(--uw-text-2);
    line-height: 1.6;
    margin: 0;
}

.update-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid var(--uw-white-3);
    background: var(--uw-white-1);
    gap: 16px;
}

.update-carousel-btn {
    background: var(--uw-background-11);
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.update-carousel-btn:hover:not(:disabled) {
    background: var(--uw-white-2);
}

.update-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.update-carousel-btn img {
    width: 20px;
    height: 20px;
}

.update-carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.update-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--uw-white-3);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}

.update-carousel-indicator.active {
    background: var(--uw-blurple-1);
    width: 24px;
    border-radius: 4px;
}

.update-carousel-indicator:hover {
    background: var(--uw-blurple-2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .update-modal-container {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .update-modal-header {
        padding: 20px;
    }
    
    .update-modal-title-section {
        gap: 8px;
    }
    
    .update-version-select {
        font-size: 12px;
        padding: 5px 24px 5px 8px;
        font-family: 'Roboto', sans-serif;
    }
    
    .update-modal-title {
        font-size: 20px;
    }
    
    .update-carousel-item {
        padding: 24px 20px;
        min-height: 350px;
    }
    
    .update-item-image {
        height: 200px;
    }
    
    .update-item-title {
        font-size: 20px;
    }
    
    .update-item-description {
        font-size: 14px;
    }
    
    .update-carousel-controls {
        padding: 16px 20px;
    }
}


